Fixing style errors.

This commit is contained in:
stickler-ci 2020-11-30 10:32:58 +00:00
parent 560194c3b9
commit 9ee37153f7

View File

@ -411,13 +411,13 @@ if ($action == "delete") {
if ($result > 0 && $invoice->statut == Facture::STATUS_DRAFT)
{
$db->begin();
// We delete the lines
$resdeletelines = 1;
foreach($invoice->lines as $line){
$resdeletelines *= $invoice->deleteline($line->id);
}
$sql = "UPDATE ".MAIN_DB_PREFIX."facture set fk_soc=".$conf->global->{'CASHDESK_ID_THIRDPARTY'.$_SESSION["takeposterminal"]};
$sql .= " WHERE ref='(PROV-POS".$_SESSION["takeposterminal"]."-".$place.")'";
$resql1 = $db->query($sql);
@ -430,7 +430,7 @@ if ($action == "delete") {
{
$db->rollback();
}
$invoice->fetch($placeid);
}
}