In our sales invoice, we want to display both “Unit Price” and “MRP”. Unit price is our discounted price.
For that, we have added a custom field called “MRP” in the “Inventory item” fields.
How do we display the MRP field using the “Sales Invoice Template”? Which variable name
should I refer to display the custom “MRP” field in the sales invoice?
The ‘item_mrp’ has the right value. However, following error message
is thrown at {% assign item_saving = item_mrp | minus: line.unit_price | times: line.qty %}
“Liquid error: Parameter count mismatch”
I am new to Liquid. Am I missing something in the above code?
Why any arithmetic expression using ‘item_mrp’ after its first assignment fails? Please help to resolve this.
I can see you are already using the filter plus: 0 to convert text into decimal. That’s clever. However this might not be available in Manager implementation.
I might add support for it today. I’ll keep you posted.