Package org.openbravo.model.common.businesspartner

Examples of org.openbravo.model.common.businesspartner.Location


        // Business Partner
        if (bp_id == null) {
            final BusinessPartner syncBp = extPos.getBusinessPartner();
            iOrder.setBusinessPartner(syncBp);
            final Location syncBpLoc = (syncBp.getBusinessPartnerLocationList()
                    .isEmpty()) ? null : syncBp
                    .getBusinessPartnerLocationList().get(0);

            iOrder.setPartnerAddress(syncBpLoc);
            // Payment Term
            iOrder.setPaymentTerms(syncBp.getPaymentTerms());
        } else {
            final BusinessPartner syncSelBp = (BusinessPartner) OBDal
                    .getInstance().get("BusinessPartner", bp_id);
            iOrder.setBusinessPartner(syncSelBp);
            final Location syncBpLoc = (syncSelBp
                    .getBusinessPartnerLocationList().isEmpty()) ? null
                    : syncSelBp.getBusinessPartnerLocationList().get(0);
            iOrder.setPartnerAddress(syncBpLoc);
        }
View Full Code Here

TOP

Related Classes of org.openbravo.model.common.businesspartner.Location

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.