Move some label definitions for pricing batch rows

This commit is contained in:
Lance Edgar 2018-11-18 20:47:24 -06:00
parent 4a36ab827c
commit 342c7c3854

View file

@ -76,6 +76,11 @@ class PricingBatchView(BatchMasterView):
row_labels = {
'upc': "UPC",
'regular_unit_cost': "Reg. Cost",
'price_diff': "$ Diff",
'brand_name': "Brand",
'price_markup': "Markup",
'manually_priced': "Manual",
}
row_grid_columns = [
@ -122,12 +127,6 @@ class PricingBatchView(BatchMasterView):
g.set_type('new_price', 'currency')
g.set_type('price_diff', 'currency')
g.set_label('brand_name', "Brand")
g.set_label('regular_unit_cost', "Reg. Cost")
g.set_label('price_markup', "Markup")
g.set_label('price_diff', "Diff")
g.set_label('manually_priced', "Manual")
def row_grid_extra_class(self, row, i):
if row.status_code == row.STATUS_CANNOT_CALCULATE_PRICE:
return 'warning'