Bill Copy for Extra Printer Assignment
Task: It is required to add a network printer duplicating all bills issued by the cash station during a shift. To do so, you need a script for printing a bill copy from the cash station.
Solution: In the User Layout document type, create your layout and call it from the cash station using the following command:
RK7.PerformRefObject(RK7.FindItemByCode(rkrefMaketSchemeDetail, 2));
Where 2 is the document representation code.
Make changes in the script for confirming bill printing (cash station operations):
procedure CheckOperation1005943(Operation, Parameter: integer; var ValidResult, CallNextTime: boolean); begin if operation = rkoPrintBill then begin ValidResult := GUI.RKMessageDlg('Do you want to print a pre-bill?', 0, 3, 10000) = 6; if ValidResult then RK7.PerformRefObject(RK7.FindItemByCode(rkrefMaketSchemeDetails,350)); end; end;