Fix error of supplier invoice (variable amount)

This update fixed the coding error for addline of deposit invoice for variable amount.

In addition, there is no invoice template for supplier invoice, so I also corrected the respective description.
This commit is contained in:
henrynopo 2021-08-22 13:26:46 +08:00 committed by Laurent Destailleur
parent 15da97f1da
commit 73c0471ead

View File

@ -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
);