View source | View content page | Page history | Printable version   

Talk:Openbravo POS Scripting Tutorial


I have implemented the Discount Buttun which works perfectly. The issue I am having is that the when I create a report I do not get the Discounted lines applied as the Product field is set to NULL and does not appear in the report as there is a INNER JOIN specified using the Product ID.

I have created Discount Products with code 0, 5 & 18 (0 for discounts on items that are Tax Free, 5 for discounts on items taxed at 5%, and 18 for discounts on items taxed at 18%).

What I would like is that when the ticket is confirmed, the PRODUCT field in the ticketlines table is populated with the 0, 5 or 18 code.

How can this be done?

Retrieved from ""

This page has been accessed 4,440 times. This page was last modified on 9 July 2010, at 23:27. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.