Add PO/invoice unit costs to purchase batch row view

This commit is contained in:
Lance Edgar 2016-12-10 10:23:21 -06:00
parent 6389481cea
commit 8578a063f3

View file

@ -371,8 +371,9 @@ class PurchaseBatchView(BatchMasterView):
fs.upc.set(label="UPC") fs.upc.set(label="UPC")
fs.brand_name.set(label="Brand") fs.brand_name.set(label="Brand")
fs.case_quantity.set(readonly=True) fs.case_quantity.set(readonly=True)
fs.po_unit_cost.set(label="PO Unit Cost") fs.po_unit_cost.set(label="PO Unit Cost", renderer=forms.renderers.CurrencyFieldRenderer)
fs.po_total.set(label="PO Total", renderer=forms.renderers.CurrencyFieldRenderer) fs.po_total.set(label="PO Total", renderer=forms.renderers.CurrencyFieldRenderer)
fs.invoice_unit_cost.set(renderer=forms.renderers.CurrencyFieldRenderer)
fs.invoice_total.set(renderer=forms.renderers.CurrencyFieldRenderer) fs.invoice_total.set(renderer=forms.renderers.CurrencyFieldRenderer)
fs.credits.set(readonly=True) fs.credits.set(readonly=True)
fs.append(fa.Field('item_lookup', label="Item Lookup Code", required=True, fs.append(fa.Field('item_lookup', label="Item Lookup Code", required=True,
@ -419,7 +420,9 @@ class PurchaseBatchView(BatchMasterView):
fs.units_expired, fs.units_expired,
fs.cases_mispick, fs.cases_mispick,
fs.units_mispick, fs.units_mispick,
fs.po_unit_cost,
fs.po_total, fs.po_total,
fs.invoice_unit_cost,
fs.invoice_total, fs.invoice_total,
fs.status_code, fs.status_code,
fs.credits, fs.credits,