Created
January 7, 2009 07:55
-
-
Save abhiyerra/44211 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.openbravo.pos.payment.PaymentInfo; | |
import javax.swing.JOptionPane; | |
boolean isCash = false; | |
String change = ""; | |
PaymentInfo p = ticket.payments.getFirst(); | |
if ("cash".equals(p.getName())) { | |
isCash = true; | |
change = p.printChange(); | |
} | |
if(isCash) { | |
JOptionPane.showMessageDialog(null, "Return " + change, "Change", JOptionPane.PLAIN_MESSAGE); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment