Use enum to display POS_ROW_TYPE
This commit is contained in:
parent
a6bc3fb793
commit
b7ccc6ea07
|
@ -158,6 +158,8 @@ class POSBatchView(BatchMasterView):
|
||||||
def configure_row_grid(self, g):
|
def configure_row_grid(self, g):
|
||||||
super().configure_row_grid(g)
|
super().configure_row_grid(g)
|
||||||
|
|
||||||
|
g.set_enum('row_type', self.enum.POS_ROW_TYPE)
|
||||||
|
|
||||||
g.set_type('quantity', 'quantity')
|
g.set_type('quantity', 'quantity')
|
||||||
g.set_type('reg_price', 'currency')
|
g.set_type('reg_price', 'currency')
|
||||||
g.set_type('txn_price', 'currency')
|
g.set_type('txn_price', 'currency')
|
||||||
|
@ -174,6 +176,8 @@ class POSBatchView(BatchMasterView):
|
||||||
def configure_row_form(self, f):
|
def configure_row_form(self, f):
|
||||||
super().configure_row_form(f)
|
super().configure_row_form(f)
|
||||||
|
|
||||||
|
g.set_enum('row_type', self.enum.POS_ROW_TYPE)
|
||||||
|
|
||||||
f.set_renderer('product', self.render_product)
|
f.set_renderer('product', self.render_product)
|
||||||
|
|
||||||
f.set_type('quantity', 'quantity')
|
f.set_type('quantity', 'quantity')
|
||||||
|
|
Loading…
Reference in a new issue