Add support for void rows in POS batch
This commit is contained in:
parent
0ee6725188
commit
9f7e70f240
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue