Add unit cost for inventory batches

This commit is contained in:
Lance Edgar 2017-07-11 22:40:53 -05:00
parent 1791bd745b
commit 8636db2a53

View file

@ -209,6 +209,7 @@ class InventoryBatchView(BatchMasterView):
g.cases.set(renderer=forms.renderers.QuantityFieldRenderer)
g.units.set(renderer=forms.renderers.QuantityFieldRenderer)
g.status_code.set(label="Status")
g.unit_cost.set(renderer=forms.renderers.CurrencyFieldRenderer)
def configure_row_grid(self, g):
g.configure(
@ -220,6 +221,7 @@ class InventoryBatchView(BatchMasterView):
g.size,
g.cases,
g.units,
g.unit_cost,
g.status_code,
],
readonly=True)
@ -247,6 +249,7 @@ class InventoryBatchView(BatchMasterView):
fs.brand_name.set(readonly=True)
fs.description.set(readonly=True)
fs.size.set(readonly=True)
fs.unit_cost.set(renderer=forms.renderers.CurrencyFieldRenderer)
def configure_row_fieldset(self, fs):
fs.configure(
@ -259,6 +262,7 @@ class InventoryBatchView(BatchMasterView):
fs.status_code,
fs.cases,
fs.units,
fs.unit_cost,
])
@classmethod