Fix phpcs
This commit is contained in:
parent
a0b465e8ae
commit
1bc18931f8
@ -169,15 +169,13 @@ if ($action == 'valid' && $user->rights->facture->creer)
|
|||||||
}
|
}
|
||||||
|
|
||||||
$sav_FACTURE_ADDON='';
|
$sav_FACTURE_ADDON='';
|
||||||
if (! empty($conf->global->TAKEPOS_ADDON))
|
if (! empty($conf->global->TAKEPOS_ADDON)) {
|
||||||
{
|
|
||||||
$sav_FACTURE_ADDON = $conf->global->FACTURE_ADDON;
|
$sav_FACTURE_ADDON = $conf->global->FACTURE_ADDON;
|
||||||
$conf->global->FACTURE_ADDON = $conf->global->TAKEPOS_ADDON;
|
$conf->global->FACTURE_ADDON = $conf->global->TAKEPOS_ADDON;
|
||||||
}
|
}
|
||||||
|
|
||||||
$constantforkey = 'CASHDESK_NO_DECREASE_STOCK'.$_SESSION["takeposterminal"];
|
$constantforkey = 'CASHDESK_NO_DECREASE_STOCK'.$_SESSION["takeposterminal"];
|
||||||
if ($invoice->statut != Facture::STATUS_DRAFT)
|
if ($invoice->statut != Facture::STATUS_DRAFT) {
|
||||||
{
|
|
||||||
//If invoice is validated but it is not fully paid is not error and make the payment
|
//If invoice is validated but it is not fully paid is not error and make the payment
|
||||||
if ($invoice->getRemainToPay() > 0) $res = 1;
|
if ($invoice->getRemainToPay() > 0) $res = 1;
|
||||||
else {
|
else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user