23.03.26
This commit is contained in:
@@ -795,7 +795,8 @@ class PayableRule(ModelSQL, ModelView):
|
|||||||
by_deduction = grade - self.deduction_value
|
by_deduction = grade - self.deduction_value
|
||||||
if self.deduction_unit.symbol == 'g/t':
|
if self.deduction_unit.symbol == 'g/t':
|
||||||
result = min(by_percent/Decimal(10000), by_deduction/Decimal(10000))
|
result = min(by_percent/Decimal(10000), by_deduction/Decimal(10000))
|
||||||
result = min(by_percent, by_deduction)
|
else:
|
||||||
|
result = min(by_percent, by_deduction)
|
||||||
|
|
||||||
if self.min_payable is not None:
|
if self.min_payable is not None:
|
||||||
result = max(result, self.min_payable)
|
result = max(result, self.min_payable)
|
||||||
|
|||||||
Reference in New Issue
Block a user