Test actual quantity against None for processed quantity in Blanket Agreement
Closes #13865
This commit is contained in:
@@ -359,8 +359,11 @@ class LineBlanketAgreement(metaclass=PoolMeta):
|
||||
quantity = super().quantity_for_blanket_agreement(line, round=round)
|
||||
if (self.secondary_unit
|
||||
and self.secondary_unit.category == line.unit.category):
|
||||
purchase_line_quantity = (
|
||||
self.actual_quantity if self.actual_quantity is not None
|
||||
else self.quantity)
|
||||
quantity = Uom.compute_qty(
|
||||
self.unit, (self.actual_quantity or self.quantity), line.unit,
|
||||
self.unit, purchase_line_quantity, line.unit,
|
||||
factor=self.secondary_uom_factor,
|
||||
rate=self.secondary_uom_rate,
|
||||
round=round)
|
||||
|
||||
Reference in New Issue
Block a user