FIX Update incoterm on supplier invoice

This commit is contained in:
Laurent Destailleur 2018-04-12 21:39:12 +02:00
parent 664f57a5f0
commit 1c9661d9d6

View File

@ -319,6 +319,12 @@ if (empty($reshook))
$result=$object->setPaymentTerms(GETPOST('cond_reglement_id','int'));
}
// Set incoterm
elseif ($action == 'set_incoterms' && !empty($conf->incoterm->enabled))
{
$result = $object->setIncoterms(GETPOST('incoterm_id', 'int'), GETPOST('location_incoterms', 'alpha'));
}
// payment mode
else if ($action == 'setmode' && $user->rights->fournisseur->facture->creer)
{