Arithmetic Calculations



Calculations are very important for creating invoices, proposals, etc.  With EDocGen, you can perform +, -, *, /, ><  mathematical operations right inside the template.  While creating documents, the system automatically computes for dynamically populated values.


  1. {val1+val2}
  2. {val1*val2}
  3. {val1-val2}
  4. {val1/val2}

You can create any combination of them for your requirement. For example

  {(Val1*Val2)+Val3}

  {Val1-Val2/Val3}

 {Quantity1*Unit_Price_Item1+Quantity2*Unit_Price_Item2+Quantity3*Unit_Price_Item3}


If you are populating XML/JSON data into a table, the system can compute the sum for the table values. Add tags to your template, as shown below. The table is named 'IT', and we need to compute the sum for the 'Amount' column.