From 6c8c41aaba976bc725f183c51d7f6a98239b3eac Mon Sep 17 00:00:00 2001 From: andreubisquerra Date: Thu, 24 Oct 2019 19:14:12 +0200 Subject: [PATCH] REF to customer readable place in TakePOS BAR Convert the invoice reference to a readable format for customers and waiters in non validated printed vouchers. (PROV-POS1-5) to: Terminal 1 Place 5 --- htdocs/takepos/receipt.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/takepos/receipt.php b/htdocs/takepos/receipt.php index 38ad9103ab9..8f7a0ec5ca1 100644 --- a/htdocs/takepos/receipt.php +++ b/htdocs/takepos/receipt.php @@ -100,7 +100,8 @@ if ($conf->global->TAKEPOS_CUSTOM_RECEIPT) trans('Date')." ".dol_print_date($object->date, 'day').'
'; if ($conf->global->TAKEPOS_CUSTOM_RECEIPT) print $conf->global->TAKEPOS_RECEIPT_NAME." "; -print $object->ref; +if ($object->statut == Facture::STATUS_DRAFT) print str_replace(")","",str_replace("-"," ".$langs->trans('Place')." ",str_replace("(PROV-POS",$langs->trans("Terminal")." ",$object->ref))); +else print $object->ref; if ($conf->global->TAKEPOS_CUSTOM_RECEIPT && $conf->global->TAKEPOS_SHOW_CUSTOMER) { $soc = new Societe($db);