Fix: a line was inserted when making update
Fix: missing message into notification admin page
This commit is contained in:
parent
cbadfa5075
commit
b9c3c074b1
@ -240,7 +240,7 @@ foreach($listofnotifiedevents as $notifiedevent)
|
|||||||
}
|
}
|
||||||
// New entry input fields
|
// New entry input fields
|
||||||
$s='<input type="text" size="32" name="NOTIF_'.$notifiedevent['code'].'_new_key" value="">'; // Do not use type="email" here, we must be able to enter a list of email with , separator.
|
$s='<input type="text" size="32" name="NOTIF_'.$notifiedevent['code'].'_new_key" value="">'; // Do not use type="email" here, we must be able to enter a list of email with , separator.
|
||||||
print $form->textwithpicto($s,$langs->trans("YouCanUseCommaSeparatorForSeveralRecipients"),1,'help','',0,2);
|
print $form->textwithpicto($s,$langs->trans("YouCanUseCommaSeparatorForSeveralRecipients").'<br>'.$langs->trans("YouCanAlsoUseSupervisorKeyword"),1,'help','',0,2);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
print '<td>';
|
print '<td>';
|
||||||
|
|||||||
@ -448,14 +448,12 @@ if (empty($reshook))
|
|||||||
{
|
{
|
||||||
$price_base_type = 'HT';
|
$price_base_type = 'HT';
|
||||||
$ht = price2num(GETPOST('price_ht'));
|
$ht = price2num(GETPOST('price_ht'));
|
||||||
$result=$object->addline($desc, $ht, $qty, $tva_tx, $localtax1_tx, $localtax2_tx, 0, 0, '', $remise_percent, $price_base_type, 0, $type,'','', $date_start, $date_end);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$ttc = price2num(GETPOST('price_ttc'));
|
$ttc = price2num(GETPOST('price_ttc'));
|
||||||
$ht = $ttc / (1 + ($tva_tx / 100));
|
$ht = $ttc / (1 + ($tva_tx / 100));
|
||||||
$price_base_type = 'HT';
|
$price_base_type = 'HT';
|
||||||
$result=$object->addline($desc, $ht, $qty, $tva_tx, $localtax1_tx, $localtax2_tx, 0, 0, '', $remise_percent, $price_base_type, $ttc, $type,'','', $date_start, $date_end);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($lineid)
|
if ($lineid)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user