Examples of clearInput()


Examples of org.ofbiz.pos.component.Input.clearInput()

                    input.setFunction("SECURITYCODE");
                    pos.getOutput().print(UtilProperties.getMessage("pos","SECURITYCODE",Locale.getDefault()));
                } else {
                    Debug.log("Invalid expiration date", module);
                    clearInputPaymentFunctions(pos);
                    input.clearInput();
                    pos.showDialog("dialog/error/invalidexpirationdate");
                }
            }else if (msrInfo == null && (postalCodeInfo == null) ){
                // test security code - allow blank for illegible cards
                if (UtilValidate.isEmpty(input.value()) ||
View Full Code Here

Examples of org.ofbiz.pos.component.Input.clearInput()

                    input.setFunction("SECURITYCODE");
                    input.setFunction("POSTALCODE");
                    pos.getOutput().print(UtilProperties.getMessage("pos","POSTALCODE",Locale.getDefault()));
                } else {
                    clearInputPaymentFunctions(pos);
                    input.clearInput();
                    pos.showDialog("dialog/error/invalidsecuritycode");
                }
            } else {
                String msrInfoStr = null;
                if (msrInfo == null){
View Full Code Here

Examples of org.ofbiz.pos.component.Input.clearInput()

        String refNum = input.value();
        if (refNum == null) {
            pos.getOutput().print(UtilProperties.getMessage("pos","REFNUM",Locale.getDefault()));
            return;
        }
        input.clearInput();

        try {
            double amount = processAmount(trans, pos, amountStr);
            Debug.log("Processing [" + paymentMethodTypeId + "] Amount : " + amount, module);
View Full Code Here

Examples of org.ofbiz.pos.component.Input.clearInput()

                try {
                    amount = Double.parseDouble(amtStr);
                } catch (NumberFormatException e) {
                    Debug.logError("Invalid number for amount : " + amtStr, module);
                    pos.getOutput().print("Invalid Amount!");
                    input.clearInput();
                    throw new GeneralException();
                }
                amount = amount / 100; // convert to decimal
                Debug.log("Set amount / 100 : " + amount, module);
            } else {
View Full Code Here

Examples of org.ofbiz.pos.component.Input.clearInput()

                    input.setFunction("MSRINFO");
                    pos.getOutput().print(UtilProperties.getMessage("pos","CREDEX",Locale.getDefault()));
                } else {
                    Debug.log("Invalid card number - " + input.value(), module);
                    input.clearFunction("CREDIT");
                    input.clearInput();
                    pos.showDialog("dialog/error/invalidcardnumber");
                }
            } else {
                String msrInfoStr = msrInfo[1];
                if (UtilValidate.isNotEmpty(input.value())) {
View Full Code Here

Examples of org.ofbiz.pos.component.Input.clearInput()

        String refNum = input.value();
        if (refNum == null) {
            pos.getOutput().print(UtilProperties.getMessage("pos","REFNUM",Locale.getDefault()));
            return;
        }
        input.clearInput();

        try {
            double amount = processAmount(trans, pos, amountStr);
            Debug.log("Processing [" + paymentMethodTypeId + "] Amount : " + amount, module);
View Full Code Here

Examples of org.ofbiz.pos.component.Input.clearInput()

                try {
                    amount = Double.parseDouble(amtStr);
                } catch (NumberFormatException e) {
                    Debug.logError("Invalid number for amount : " + amtStr, module);
                    pos.getOutput().print("Invalid Amount!");
                    input.clearInput();
                    throw new GeneralException();
                }
                amount = amount / 100; // convert to decimal
                Debug.log("Set amount / 100 : " + amount, module);
            } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.