Merge pull request #18459 from henrynopo/patch-9
Fix error of supplier invoice (variable amount)
This commit is contained in:
commit
c3fe1bfdc0
1 changed files with 2 additions and 2 deletions
|
|
@ -861,7 +861,7 @@ if (empty($reshook)) {
|
|||
}
|
||||
}
|
||||
|
||||
// Standard invoice or Deposit invoice, created from a Predefined template invoice
|
||||
// Standard invoice or Deposit invoice, not from a Predefined template invoice
|
||||
if (GETPOST('type') == FactureFournisseur::TYPE_STANDARD || GETPOST('type') == FactureFournisseur::TYPE_DEPOSIT) {
|
||||
if (GETPOST('socid', 'int') < 1) {
|
||||
setEventMessages($langs->trans('ErrorFieldRequired', $langs->transnoentities('Supplier')), null, 'errors');
|
||||
|
|
@ -1085,12 +1085,12 @@ if (empty($reshook)) {
|
|||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
null,
|
||||
$object->origin,
|
||||
0,
|
||||
'',
|
||||
$lines[$i]->special_code,
|
||||
0,
|
||||
0
|
||||
//,$langs->trans('Deposit') //Deprecated
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue