minor fix see table
This commit is contained in:
parent
f9281cfe38
commit
06fe17fcf6
|
@ -55,7 +55,7 @@ class TableEdit(QAbstractTableModel):
|
||||||
if self._fields[col]['type'] == 'integer':
|
if self._fields[col]['type'] == 'integer':
|
||||||
value = int(value)
|
value = int(value)
|
||||||
elif self._fields[col]['type'] == 'float':
|
elif self._fields[col]['type'] == 'float':
|
||||||
value = "{:,.2f}".format(value)
|
value = "{:,.2f}".format(float(value))
|
||||||
self._data[row][col] = value
|
self._data[row][col] = value
|
||||||
on_change = self._fields[col].get('change')
|
on_change = self._fields[col].get('change')
|
||||||
if on_change:
|
if on_change:
|
||||||
|
|
|
@ -3380,6 +3380,6 @@ class AppWindow(FrontWindow):
|
||||||
sale = table_['sale']
|
sale = table_['sale']
|
||||||
if sale:
|
if sale:
|
||||||
self.change_view_to('order_front')
|
self.change_view_to('order_front')
|
||||||
self.load_sale(sale['id'])
|
self.load_sale(sale)
|
||||||
self.dialog_manage_tables.hide()
|
self.dialog_manage_tables.hide()
|
||||||
self.dialog_manage_tables.hide()
|
self.dialog_manage_tables.hide()
|
||||||
|
|
Loading…
Reference in New Issue