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:
parent
58fa0740c3
commit
b4096dc057
@ -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 New Issue
Block a user