Skip to content

Commit

Permalink
NEW print / send email form in takepos
Browse files Browse the repository at this point in the history
  • Loading branch information
ptibogxiv committed Aug 24, 2019
1 parent 1463302 commit 4678373
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions htdocs/takepos/invoice.php
Expand Up @@ -399,10 +399,12 @@ function fail($message)
else $sectionwithinvoicelink.=$langs->trans('BillShortStatusValidated');
}
$sectionwithinvoicelink.='</span>';
if ($conf->global->TAKEPOS_AUTO_PRINT_TICKETS) {
if ($conf->global->TAKEPOSCONNECTOR) $sectionwithinvoicelink.=' <button id="buttonprint" type="button" onclick="TakeposPrinting('.$placeid.');">'.$langs->trans('PrintTicket').'</button>';
else $sectionwithinvoicelink.=' <button id="buttonprint" type="button" onclick="Print('.$placeid.');">'.$langs->trans('PrintTicket').'</button>';
if ($conf->global->TAKEPOS_AUTO_PRINT_TICKETS) $sectionwithinvoicelink.='<script language="javascript">$("#buttonprint").click();</script>';
}
$sectionwithinvoicelink.=' <button id="buttonprintsend" type="button" onclick="PrintSend('.$placeid.');">'.$langs->trans('PrintSendTicket').'</button>';
$sectionwithinvoicelink.='<script language="javascript">$("#buttonprint").click();</script>';
} else $sectionwithinvoicelink.=' <button id="buttonprintsend" type="button" onclick="PrintSend('.$placeid.');">'.$langs->trans('PrintSendTicket').'</button>';}


/*
Expand Down

0 comments on commit 4678373

Please sign in to comment.