Added the ability to select a printer when printing a receipt
The method PrintBillCheque has been updated with an optional parameter printerSelectionMode, which affects printer selection. This will allow the plugin to choose whether to print the receipt on the printer of the section where the order is located or on the local terminal printer.
When the establishment has multiple sections (IRestaurantSection), it is convenient to set up a separate receipt printer in each of them and configure each section to print receipts on its own printer, so that staff do not have to go to a printer in another hall or on another floor.
There may be exceptions when some terminals are configured to print receipts on the local printer regardless of the order’s location.
Typically, this is how the main cash register is set up.
Previously, the plugin installed on such a terminal could only print receipts on the local printer attached to the terminal, which was inappropriate if the plugin, being installed on one terminal, worked with orders from different sections.
Now, depending on the scenario, the plugin can specify whether to print the receipt on the terminal’s local printer or on the printer of the section where the order is located.
The following options are available for PrinterSelectionMode:
BySection— new mode, uses the section printer,ByTerminal— corresponds to the previous behavior, will use the terminal’s local printer, and if it is not specified, the section printer will be used,Default— default option, in the current implementation coincides with theByTerminaloption.