Fix bug when editing truck dump child batch row quantities

sometimes we need to "add" to an existing claim which has qty None
This commit is contained in:
Lance Edgar 2018-09-19 11:00:10 -05:00
parent c5fef6b954
commit 5b2f4127ea
2 changed files with 7 additions and 1 deletions

View file

@ -662,6 +662,9 @@ class PurchasingBatchView(BatchMasterView):
f.set_type('invoice_unit_cost', 'currency')
f.set_type('invoice_total', 'currency')
# upc
f.set_type('upc', 'gpc')
if self.creating:
f.remove_fields(
'upc',