So that when customers buy multiples of 1 product, that it will still add up as a total 10% of those goods Ex GST price.
Keep in mind, I have a website dedicated to wholesale customers. I am migrating everything from one site to another and run everything through that. Most of the major customers will be handled in Saasu afterwards. Not sure how relevant this info is but thought I would mention it.
Ah ok I see,
I have experience in web development, just not in Neto's platform
I'm actually doing this for a family friend hence the numerous questions rather avoid having to pay plenty of money to resolve his issues.
Would it work if I were to put in something like this? [%if [@user:group_id@] eq '2' %]
Yep that should be valid code. You can always output the tag directly ([@user:group_id@]) and then generate a test invoice to check it's returning the values you expect before writing more complex code.
Also take a look at the debug function to get a list of valid B@SE tags in a given page context:
https://developers.neto.com.au/documentation/neto-designer-documentation/b-se-tag-library/function-tags/formatting-and-data/debug/
Ah nope I'm not understanding the problem. That invoice looks fine, which field is incorrect?
hmmm my bad, there's just some small discrepancies, as 10% of 20.24 is 2.024. So the Ex GST price should be 18.22. However, on the invoice, it is calculating 18.40. I'm assuming the logic isn't correct and therefore not outputting the right prices for clients. Still confusing as hell I'm sure. I'll try your suggestion and test it out
I'm afraid your maths is faulty. A 10% GST means 10% on top of the ex GST price, not 10% of the sale price. So the ex GST price is 20.24 / 1.1 = ?18.40
Maths wasn't always my best subject at school! Apologies about that, now all making sense to me haha. Thanks again Erik!
Hello. Would it be possible to get the code to tweak the invoice template to display ex gst and inc gst like in your example? I have no experience with this but looking at the system template, might be a couple of lines edit.
It's hard to give a specific answer because everyone's invoice templates are a little different. Edit the file /printdocs/order/invoice/template.html and search for "subtotal". That should find the relevant lines. It's complicated to work with because that figure may or may not include GST depending on whether "Tax Inclusive" was ticked on the order.
You can do maths on the value using the data tag, so to get 10% of the subtotal you'd use:
[%data id:'subtotal' calc:'/' cvalue:'10'%]
If you need a hand, post a screenshot of your current order template, a mockup showing what you'd like and a link to the complete template code on Dropbox or similar.