Merge pull request #27229 from FHenry/17.0_fix_autoselectaccount
FIX: bad accountancy code autoselection for supplier ventilation
This commit is contained in:
commit
66d89cc480
1 changed files with 1 additions and 1 deletions
|
|
@ -839,7 +839,7 @@ class AccountingAccount extends CommonObject
|
|||
}
|
||||
$suggestedid = $accountingAccount['dom']; // There is a doubt for this case. Is it an error on vat or we just forgot to fill vat number ?
|
||||
$suggestedaccountingaccountfor = 'eecwithoutvatnumber';
|
||||
} elseif ($isSellerInEEC && $isBuyerInEEC && !empty($product->accountancy_code_sell_intra)) {
|
||||
} elseif ($isSellerInEEC && $isBuyerInEEC) {
|
||||
// European intravat sale
|
||||
if ($type == 'customer' && !empty($product->accountancy_code_sell_intra)) {
|
||||
$code_p = $product->accountancy_code_sell_intra;
|
||||
|
|
|
|||
Loading…
Reference in a new issue