FIX 16.0 - supplier invoice card creates two invoices instead of one when creating from a template
This commit is contained in:
parent
3ab993127d
commit
b929c2f671
@ -929,7 +929,7 @@ if (empty($reshook)) {
|
||||
}
|
||||
|
||||
// Standard invoice or Deposit invoice, not from a Predefined template invoice
|
||||
if (GETPOST('type') == FactureFournisseur::TYPE_STANDARD || GETPOST('type') == FactureFournisseur::TYPE_DEPOSIT && GETPOST('fac_rec') <= 0) {
|
||||
elseif (GETPOST('type') == FactureFournisseur::TYPE_STANDARD || GETPOST('type') == FactureFournisseur::TYPE_DEPOSIT && GETPOST('fac_rec') <= 0) {
|
||||
if (GETPOST('socid', 'int') < 1) {
|
||||
setEventMessages($langs->trans('ErrorFieldRequired', $langs->transnoentities('Supplier')), null, 'errors');
|
||||
$action = 'create';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user