Applying Conditions and Mathematical Functions on Data in a Receipt Design

Applying Conditions and Mathematical Functions on Data in a Receipt Design

Applying Conditions and Mathematical Functions on Data in a Receipt Design

This article explains how to put conditions and mathematical functions on the data in an iVend POS Receipt design.
Any user with basic XML and programming knowledge can customise the iVend POS receipt.
You can locate the Print Profile setup and definition screen in the iVend Management Console at the following menu location:

Administration > Retail configuration > Print Profile

Choose the available print profile and click the [F4 Edit] button to edit the record.

You can edit the XML format of any of the following POS receipts however this cannot be performed directly within the Print Profile window. The user must export the design via the Receipt Print Format window (Receipt Designer).:

Administration > Retail Configuration > Receipt Print Formats

Select Transaction Receipt and Edit


Figure 1 Receipt Search - Transaction Receipt

       On Receipt Designer click on Design button.


Figure 2 Receipt Designer

On Receipt Designer right pane select Sale Item Drag the if condition from the left pane to the blue colored middle pane. Select Formula on Right pane, the formula settings appears on the bottom pane with formula as Object. 


Figure 3 Receipt Designer -Sale Item Formulas

 

Existing Reports on which the Mathematical calculations can be applied:

1. Labor Chit

2. Day labor Chit

3. Transaction receipt

4. XTape Report

5. Gift Receipt

6. Quotation Receipt

7. Coupon

8. CashInCashOut

9. Gift Certificate

10. DrawerCountChit

11. ExpenseChit

12. ZtapeReport

 

Apply conditions in the XML Receipt:

On Receipt Designer right pane select Sale Item Drag the if condition from the left pane to the blue colored middle pane. Select Formula on Right pane, the formula settings appears on the bottom pane with formula as Object. Click on Update button to commit the condition.


Figure 4 Receipt Designer- Footer

1. “If-else condition”: XML receipt has “If-else condition” to give programming condition to print the data.

 

 Sample Condition 1 Compare with fix value

 

Sample Condition 2 Compare object value:



Figure 5 Condition Input- Operator option list


    • Related Articles

    • Multiple Receipt Printing issue

      Environment: iVend 6.6 7989 SAP B1 10 Problem Statement: iVend is sending lots of receipts for single transaction until printing has to be stopped. Symptoms: It was observed that for Receipt ID ‘Transaction receipt’, Transaction receipt was selected ...
    • Not able to receive a Stock Transfer in SAPB1 ErrorMessage: Not enough data

      Environment : iVend 6.6 with SAP B1 Problem Statement : Not able to receive a Stock Transfer in SAPB1 ErrorMessage "Not enough data" Symptom: Specific computer are not able to receive the stock transfer in SAP. Resolution/Work Around : Clear the junk ...
    • Suspended Transaction XML Receipt Format

      Suspended Transaction XML Receipt Format Environment-   iVend 6.6 Problem statement – There is no by default base XML Receipt Format for Suspended Transaction. Resolution/Work Around: As per ivend current System design there is no such by default ...
    • Modifying the Static text, Data Fields and UDFs

      Modifying the Static text, Data Fields and UDFs This article provides details on the modification of the static text, data fields and UDFs in the iVend POS Receipt. Any user with basic XML and programming knowledge can customize the iVend POS ...
    • Transaction Receipt not printing at POS after applying the patch 7747.

      ******************************************** Internal****************************************** Problem:- Transaction Receipt not printing at POS after applying the patch 7747. However, the receipt was printing fine on patch 7723 Solution:- The issue ...