Tweaks per "delete products" batch

This commit is contained in:
Lance Edgar 2021-02-13 12:29:43 -06:00
parent 34623a7307
commit ff904d840f
2 changed files with 4 additions and 1 deletions

View file

@ -53,6 +53,7 @@ class DeleteProductBatchView(BatchMasterView):
'size', 'size',
'department_name', 'department_name',
'subdepartment_name', 'subdepartment_name',
'present_in_scale',
'status_code', 'status_code',
] ]
@ -67,6 +68,7 @@ class DeleteProductBatchView(BatchMasterView):
'department_name', 'department_name',
'subdepartment_number', 'subdepartment_number',
'subdepartment_name', 'subdepartment_name',
'present_in_scale',
'status_code', 'status_code',
'status_text', 'status_text',
] ]
@ -74,7 +76,7 @@ class DeleteProductBatchView(BatchMasterView):
def row_grid_extra_class(self, row, i): def row_grid_extra_class(self, row, i):
if row.status_code == row.STATUS_PRODUCT_NOT_FOUND: if row.status_code == row.STATUS_PRODUCT_NOT_FOUND:
return 'warning' return 'warning'
if row.status_code == row.STATUS_DEPARTMENT_NOT_ALLOWED: if row.status_code == row.STATUS_DELETE_NOT_ALLOWED:
return 'notice' return 'notice'

View file

@ -58,6 +58,7 @@ class DepartmentView(MasterView):
'product', 'product',
'personnel', 'personnel',
'exempt_from_gross_sales', 'exempt_from_gross_sales',
'allow_product_deletions',
] ]
def configure_grid(self, g): def configure_grid(self, g):