TavernerPOS - Source Code

Clone: 

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

 

viewgit/viewgit/inc/functions.php:49 Function create_function() is deprecated [8192]

Index » tavernerPOS : Commitdiff 5e1cf1

Add label to OrderTypes UI dialog to indicate that TAKE_OUT is used as Bar Sale. Enum types are not changed throughout the system to maintain compatibility with FloreantPos

Matt Smith [16-01-08 15:34]
Add label to OrderTypes UI dialog to indicate that TAKE_OUT is used as Bar Sale. Enum types are not changed throughout the system to maintain compatibility with FloreantPos
diff --git a/src/com/floreantpos/config/ui/OrderTypeConfigurationView.java b/src/com/floreantpos/config/ui/OrderTypeConfigurationView.java
old mode 100644
new mode 100755
index a48dad8..075da16
--- a/src/com/floreantpos/config/ui/OrderTypeConfigurationView.java
+++ b/src/com/floreantpos/config/ui/OrderTypeConfigurationView.java
@@ -75,7 +75,9 @@ public class OrderTypeConfigurationView extends ConfigurationView {

 	private void addOption(OrderType orderType, JCheckBox cbEnable, JCheckBox cbPostPaid, JTextField tfAlias, JComboBox<VirtualPrinter> cbPrinter) {
 		JPanel panel = new JPanel(new MigLayout("fill", "grow", "")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
-		panel.setBorder(BorderFactory.createTitledBorder(orderType.name().replaceAll("_", " "))); //$NON-NLS-1$ //$NON-NLS-2$
+		if (orderType!=OrderType.TAKE_OUT) panel.setBorder(BorderFactory.createTitledBorder(orderType.name().replaceAll("_", " ")));
+		else panel.setBorder(BorderFactory.createTitledBorder("TAKE OUT (Bar Sale)"));
+
 		panel.add(cbEnable, "gapright 25"); //$NON-NLS-1$
 		panel.add(cbPostPaid, "gapright 25"); //$NON-NLS-1$
 		panel.add(new JLabel(POSConstants.ALIAS_LABEL));

Add comment
These comments are moderated so so won't be published until reviewed.