Skip to content

Commit

Permalink
Fix phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Feb 27, 2020
1 parent a0b465e commit 1bc1893
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions htdocs/takepos/invoice.php
Expand Up @@ -167,17 +167,15 @@ function fail($message)
$invoice->fk_facture_source = $fk_source;
$invoice->update($user);
}

$sav_FACTURE_ADDON='';
if (! empty($conf->global->TAKEPOS_ADDON))
{
if (! empty($conf->global->TAKEPOS_ADDON)) {
$sav_FACTURE_ADDON = $conf->global->FACTURE_ADDON;
$conf->global->FACTURE_ADDON = $conf->global->TAKEPOS_ADDON;
}

$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->getRemainToPay() > 0) $res = 1;
else {
Expand Down Expand Up @@ -216,7 +214,7 @@ function fail($message)
{
$conf->global->FACTURE_ADDON = $sav_FACTURE_ADDON;
}

$remaintopay = $invoice->getRemainToPay();

// Add the payment
Expand Down

0 comments on commit 1bc1893

Please sign in to comment.