TavernerPOS - Source Code

Clone: 

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

 

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));

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