Next-generation platform

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 getItemUOMMasterList API is called to retrieve the unit of measure.
  • The getRuleDetails API is called to get the unit of measure rule value. If the unit of measure rule value is not set to H, then the unit of measure is shown. If the unit of measure rule is set to H, then the unit of measure is not shown.
  • The getShipNodeList API is called to get the details of the current store.
  • The getCompleteOrderDetails API is called to get all order details for the receipt.
  • The getCurrencyList API is called to get the order currency type.
  • The getOrganizationHierarchy API 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.