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
This commit is contained in:
andreubisquerra 2019-10-24 19:14:12 +02:00 committed by GitHub
parent b4eb14ee44
commit 6c8c41aaba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,7 +100,8 @@ if ($conf->global->TAKEPOS_CUSTOM_RECEIPT)
<?php
print $langs->trans('Date')." ".dol_print_date($object->date, 'day').'<br>';
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);