| ' . $langs->trans("Label") . ' | ' . $langs->trans("Qty") . ' |
|---|
| ';
print '';
if ($conf->global->TAKEPOS_BAR_RESTAURANT)
{
$sql="SELECT floor, label FROM ".MAIN_DB_PREFIX."takepos_floor_tables where rowid=".((int) $place);
$resql = $db->query($sql);
$obj = $db->fetch_object($resql);
if ($obj)
{
$label = $obj->label;
$floor = $obj->floor;
}
print $langs->trans('Place')." ".$label." - ";
print $langs->trans('Floor')." ".$floor." - ";
}
print $langs->trans('TotalTTC');
print ' : '.price($invoice->total_ttc, 1, '', 1, - 1, - 1, $conf->currency).'';
print ' '.$sectionwithinvoicelink; print ' | ';
print '' . $langs->trans('ReductionShort') . ' | '; print '' . $langs->trans('Qty') . ' | '; print '' . $langs->trans('TotalTTCShort') . ' | '; print "
| ';
//if ($line->product_label) $htmlforlines.= ''.$line->product_label.'';
if (isset($line->product_type))
{
if (empty($line->product_type)) $htmlforlines.=img_object('', 'product').' ';
else $htmlforlines.=img_object('', 'service').' ';
}
if ($line->product_label) $htmlforlines.= $line->product_label;
if ($line->product_label && $line->desc) $htmlforlines.= ' '; if ($line->product_label != $line->desc) { $firstline = dolGetFirstLineOfText($line->desc); if ($firstline != $line->desc) { $htmlforlines.= $form->textwithpicto(dolGetFirstLineOfText($line->desc), $line->desc); } else { $htmlforlines.= $line->desc; } } if (!empty($line->array_options['options_order_notes'])) $htmlforlines.= " (".$line->array_options['options_order_notes'].")"; $htmlforlines.= ' | ';
$htmlforlines.= '' . vatrate($line->remise_percent, true) . ' | '; $htmlforlines.= '' . $line->qty . ' | '; $htmlforlines.= '' . price($line->total_ttc) . ' | '; $htmlforlines.= '
| '.$langs->trans("Empty").' | |||
| '.$langs->trans("Empty").' |
';
print $langs->trans("Customer").': '.$soc->name;
$constantforkey = 'CASHDESK_NO_DECREASE_STOCK'.$_SESSION["takeposterminal"];
if (! empty($conf->stock->enabled) && $conf->global->$constantforkey != "1")
{
$constantforkey = 'CASHDESK_ID_WAREHOUSE'.$_SESSION["takeposterminal"];
$warehouse = new Entrepot($db);
$warehouse->fetch($conf->global->$constantforkey);
print '
'.$langs->trans("Warehouse").': '.$warehouse->ref;
}
print '