Package org.ofbiz.pos.component

Examples of org.ofbiz.pos.component.Journal


        trans.loadSale(pos);
//        trans.loadOrder(pos); // TODO use order instead of shopping list
    }

    public static synchronized String getSelectedItem(PosScreen pos) {
        Journal journal = pos.getJournal();
        return journal.getSelectedSku();
    }
View Full Code Here


        Journal journal = pos.getJournal();
        return journal.getSelectedSku();
    }

    public static synchronized String getSelectedIdx(PosScreen pos) {
        Journal journal = pos.getJournal();
        return journal.getSelectedIdx();
    }
View Full Code Here

        return journal.getSelectedIdx();
    }
   
    public static synchronized void configureItem(PosScreen pos) {
        PosTransaction trans = PosTransaction.getCurrentTx(pos.getSession());
        Journal journal = pos.getJournal();
        String index = journal.getSelectedIdx();
        String productId = journal.getSelectedSku();
        //trans.configureItem(index, pos);

        boolean aggregatedItem = false;
        ProductConfigWrapper pcw = null;
        try {
View Full Code Here

    public static synchronized void testAlert(PosScreen pos) {
        pos.showDialog("dialog/error/testerror");
    }

    public static synchronized void logSelectedIndex(PosScreen pos) {
        Journal journal = pos.getJournal();
        Debug.log("Selected IDX - " + journal.getSelectedIdx(), module);
    }
View Full Code Here

        // setup the shared components
        this.session = XuiContainer.getSession();
        this.output = new Output(this);
        this.input = new InputWithPassword(this);
        this.journal = new Journal(this);
        this.operator = new Operator(this);
        this.setLastActivity(System.currentTimeMillis());

        if (!firstInit) {
            firstInit = true;
View Full Code Here

        trans.loadSale(pos);
//        trans.loadOrder(pos); // TODO use order instead of shopping list
    }

    public static synchronized String getSelectedItem(PosScreen pos) {
        Journal journal = pos.getJournal();
        return journal.getSelectedSku();
    }
View Full Code Here

        return journal.getSelectedSku();
    }

    public static synchronized void configureItem(PosScreen pos) {
        PosTransaction trans = PosTransaction.getCurrentTx(pos.getSession());
        Journal journal = pos.getJournal();
        String index = journal.getSelectedIdx();
        String productId = journal.getSelectedSku();
        //trans.configureItem(index, pos);

        boolean aggregatedItem = false;
        ProductConfigWrapper pcw = null;
        try {
View Full Code Here

        pos.refresh();
    }

    public static synchronized void clearPayment(PosScreen pos) {
        PosTransaction trans = PosTransaction.getCurrentTx(pos.getSession());
        Journal journal = pos.getJournal();
        String sku = journal.getSelectedSku();
        String idx = journal.getSelectedIdx();
        if (UtilValidate.isNotEmpty(idx) && UtilValidate.isEmpty(sku)) {
            int index = -1;
            try {
                index = Integer.parseInt(idx);
            } catch (Exception e) {
View Full Code Here

        pos.refresh();
    }

    public static synchronized void setRefNum(PosScreen pos) {
        PosTransaction trans = PosTransaction.getCurrentTx(pos.getSession());
        Journal journal = pos.getJournal();
        String sku = journal.getSelectedSku();
        String idx = journal.getSelectedIdx();

        if (UtilValidate.isNotEmpty(idx) && UtilValidate.isEmpty(sku)) {
            String refNum = pos.getInput().value();
            if (UtilValidate.isEmpty(refNum)) {
                pos.getOutput().print(UtilProperties.getMessage(PosTransaction.resource,"PosRefNum",Locale.getDefault()));
View Full Code Here

        // setup the shared components
        this.session = XuiContainer.getSession();
        this.output = new Output(this);
        this.input = new InputWithPassword(this);
        this.journal = new Journal(this);
        this.operator = new Operator(this);
        this.promoStatusBar = new PromoStatusBar(this);
        this.setLastActivity(System.currentTimeMillis());

        if (!firstInit) {
View Full Code Here

TOP

Related Classes of org.ofbiz.pos.component.Journal

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.