From 7b1fd917eb3b75d6ef2b79a183d1ef8c20b3dd20 Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Sun, 17 Mar 2019 10:25:37 +0100 Subject: [PATCH] update with html5 compliant code --- htdocs/takepos/invoice.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/htdocs/takepos/invoice.php b/htdocs/takepos/invoice.php index 35509165732..98a40884497 100644 --- a/htdocs/takepos/invoice.php +++ b/htdocs/takepos/invoice.php @@ -184,7 +184,7 @@ if ($action == "updatereduction") { if ($action == "order" and $placeid != 0) { include_once DOL_DOCUMENT_ROOT . '/categories/class/categorie.class.php'; - $headerorder = '
' . $langs->trans('Place') . ' ' . $place . '
'; + $headerorder = '
' . $langs->trans('Place') . ' ' . $place . '
' . $langs->trans("Label") . '' . $langs->trans("Qty") . '
'; $footerorder = '
' . $langs->trans("Label") . '' . $langs->trans("Qty") . '
' . dol_print_date(dol_now(), 'dayhour') . '
'; $order_receipt_printer1 = ""; $order_receipt_printer2 = ""; @@ -201,7 +201,7 @@ if ($action == "order" and $placeid != 0) { if ($count > 0) { $sql = "UPDATE " . MAIN_DB_PREFIX . "facturedet set special_code='3' where rowid=$line->rowid"; $db->query($sql); - $order_receipt_printer1.= '' . $line->product_label . '' . $line->qty; + $order_receipt_printer1.= '' . $line->product_label . '' . $line->qty; if (!empty($line->array_options['options_order_notes'])) $order_receipt_printer1.="
(".$line->array_options['options_order_notes'].")"; $order_receipt_printer1.=''; } @@ -218,7 +218,7 @@ if ($action == "order" and $placeid != 0) { if ($count > 0) { $sql = "UPDATE " . MAIN_DB_PREFIX . "facturedet set special_code='3' where rowid=$line->rowid"; $db->query($sql); - $order_receipt_printer2.= '' . $line->product_label . '' . $line->qty; + $order_receipt_printer2.= '' . $line->product_label . '' . $line->qty; if (!empty($line->array_options['options_order_notes'])) $order_receipt_printer2.="
(".$line->array_options['options_order_notes'].")"; $order_receipt_printer2.=''; } @@ -333,8 +333,8 @@ print '
'; print ''; print ''; print ''; -print ''; -print ''; +print ''; +print ''; print "\n"; if ($placeid > 0) { @@ -345,18 +345,18 @@ if ($placeid > 0) { print ' order'; } print '" id="' . $line->rowid . '">'; - print ''; - print ''; - print ''; + print ''; + print ''; print ''; } } print '
' . $langs->trans('Description') . '' . $langs->trans('Qty') . '' . $langs->trans('TotalHTShort') . '' . $langs->trans('Qty') . '' . $langs->trans('TotalHTShort') . '
' . $line->product_label . $line->desc; + print '' . $line->product_label . $line->desc; if (!empty($line->array_options['options_order_notes'])) echo "
(".$line->array_options['options_order_notes'].")"; print '
' . $line->qty . '' . price($line->total_ttc) . '' . $line->qty . '' . price($line->total_ttc) . '
'; -print '

'.$langs->trans('TotalTTC'); +print '

'.$langs->trans('TotalTTC'); if($conf->global->TAKEPOS_BAR_RESTAURANT) print " ".$langs->trans('Place')." ".$place; @@ -367,13 +367,13 @@ if ($invoice->socid != $conf->global->CASHDESK_ID_THIRDPARTY) $soc = new Societe($db); if ($invoice->socid > 0) $soc->fetch($invoice->socid); else $soc->fetch($conf->global->CASHDESK_ID_THIRDPARTY); - print '

'; + print '

'; print $langs->trans("Customer").': '.$soc->name; print '

'; } if ($action=="valid") { - print '

'.$invoice->ref." ".$langs->trans('BillShortStatusValidated').'

'; + print '

'.$invoice->ref." ".$langs->trans('BillShortStatusValidated').'

'; if ($conf->global->TAKEPOSCONNECTOR) print '
'; else print '
'; }