mirror of
https://bitbucket.org/presik/presik_pos.git
synced 2023-12-14 06:03:00 +01:00
Update es
This commit is contained in:
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
|
@ -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'):
|
||||
|
|
Loading…
Reference in a new issue