Show case quantity for inventory batch rows

This commit is contained in:
Lance Edgar 2018-01-11 13:07:10 -06:00
parent 0e0ebe9251
commit e334564520

View file

@ -355,6 +355,7 @@ class InventoryBatchView(BatchMasterView):
fs.description.set(readonly=True) fs.description.set(readonly=True)
fs.size.set(readonly=True) fs.size.set(readonly=True)
fs.previous_units_on_hand.set(label="Prev. On Hand") fs.previous_units_on_hand.set(label="Prev. On Hand")
fs.case_quantity.set(renderer=forms.renderers.QuantityFieldRenderer)
fs.cases.set(renderer=forms.renderers.QuantityFieldRenderer) fs.cases.set(renderer=forms.renderers.QuantityFieldRenderer)
fs.units.set(renderer=forms.renderers.QuantityFieldRenderer) fs.units.set(renderer=forms.renderers.QuantityFieldRenderer)
fs.unit_cost.set(readonly=True, renderer=forms.renderers.CurrencyFieldRenderer) fs.unit_cost.set(readonly=True, renderer=forms.renderers.CurrencyFieldRenderer)
@ -370,6 +371,7 @@ class InventoryBatchView(BatchMasterView):
fs.size, fs.size,
fs.status_code, fs.status_code,
fs.previous_units_on_hand, fs.previous_units_on_hand,
fs.case_quantity,
fs.cases, fs.cases,
fs.units, fs.units,
fs.unit_cost, fs.unit_cost,