Package org.ofbiz.pos.screen

Examples of org.ofbiz.pos.screen.PosScreen


        }
    }

    private void setPayPanel() {
        if (!"main/paypanel".equals(PosScreen.currentScreen.getName())) {
            PosScreen pos = PosScreen.currentScreen.showPage("paypanel", false);
            pos.getInput().setFunction("TOTAL", "");
            pos.refresh();
            Debug.log("Switched to paypanel.xml; triggered TOTAL function", module);
        }
    }
View Full Code Here


        pos.setWaitCursor();
        PosTransaction trans = PosTransaction.getCurrentTx(pos.getSession());
        PosScreen.currentScreen.getOutput().print(UtilProperties.getMessage(PosTransaction.resource,"PosProcessing",Locale.getDefault()));

        if (trans.isEmpty()) {
            PosScreen newPos = pos.showPage("pospanel");
            newPos.showDialog("dialog/error/noitems");
        } else if (trans.getTotalDue().compareTo(BigDecimal.ZERO) > 0) {
            pos.showDialog("dialog/error/notenoughfunds");
        } else {
            // manual locks (not secured; will be unlocked on clear)
            pos.getInput().setLock(true);
View Full Code Here

    public static synchronized void processSale(PosScreen pos) {
        PosTransaction trans = PosTransaction.getCurrentTx(pos.getSession());
        Locale defaultLocale = Locale.getDefault();
        if (trans.isEmpty()) {
            PosScreen newPos = pos.showPage("pospanel");
            newPos.showDialog("dialog/error/noitems");
        } else if (trans.getTotalDue().compareTo(BigDecimal.ZERO) > 0) {
            pos.showDialog("dialog/error/exception", UtilProperties.getMessage("Xuilabels", "NOT_ENOUGH_FUNDS", defaultLocale));
            trans.clearPayment("CASH");
        } else {
            // manual locks (not secured; will be unlocked on clear)
View Full Code Here

        }
    }

    private void setPayPanel() {
        if (!"main/paypanel".equals(PosScreen.currentScreen.getName())) {
            PosScreen pos = PosScreen.currentScreen.showPage("paypanel", false);
            pos.getInput().setFunction("TOTAL", "");
            pos.refresh();
            Debug.logInfo("Switched to paypanel.xml; triggered TOTAL function", module);
        }
    }
View Full Code Here

        }
    }

    private void setPayPanel() {
        if (!"main/paypanel".equals(PosScreen.currentScreen.getName())) {
            PosScreen pos = PosScreen.currentScreen.showPage("paypanel", false);
            pos.getInput().setFunction("TOTAL", "");
            pos.refresh();
            Debug.log("Switched to paypanel.xml; triggered TOTAL function", module);
        }
    }
View Full Code Here

        statusbarClient.setText(customer + " " + message);
    }

    public void clear() {
        if (UtilValidate.isEmpty(statusbarPromoCode.getText())) { // to handle when on another screen
            PosScreen newPos = m_pos.showPage("promopanel");
            PromoStatusBar promoStatusBar = newPos.getPromoStatusBar();
            XEdit statusbarPromoCode = promoStatusBar.getStatusbarPromoCode();
            statusbarPromoCode.setText("");
            XEdit statusbarClient = promoStatusBar.getStatusbarClient();
            statusbarClient.setText("");
            m_pos.showPage("paypanel");
View Full Code Here

    public static synchronized void processSale(PosScreen pos) {
        PosTransaction trans = PosTransaction.getCurrentTx(pos.getSession());
        Locale defaultLocale = Locale.getDefault();
        if (trans.isEmpty()) {
            PosScreen newPos = pos.showPage("pospanel");
            newPos.showDialog("dialog/error/noitems");
        } else if (trans.getTotalDue().compareTo(BigDecimal.ZERO) > 0) {
            pos.showDialog("dialog/error/exception", UtilProperties.getMessage("Xuilabels", "NOT_ENOUGH_FUNDS", defaultLocale));
            trans.clearPayment("CASH");
        } else {
            // manual locks (not secured; will be unlocked on clear)
View Full Code Here

        ManagerEvents.mgrLoggedIn = false;
        PosTransaction trans = PosTransaction.getCurrentTx(pos.getSession());
        if (trans.isEmpty()) {
            pos.showDialog("dialog/error/noitems");
        } else {
            PosScreen newPos = pos.showPage("paypanel");
            newPos.getInput().setFunction("TOTAL");
            newPos.refresh();
        }
    }
View Full Code Here

        }
    }

    private void setPayPanel() {
        if (!"main/paypanel".equals(PosScreen.currentScreen.getName())) {
            PosScreen pos = PosScreen.currentScreen.showPage("paypanel", false);
            pos.getInput().setFunction("TOTAL", "");
            pos.refresh();
            Debug.log("Switched to paypanel.xml; triggered TOTAL function", module);
        }
    }
View Full Code Here

        ManagerEvents.mgrLoggedIn = false;
        PosTransaction trans = PosTransaction.getCurrentTx(pos.getSession());
        if (trans.isEmpty()) {
            pos.showDialog("dialog/error/noitems");
        } else {
            PosScreen newPos = pos.showPage("paypanel");
            newPos.getInput().setFunction("TOTAL");
            newPos.refresh();
        }
    }
View Full Code Here

TOP

Related Classes of org.ofbiz.pos.screen.PosScreen

Copyright © 2018 www.massapicom. 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.