Package org.openbravo.model.common.businesspartner

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


        // Shipping company
        iOrder.setShippingCompany(extPos.getShippingCompany());

        // 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);
        }

        // Document type
        iOrder.setDocumentType(extPos.getDocumentType());
View Full Code Here


   */
  public void testAccessLevelCO() {
    setBigBazaarAdminContext();
    final Client c = OBDal.getInstance().get(Client.class, "0");

    final BusinessPartner bp = OBDal.getInstance().get(BusinessPartner.class, "1000005");
    bp.setClient(c);
    try {
      commitTransaction();
      fail();
    } catch (final OBException e) {
      // no fail!
View Full Code Here

TOP

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

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.