From 86b98db2a245d569a4e766fc6a313dd7ae08aea0 Mon Sep 17 00:00:00 2001 From: andreubisquerra Date: Sun, 4 Nov 2018 20:36:23 +0100 Subject: [PATCH] No posibility to validate if invoice not exist --- htdocs/takepos/pay.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/takepos/pay.php b/htdocs/takepos/pay.php index c0bfc35294a..898b9069ba0 100644 --- a/htdocs/takepos/pay.php +++ b/htdocs/takepos/pay.php @@ -41,7 +41,7 @@ $sql="SELECT rowid FROM ".MAIN_DB_PREFIX."facture where facnumber='(PROV-POS-".$ $resql = $db->query($sql); $row = $db->fetch_array ($resql); $placeid=$row[0]; -if (! $placeid) $placeid=0; // Developing error message with no lines +if (! $placeid) $placeid=0; // Invoice not exist else{ $invoice = new Facture($db); $invoice->fetch($placeid); @@ -101,15 +101,15 @@ $langs->loadLangs(array("main", "bills", "cashdesk")); - + - + - +