FIX 16.0 - supplier invoice card creates two invoices instead of one when creating from a template

This commit is contained in:
atm-florian 2022-04-05 11:46:06 +02:00
parent 3ab993127d
commit b929c2f671

View File

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