For open invoices partially paid, consider the following example… Subtotal /{ amt (net of tax) } =370.00 –> This amt is without tax Discount Item= 0 Tax Total =55.50 Total /{ total gross amount } = 425.50 Amount Due / { amt remaining }= 287.50 Amount paid= 138.00 Since we need to get the amount remaining… Continue reading Formula to generate the remaining amount without tax for Partially paid transaction types in proportion of amount paid to total amount
Tag: Subtotal
To display the category-based subtotal in the shopping cart
We display the subtotal for products in the salon category on the cart page. Items other than those in the salon category are categorized as Jan/Sen products. cart_summary.tpl {{#if GlossLab}} <td class=”cart-summary-item-count-total custom”> <div>Jan/Sen products : {{Symbol}}{{nonSalonProduct}} </div> <div>Salon products : {{Symbol}}{{salonProduct}} </div> </td> {{/if}} Cart.Summary.View.Site.js var GlossLab; var customersegment = _.find(profile_model.attributes.customfields, function (cust) {… Continue reading To display the category-based subtotal in the shopping cart
How to Format a variable with two decimal values
For formatting an integer variable with fixed two decimal points (Eg: 12.00, 100.34, 123.00, etc )we can use this method: This method can be used for formatting subtotal, total values in the cart, or checkout pages.