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