Customer display on click product
This commit is contained in:
parent
49b53e04f4
commit
bae5b39706
@ -550,6 +550,10 @@ if ($action == "addline") {
|
|||||||
if ($idoflineadded <= 0) {
|
if ($idoflineadded <= 0) {
|
||||||
$invoice->fetch_thirdparty();
|
$invoice->fetch_thirdparty();
|
||||||
$idoflineadded = $invoice->addline($prod->description, $price, 1, $tva_tx, $localtax1_tx, $localtax2_tx, $idproduct, $customer->remise_percent, '', 0, 0, 0, '', $price_base_type, $price_ttc, $prod->type, -1, 0, '', 0, $parent_line, null, '', '', 0, 100, '', null, 0);
|
$idoflineadded = $invoice->addline($prod->description, $price, 1, $tva_tx, $localtax1_tx, $localtax2_tx, $idproduct, $customer->remise_percent, '', 0, 0, 0, '', $price_base_type, $price_ttc, $prod->type, -1, 0, '', 0, $parent_line, null, '', '', 0, 100, '', null, 0);
|
||||||
|
if (!empty($conf->global->TAKEPOS_CUSTOMER_DISPLAY)) {
|
||||||
|
$CUSTOMER_DISPLAY_line1 = $prod->label;
|
||||||
|
$CUSTOMER_DISPLAY_line2 = price($price_ttc);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$invoice->fetch($placeid);
|
$invoice->fetch($placeid);
|
||||||
@ -1176,6 +1180,23 @@ $( document ).ready(function() {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if (!empty($conf->global->TAKEPOS_CUSTOMER_DISPLAY)) {
|
||||||
|
echo "function CustomerDisplay(){";
|
||||||
|
echo "var line1='".$CUSTOMER_DISPLAY_line1."'.substring(0,20);";
|
||||||
|
echo "line1=line1.padEnd(20);";
|
||||||
|
echo "var line2='".$CUSTOMER_DISPLAY_line2."'.substring(0,20);";
|
||||||
|
echo "line2=line2.padEnd(20);";
|
||||||
|
echo "$.ajax({
|
||||||
|
type: 'GET',
|
||||||
|
data: { text: line1+line2 },
|
||||||
|
url: '".getDolGlobalString('TAKEPOS_PRINT_SERVER')."/display/index.php',
|
||||||
|
});";
|
||||||
|
echo "}";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user