Update es

This commit is contained in:
Oscar Alvarez 2020-12-31 15:50:37 -05:00
parent ea8fbe2ee9
commit 7eccc78319
3 changed files with 235 additions and 196 deletions

Binary file not shown.

File diff suppressed because it is too large Load diff

View file

@ -466,6 +466,23 @@ class MainWindow(FrontWindow):
'size': self.screen_size,
'color': self.label_color
}))
PAYMENT_METHODS = [
('', ''),
('cash', self.tr('CASH')),
('terminal', self.tr('TERMINAL')),
]
info_fields.append(
('payment_method', {
'name': self.tr('PAYMENT METHOD'),
'placeholder': False,
'type': 'selection',
'on_change': 'action_payment_method_selection_changed',
'values': PAYMENT_METHODS,
'size': self.screen_size,
'color': self.label_color
}))
info_fields.append(
('table_assigned', {
'name': self.tr('ASSIGNED TABLE'),
@ -1125,6 +1142,10 @@ class MainWindow(FrontWindow):
val = self.field_kind.get_id()
self.store.update({'kind': val})
def action_payment_method_selection_changed(self, index):
val = self.field_payment_method.get_id()
self.store.update({'payment_method': val})
def action_invoice_type_selection_changed(self, index):
val = self.field_invoice_type.get_id()
if val and self._sale and self._sale.get('id'):