Apparently it is not possible to use CALCULATION NAME:Discount or CALCULATION AMOUNT:Discount
outside the DISCOUNT section, no values returned.
However CALCULATION TOTAL:Discountreturns a value.
Using
SambaPOS App 5.2.7 2018-07-30 11:12 DB:143-143 SQ
Not touched any Discount or calculation default setting, nor with action, nor with script.
Making the discount in settle screen, clicking Discount %
Are they meant to be available outside section? Name would seem pretty pointless outside section as it would need the name specified in the expression if it were anyway…
I think I already explain to you what I am trying to acheive: writing ONE line to a file.
That line contains 32 fields, some of them about discount information.
It works if i use something like that:
<L00>field 1|field 2|.......|{DISCOUNTS}| ....|field 32
[DISCOUNTS]
the correct format and calculation
Unfortunatelly, the line format is more like that: