22.03.26
This commit is contained in:
@@ -773,6 +773,13 @@ class PayableRule(ModelSQL, ModelView):
|
||||
deduction_value = fields.Numeric("Deduction Value")
|
||||
deduction_unit = fields.Many2One('assay.unit',"Unit")
|
||||
|
||||
payable_method = fields.Selection([
|
||||
('percent', 'Fixed %'),
|
||||
('grade_minus', 'Grade minus deduction'),
|
||||
('min_of_both', 'Min(% of grade, grade - deduction)'),
|
||||
], "Method")
|
||||
min_payable = fields.Numeric("Floor (min payable)") # ex: le "min -1" du Cu
|
||||
|
||||
class PenaltyRule(ModelSQL, ModelView):
|
||||
"Penalty Rule"
|
||||
__name__ = 'penalty.rule'
|
||||
|
||||
Reference in New Issue
Block a user