Openbravo POS Scripting Tutorial - OpenbravoWiki
The following code when associated to a button adds a 15% discount based on the total of the receipt. If the receipt includes items with different taxes it will add one discount line for each group of taxes. The discount amount is calculate as the percent...