Printing receipts
A store associate can print the receipt of the order for the customer.
The
StoreOrderSummary_94 print service is called to print the receipt. The
following logic is executed in the service: - The
getItemUOMMasterListAPI is called to retrieve the unit of measure. - The
getRuleDetailsAPI is called to get the unit of measure rule value. If the unit of measure rule value is not set toH, then the unit of measure is shown. If the unit of measure rule is set toH, then the unit of measure is not shown. - The
getShipNodeListAPI is called to get the details of the current store. - The
getCompleteOrderDetailsAPI is called to get all order details for the receipt. - The
getCurrencyListAPI is called to get the order currency type. - The
getOrganizationHierarchyAPI is called to get the organization information to be used in the receipt.
The outputs of these APIs are passed to the custom API,
YCDGetModifiedOutputForOrder, which consolidates the outputs into a single output
and then the output is converted into HTML format for printing.
The store associate can print by using a desktop or a mobile device.
Printing from a desktop browser
- In Google Chrome and Mozilla Firefox browsers, the HTML content is appended into an iFrame and the print command is executed.
- In Internet Explorer, the HTML content is appended into a new pop-up window and the command is executed.
Printing from a mobile browser
- In iOS and Android devices, the HTML content is appended into a new pop-up window and the store associate must use the device options to execute the print.
- In Windows Mobile Internet Explorer, the HTML content is appended into an iFrame and the current content is hidden to show the iFrame. The store associate must use the device options to execute the print.