minor fix see table

This commit is contained in:
Wilson Gomez 2023-01-06 17:28:01 -05:00
parent f9281cfe38
commit 06fe17fcf6
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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()