Fix : Numbering on supplier invoice was not saved and on shipment displayed error when ok

This commit is contained in:
Maxime Kohlhaas
2013-07-30 09:21:45 +02:00
parent 0dc7aa15d9
commit f9c2910f84
2 changed files with 2 additions and 2 deletions

View File

@@ -64,7 +64,7 @@ if ($action == 'updateMask')
if (isset($res))
{
if ($res < 0)
if ($res > 0)
setEventMessage($langs->trans("SetupSaved"));
else
setEventMessage($langs->trans("Error"), 'errors');

View File

@@ -56,7 +56,7 @@ class mod_facture_fournisseur_tulip extends ModeleNumRefSuppliersInvoices
$texte = $langs->trans('GenericNumRefModelDesc')."<br>\n";
$texte.= '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
$texte.= '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
$texte.= '<input type="hidden" name="action" value="updateMaskInvoice">';
$texte.= '<input type="hidden" name="action" value="updateMask">';
$texte.= '<input type="hidden" name="maskconstinvoice" value="SUPPLIER_INVOICE_TULIP_MASK">';
$texte.= '<table class="nobordernopadding" width="100%">';