TavernerPOS - Source Code

Clone: 

git clone http://www.librarysmith.co.uk/tavernerPOS

 

Index » tavernerPOS : Commitdiff 30c058

Add option to allow blank buttons defined by a '-' as the menu item name. These are set as invisible when the MenuItemView is rendered and allow for creating column layouts using the Sort Order field

Matt Smith [16-01-11 19:26]
Add option to allow blank buttons defined by a '-' as the menu item name. These are set as invisible when the MenuItemView is rendered and allow for creating column layouts using the Sort Order field
diff --git a/src/com/floreantpos/ui/views/order/MenuItemView.java b/src/com/floreantpos/ui/views/order/MenuItemView.java
old mode 100644
new mode 100755
index 46d2e96..8c8a46f
--- a/src/com/floreantpos/ui/views/order/MenuItemView.java
+++ b/src/com/floreantpos/ui/views/order/MenuItemView.java
@@ -74,7 +74,7 @@ public class MenuItemView extends SelectionView {
 		MenuItem menuItem = (MenuItem) item;
 		ItemButton itemButton = new ItemButton(menuItem);
 		menuItemButtonMap.put(menuItem.getId(), itemButton);
-
+
 		return itemButton;
 	}

@@ -136,6 +136,7 @@ public class MenuItemView extends SelectionView {
 				setText("<html><body><center>" + menuItem.getName() + "</center></body></html>"); //$NON-NLS-1$ //$NON-NLS-2$
 			}

+
 			if(menuItem.getButtonColor() != null) {
 				setBackground(new Color(menuItem.getButtonColor()));
 			}
@@ -144,6 +145,9 @@ public class MenuItemView extends SelectionView {
 			}

 			setPreferredSize(new Dimension(BUTTON_SIZE, BUTTON_SIZE));
+
+			if (menuItem.getName().equals("-"))  this.setVisible(false);
+
 			addActionListener(this);
 		}

diff --git a/src/com/floreantpos/ui/views/order/SelectionView.java b/src/com/floreantpos/ui/views/order/SelectionView.java
old mode 100644
new mode 100755

Comments   
# Kitchen-receipt not printingJulio Ponce 2016-08-01 16:37
Good day I was Wondering if the button add in home screen to print kitchen receipt is avaliable in version 1.4, after clicking SAVE button wont print kitchen receipt, any help you can provide is welcome.

Best regards Julio
Reply | Reply with quote | Quote
# RE: Kitchen-receipt not printingMatt Smith 2016-08-01 17:52
Quoting Julio Ponce:
Good day I was Wondering if the button add in home screen to print kitchen receipt is avaliable in version 1.4, after clicking SAVE button wont print kitchen receipt, any help you can provide is welcome.

Best regards Julio


Hi,

As far as I'm aware none of that code has been changed that pertains to kitchen printers. Was it working on a previous build of TavernerPos?

Matt
Reply | Reply with quote | Quote
# printing on saveNathaniel Gabriel 2018-01-18 21:52
I was Wondering if the print on save could be done, if yes how please.
Reply | Reply with quote | Quote
Add comment