Minor fix

This commit is contained in:
Oscar Alvarez 2021-01-04 20:32:31 -05:00
parent a02338d6b4
commit c15b3cc766
1 changed files with 7 additions and 3 deletions

View File

@ -124,16 +124,20 @@ class ButtonsFunction(QGridLayout):
) )
if self.parent.enviroment == 'restaurant': if self.parent.enviroment == 'restaurant':
self.values.extend([ rest_options = [
['button_comment', self.tr('NOTE'), 'action_comment'], ['button_comment', self.tr('NOTE'), 'action_comment'],
['button_tip', self.tr('TIP'), 'action_tip'], ['button_tip', self.tr('TIP'), 'action_tip'],
['button_tables', self.tr('TABLES'), 'action_tables'], ['button_tables', self.tr('TABLES'), 'action_tables'],
['button_consumer', self.tr('CONSUMER'), 'action_consumer'], ['button_consumer', self.tr('CONSUMER'), 'action_consumer'],
['button_print_order', self.tr('ORDER'), 'action_print_order'], ['button_print_order', self.tr('ORDER'), 'action_print_order'],
['button_delivery', self.tr('DELIVERY'), 'action_delivery'], ['button_delivery', self.tr('DELIVERY'), 'action_delivery'],
['button_global_discount', self.tr('GLOBAL DISCOUNT'), 'action_global_discount'],
# ['button_reservations', self.tr('RESERVATIONS'), 'action_reservations'], # ['button_reservations', self.tr('RESERVATIONS'), 'action_reservations'],
]) ]
self.values.extend(rest_options)
if self.parent.type_pos_user in ('cashier', 'frontend', 'frontend_admin'):
self.values.append(
['button_global_discount', self.tr('GLOBAL DISCOUNT'), 'action_global_discount'],
)
class ButtonsStacked(QHBoxLayout): class ButtonsStacked(QHBoxLayout):