Add support for void rows in POS batch

This commit is contained in:
Lance Edgar 2023-09-30 21:08:01 -05:00
parent 0ee6725188
commit 9f7e70f240

View file

@ -105,6 +105,7 @@ class POSBatchView(BatchMasterView):
'tax1_total',
'tax2_total',
'tender_total',
'void',
'status_code',
'timestamp',
'user',
@ -166,6 +167,10 @@ class POSBatchView(BatchMasterView):
g.set_link('product')
g.set_link('description')
def row_grid_extra_class(self, row, i):
if row.void:
return 'warning'
def configure_row_form(self, f):
super().configure_row_form(f)