Checkstyle
This commit is contained in:
parent
d8e162c309
commit
0b42251dfd
@ -780,25 +780,25 @@ else if ($action == "addline" && $user->rights->propal->creer)
|
|||||||
{
|
{
|
||||||
// Insert line
|
// Insert line
|
||||||
$result=$object->addline(
|
$result=$object->addline(
|
||||||
$id,
|
$id,
|
||||||
$desc,
|
$desc,
|
||||||
$pu_ht,
|
$pu_ht,
|
||||||
GETPOST('qty'),
|
GETPOST('qty'),
|
||||||
$tva_tx,
|
$tva_tx,
|
||||||
$localtax1_tx,
|
$localtax1_tx,
|
||||||
$localtax2_tx,
|
$localtax2_tx,
|
||||||
$idprod,
|
$idprod,
|
||||||
GETPOST('remise_percent'),
|
GETPOST('remise_percent'),
|
||||||
$price_base_type,
|
$price_base_type,
|
||||||
$pu_ttc,
|
$pu_ttc,
|
||||||
$info_bits,
|
$info_bits,
|
||||||
$type,
|
$type,
|
||||||
-1,
|
-1,
|
||||||
0,
|
0,
|
||||||
GETPOST('fk_parent_line'),
|
GETPOST('fk_parent_line'),
|
||||||
$fournprice,
|
$fournprice,
|
||||||
$buyingprice,
|
$buyingprice,
|
||||||
$label
|
$label
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($result > 0)
|
if ($result > 0)
|
||||||
@ -866,7 +866,7 @@ else if ($action == 'updateligne' && $user->rights->propal->creer && GETPOST('sa
|
|||||||
if (! GETPOST('qty')) $special_code=3;
|
if (! GETPOST('qty')) $special_code=3;
|
||||||
|
|
||||||
// Check minimum price
|
// Check minimum price
|
||||||
$productid = GETPOST('productid', 'int') ;
|
$productid = GETPOST('productid', 'int');
|
||||||
if (! empty($productid))
|
if (! empty($productid))
|
||||||
{
|
{
|
||||||
$product = new Product($db);
|
$product = new Product($db);
|
||||||
@ -901,22 +901,22 @@ else if ($action == 'updateligne' && $user->rights->propal->creer && GETPOST('sa
|
|||||||
if (! $error)
|
if (! $error)
|
||||||
{
|
{
|
||||||
$result = $object->updateline(
|
$result = $object->updateline(
|
||||||
GETPOST('lineid'),
|
GETPOST('lineid'),
|
||||||
$pu_ht,
|
$pu_ht,
|
||||||
GETPOST('qty'),
|
GETPOST('qty'),
|
||||||
GETPOST('remise_percent'),
|
GETPOST('remise_percent'),
|
||||||
$vat_rate,
|
$vat_rate,
|
||||||
$localtax1_rate,
|
$localtax1_rate,
|
||||||
$localtax2_rate,
|
$localtax2_rate,
|
||||||
$description,
|
$description,
|
||||||
'HT',
|
'HT',
|
||||||
$info_bits,
|
$info_bits,
|
||||||
$special_code,
|
$special_code,
|
||||||
GETPOST('fk_parent_line'),
|
GETPOST('fk_parent_line'),
|
||||||
0,
|
0,
|
||||||
$fournprice,
|
$fournprice,
|
||||||
$buying_price,
|
$buying_price,
|
||||||
$label
|
$label
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($result >= 0)
|
if ($result >= 0)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user