Add button stub for item refund
not yet implemented though
This commit is contained in:
parent
95bf8ecfca
commit
f9e0e4c02a
|
@ -696,8 +696,7 @@ class POSView(WuttaView):
|
||||||
[
|
[
|
||||||
meta_button("Adjust\nPrice", font_size=30, bgcolor='yellow',
|
meta_button("Adjust\nPrice", font_size=30, bgcolor='yellow',
|
||||||
on_click=self.adjust_price_click),
|
on_click=self.adjust_price_click),
|
||||||
meta_button("TODO", bgcolor='yellow', on_click=self.not_supported,
|
meta_button("REFUND", bgcolor='red', on_click=self.refund_click),
|
||||||
font_size=24),
|
|
||||||
],
|
],
|
||||||
spacing=0,
|
spacing=0,
|
||||||
),
|
),
|
||||||
|
@ -1364,7 +1363,7 @@ class POSView(WuttaView):
|
||||||
font_size=font_size,
|
font_size=font_size,
|
||||||
height=self.default_button_size,
|
height=self.default_button_size,
|
||||||
width=self.default_button_size * 2.5,
|
width=self.default_button_size * 2.5,
|
||||||
bgcolor='purple',
|
bgcolor='yellow',
|
||||||
on_click=toggle_training),
|
on_click=toggle_training),
|
||||||
self.make_button("Cancel",
|
self.make_button("Cancel",
|
||||||
font_size=font_size,
|
font_size=font_size,
|
||||||
|
@ -1389,6 +1388,10 @@ class POSView(WuttaView):
|
||||||
|
|
||||||
self.kick_drawer()
|
self.kick_drawer()
|
||||||
|
|
||||||
|
def refund_click(self, e):
|
||||||
|
self.show_snackbar("TODO: handle refund")
|
||||||
|
self.page.update()
|
||||||
|
|
||||||
def kick_drawer(self):
|
def kick_drawer(self):
|
||||||
self.show_snackbar("TODO: Drawer Kick", bgcolor='yellow')
|
self.show_snackbar("TODO: Drawer Kick", bgcolor='yellow')
|
||||||
self.page.update()
|
self.page.update()
|
||||||
|
|
Loading…
Reference in a new issue