Bteer fix

This commit is contained in:
Florian Henry 2013-12-02 00:22:49 +01:00
parent ff9c84fd0e
commit c0ef63fd74
2 changed files with 3 additions and 2 deletions

View File

@ -786,7 +786,7 @@ else if ($action == "addline" && $user->rights->propal->creer)
$info_bits=0;
if ($tva_npr) $info_bits |= 0x01;
if (! empty($price_min) && (price2num($pu_ht)*(1-price2num(GETPOST('remise_percent'))/100) < price2num($price_min)))
{
$mesg = $langs->trans("CantBeLessThanMinPrice",price2num($price_min,'MU').$langs->getCurrencySymbol($conf->currency));
@ -920,7 +920,7 @@ else if ($action == 'updateligne' && $user->rights->propal->creer && GETPOST('sa
$error++;
}
}
if (! $error)
{
$result = $object->updateline(

View File

@ -930,6 +930,7 @@ function pdf_getlinedesc($object,$i,$outputlangs,$hideref=0,$hidedesc=0,$issuppl
} else {
$desctest=$desc;
}
//Test with htmlenties for update and no htmlentities for creation
if (! empty($prodser->multilangs[$outputlangs->defaultlang]["description"]) &&
((strpos($desctest,$prodser->description)!==false) ||
(strpos($desc,$prodser->description)!==false))) {