main #7

Merged
admin merged 620 commits from main into dev 2026-03-29 13:03:25 +00:00
Showing only changes of commit 35c9731a85 - Show all commits

View File

@@ -296,7 +296,7 @@ class ValuationBase(ModelSQL):
for sf in cls.group_fees_by_type_supplier(line, fees): for sf in cls.group_fees_by_type_supplier(line, fees):
sign = -1 if sf.p_r == 'pay' else 1 sign = -1 if sf.p_r == 'pay' else 1
qty = round(lot.get_current_quantity_converted(), 5) qty = round(lot.get_current_quantity_converted(), 5)
if sf.mode == 'ppack': if sf.mode == 'ppack' or sf.mode == 'rate':
price = sf.price price = sf.price
amount = sf.amount * sign amount = sf.amount * sign
elif sf.mode == 'lumpsum': elif sf.mode == 'lumpsum':