Add unit cost for inventory batches
This commit is contained in:
parent
1791bd745b
commit
8636db2a53
|
@ -209,6 +209,7 @@ class InventoryBatchView(BatchMasterView):
|
||||||
g.cases.set(renderer=forms.renderers.QuantityFieldRenderer)
|
g.cases.set(renderer=forms.renderers.QuantityFieldRenderer)
|
||||||
g.units.set(renderer=forms.renderers.QuantityFieldRenderer)
|
g.units.set(renderer=forms.renderers.QuantityFieldRenderer)
|
||||||
g.status_code.set(label="Status")
|
g.status_code.set(label="Status")
|
||||||
|
g.unit_cost.set(renderer=forms.renderers.CurrencyFieldRenderer)
|
||||||
|
|
||||||
def configure_row_grid(self, g):
|
def configure_row_grid(self, g):
|
||||||
g.configure(
|
g.configure(
|
||||||
|
@ -220,6 +221,7 @@ class InventoryBatchView(BatchMasterView):
|
||||||
g.size,
|
g.size,
|
||||||
g.cases,
|
g.cases,
|
||||||
g.units,
|
g.units,
|
||||||
|
g.unit_cost,
|
||||||
g.status_code,
|
g.status_code,
|
||||||
],
|
],
|
||||||
readonly=True)
|
readonly=True)
|
||||||
|
@ -247,6 +249,7 @@ class InventoryBatchView(BatchMasterView):
|
||||||
fs.brand_name.set(readonly=True)
|
fs.brand_name.set(readonly=True)
|
||||||
fs.description.set(readonly=True)
|
fs.description.set(readonly=True)
|
||||||
fs.size.set(readonly=True)
|
fs.size.set(readonly=True)
|
||||||
|
fs.unit_cost.set(renderer=forms.renderers.CurrencyFieldRenderer)
|
||||||
|
|
||||||
def configure_row_fieldset(self, fs):
|
def configure_row_fieldset(self, fs):
|
||||||
fs.configure(
|
fs.configure(
|
||||||
|
@ -259,6 +262,7 @@ class InventoryBatchView(BatchMasterView):
|
||||||
fs.status_code,
|
fs.status_code,
|
||||||
fs.cases,
|
fs.cases,
|
||||||
fs.units,
|
fs.units,
|
||||||
|
fs.unit_cost,
|
||||||
])
|
])
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
Loading…
Reference in a new issue