Fixes Issue 22673: Business Partner Blocking.
authorDavid Miguelez <david.miguelez@openbravo.com>
Thu, 10 Jan 2013 16:34:20 +0100
changeset 19194 50e8582535d5
parent 19193 8525372a1fce
child 19195 3e752a597e55
Fixes Issue 22673: Business Partner Blocking.
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddOrderOrInvoice.html
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddOrderOrInvoice.java
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromInvoice.html
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromInvoice.java
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromTransaction.html
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromTransaction.java
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_ExecutePayment.java
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/FIN_Utility.java
src-db/database/model/functions/C_INVOICE_CREATE.xml
src-db/database/model/functions/C_INVOICE_POST.xml
src-db/database/model/functions/C_ORDER_POST1.xml
src-db/database/model/functions/M_INOUT_CREATE.xml
src-db/database/model/functions/M_INOUT_POST.xml
src-db/database/model/functions/M_REQUISITION_POST.xml
src-db/database/model/tables/C_BPARTNER.xml
src-db/database/sourcedata/AD_COLUMN.xml
src-db/database/sourcedata/AD_ELEMENT.xml
src-db/database/sourcedata/AD_FIELD.xml
src-db/database/sourcedata/AD_FIELDGROUP.xml
src-db/database/sourcedata/AD_MESSAGE.xml
src/org/openbravo/erpCommon/ad_callouts/SE_Invoice_BPartner.java
src/org/openbravo/erpCommon/ad_callouts/SE_Order_BPartner.java
src/org/openbravo/erpCommon/ad_callouts/SE_Payment_BPartner.java
src/org/openbravo/erpCommon/ad_callouts/SL_InOut_BPartner.java
src/org/openbravo/erpCommon/ad_callouts/SL_Requisition_BPartner_PriceList.java
src/org/openbravo/erpCommon/ad_process/ConvertQuotationIntoOrder.java
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddOrderOrInvoice.html	Thu Jan 10 15:50:42 2013 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddOrderOrInvoice.html	Thu Jan 10 16:34:20 2013 +0100
@@ -133,6 +133,33 @@
   return true;
 }
 
+function bPartnerBlocked(){
+  try {
+    var url = "../org.openbravo.advpaymentmngt.ad_actionbutton/AddOrderOrInvoice.html";
+    var paramXMLReq = null;
+    return submitXmlHttpRequest(callBackBPartnerBlocked, document.frmMain, "BPARTNERBLOCK", url, false, null, paramXMLReq);
+  } catch (e) {
+    alert(e);
+  }
+}
+
+function callBackBPartnerBlocked(paramXMLParticular, XMLHttpRequestObj) {
+  if (getReadyStateHandler(XMLHttpRequestObj)) {
+    try {
+      if (XMLHttpRequestObj.responseText) {
+        strText = XMLHttpRequestObj.responseText;
+        var objson = eval(strText);
+        showJSMessage(objson.text);
+        return false;
+      } else {
+        openProcessPayment();
+        return true;
+      }
+    } catch (e) {}
+  }
+  return true;
+}
+
 function callBackGrid(paramXMLParticular, XMLHttpRequestObj) {
   var strText = '';
   if (getReadyStateHandler(XMLHttpRequestObj)) {
@@ -1696,7 +1723,7 @@
                   <button type="button" 
                     id="buttonProcess"
                     class="ButtonLink" 
-                    onclick="openProcessPayment();return false;"
+                    onclick="bPartnerBlocked(this);return false;"
                     onfocus="buttonEvent('onfocus', this); window.status='Create'; return true;"
                     onblur="buttonEvent('onblur', this);"
                     onkeyup="buttonEvent('onkeyup', this);"
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddOrderOrInvoice.java	Thu Jan 10 15:50:42 2013 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddOrderOrInvoice.java	Thu Jan 10 16:34:20 2013 +0100
@@ -112,6 +112,42 @@
       printGrid(response, vars, strBusinessPartnerId, strPaymentId, strOrgId, strExpectedDateFrom,
           strExpectedDateTo, strDocumentType, strSelectedPaymentDetails, isReceipt,
           showAlternativePM);
+    } else if (vars.commandIn("BPARTNERBLOCK")) {
+      boolean isReceipt = vars.getRequiredStringParameter("isReceipt").equals("Y");
+      String strBusinessPartnerId = vars.getRequestGlobalVariable("inpBusinessPartnerId", "");
+      if ("".equals(strBusinessPartnerId)) {
+        strBusinessPartnerId = vars.getRequestGlobalVariable("inpcBPartnerId", "");
+      }
+      if (!"".equals(strBusinessPartnerId)) {
+        BusinessPartner businessPartner = OBDal.getInstance().get(BusinessPartner.class,
+            strBusinessPartnerId);
+        if (FIN_Utility.isBlockedBusinessPartner(businessPartner.getId(), isReceipt, 4)) {
+          businessPartnerBlocked(response, vars, businessPartner.getIdentifier());
+        }
+      } else {
+        String strSelectedScheduledPaymentDetailIds = vars.getInStringParameter(
+            "inpScheduledPaymentDetailId", "", null);
+        if (!"".equals(strSelectedScheduledPaymentDetailIds)) {
+          OBContext.setAdminMode(true);
+          try {
+            List<FIN_PaymentScheduleDetail> selectedPaymentDetails = FIN_Utility.getOBObjectList(
+                FIN_PaymentScheduleDetail.class, strSelectedScheduledPaymentDetailIds);
+            for (FIN_PaymentScheduleDetail psd : selectedPaymentDetails) {
+              BusinessPartner bPartner;
+              if (psd.getInvoicePaymentSchedule() == null) {
+                bPartner = psd.getOrderPaymentSchedule().getOrder().getBusinessPartner();
+              } else {
+                bPartner = psd.getInvoicePaymentSchedule().getInvoice().getBusinessPartner();
+              }
+              if (FIN_Utility.isBlockedBusinessPartner(bPartner.getId(), isReceipt, 4)) {
+                businessPartnerBlocked(response, vars, bPartner.getIdentifier());
+              }
+            }
+          } finally {
+            OBContext.restorePreviousMode();
+          }
+        }
+      }
     } else if (vars.commandIn("SAVE") || vars.commandIn("SAVEANDPROCESS")) {
       boolean isReceipt = vars.getRequiredStringParameter("isReceipt").equals("Y");
       String strAction = null;
@@ -887,6 +923,21 @@
     return storedNotSelectedPSDs;
   }
 
+  private void businessPartnerBlocked(HttpServletResponse response, VariablesSecureApp vars,
+      String strBPartnerName) throws IOException, ServletException {
+
+    try {
+      JSONObject json = new JSONObject();
+      json.put("text", "SelectedBPartnerBlocked");
+      response.setContentType("text/html; charset=UTF-8");
+      PrintWriter out = response.getWriter();
+      out.println("objson = " + json);
+      out.close();
+    } catch (JSONException e) {
+      log4j.error(e);
+    }
+  }
+
   public String getServletInfo() {
     return "Servlet that presents the payment proposal";
     // end of getServletInfo() method
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromInvoice.html	Thu Jan 10 15:50:42 2013 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromInvoice.html	Thu Jan 10 16:34:20 2013 +0100
@@ -273,6 +273,33 @@
   return true;
 }
 
+function bPartnerBlocked(){
+  try {
+    var url = "../org.openbravo.advpaymentmngt.ad_actionbutton/AddPaymentFromInvoice.html";
+    var paramXMLReq = null;
+    return submitXmlHttpRequest(callBackBPartnerBlocked, document.frmMain, "BPARTNERBLOCK", url, false, null, paramXMLReq);
+  } catch (e) {
+    alert(e);
+  }
+}
+
+function callBackBPartnerBlocked(paramXMLParticular, XMLHttpRequestObj) {
+  if (getReadyStateHandler(XMLHttpRequestObj)) {
+    try {
+      if (XMLHttpRequestObj.responseText) {
+        strText = XMLHttpRequestObj.responseText;
+        var objson = eval(strText);
+        showJSMessage(objson.text);
+        return false;
+      } else {
+        openProcessPayment();
+        return true;
+      }
+    } catch (e) {}
+  }
+  return true;
+}
+
 function useCreditOnChange(){
   actualPaymentOnChange();
   updateTotal();
@@ -467,9 +494,9 @@
   if (getReadyStateHandler(XMLHttpRequestObj)) {
     try {
       if (XMLHttpRequestObj.responseText) {
-    	strText = XMLHttpRequestObj.responseText;
+      strText = XMLHttpRequestObj.responseText;
         createCombo(document.getElementById('paramActionDocument'), strText);
-	    document.getElementById('client_top_popup').style.display = 'block';
+      document.getElementById('client_top_popup').style.display = 'block';
         document.getElementById('client_top').style.display = 'none';
         document.getElementById('client_middle').style.display = 'none';
         document.getElementById('client_bottom').style.display = 'none';
@@ -1235,7 +1262,7 @@
                   <button type="button" 
                     id="buttonProcess"
                     class="ButtonLink" 
-                    onclick="openProcessPayment();return false;"
+                    onclick="bPartnerBlocked(this);return false;"
                     onfocus="buttonEvent('onfocus', this); window.status='Create'; return true;"
                     onblur="buttonEvent('onblur', this);"
                     onkeyup="buttonEvent('onkeyup', this);"
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromInvoice.java	Thu Jan 10 15:50:42 2013 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromInvoice.java	Thu Jan 10 16:34:20 2013 +0100
@@ -151,6 +151,14 @@
       refreshExchangeRate(response, vars, strCurrencyId, strFinancialAccountCurrencyId,
           strPaymentDate, org, conversionRatePrecision);
 
+    } else if (vars.commandIn("BPARTNERBLOCK")) {
+      boolean isReceipt = vars.getRequiredStringParameter("isReceipt").equals("Y");
+      String strReceivedFromId = vars.getRequiredStringParameter("inpBusinessPartnerId");
+      BusinessPartner businessPartner = OBDal.getInstance().get(BusinessPartner.class,
+          strReceivedFromId);
+      if (FIN_Utility.isBlockedBusinessPartner(businessPartner.getId(), isReceipt, 4)) {
+        businessPartnerBlocked(response, vars, businessPartner.getIdentifier());
+      }
     } else if (vars.commandIn("SAVE") || vars.commandIn("SAVEANDPROCESS")) {
       boolean isReceipt = vars.getRequiredStringParameter("isReceipt").equals("Y");
       String strAction = null;
@@ -730,4 +738,20 @@
     }
     return false;
   }
+
+  private void businessPartnerBlocked(HttpServletResponse response, VariablesSecureApp vars,
+      String strBPartnerName) throws IOException, ServletException {
+
+    try {
+      JSONObject json = new JSONObject();
+      json.put("text", "SelectedBPartnerBlocked");
+      response.setContentType("text/html; charset=UTF-8");
+      PrintWriter out = response.getWriter();
+      out.println("objson = " + json);
+      out.close();
+    } catch (JSONException e) {
+      log4j.error(e);
+    }
+
+  }
 }
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromTransaction.html	Thu Jan 10 15:50:42 2013 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromTransaction.html	Thu Jan 10 16:34:20 2013 +0100
@@ -132,6 +132,34 @@
     }
   }
 }
+
+function bPartnerBlocked(){
+  try {
+    var url = "../org.openbravo.advpaymentmngt.ad_actionbutton/AddPaymentFromTransaction.html";
+    var paramXMLReq = null;
+    return submitXmlHttpRequest(callBackBPartnerBlocked, document.frmMain, "BPARTNERBLOCK", url, false, null, paramXMLReq);
+  } catch (e) {
+    alert(e);
+  }
+}
+
+function callBackBPartnerBlocked(paramXMLParticular, XMLHttpRequestObj) {
+  if (getReadyStateHandler(XMLHttpRequestObj)) {
+    try {
+      if (XMLHttpRequestObj.responseText) {
+        strText = XMLHttpRequestObj.responseText;
+        var objson = eval(strText);
+        showJSMessage(objson.text);
+        return false;
+      } else {
+        openProcessPayment();
+        return true;
+      }
+    } catch (e) {}
+  }
+  return true;
+}
+
 function callBackPaymentMethod(paramXMLParticular, XMLHttpRequestObj) {
   var strText = "";
   if (getReadyStateHandler(XMLHttpRequestObj)) {
@@ -1996,7 +2024,7 @@
                   <button type="button" 
                     id="buttonProcess"
                     class="ButtonLink" 
-                    onclick="openProcessPayment();return false;"
+                    onclick="bPartnerBlocked(this);return false;"
                     onfocus="buttonEvent('onfocus', this); window.status='Create'; return true;"
                     onblur="buttonEvent('onblur', this);"
                     onkeyup="buttonEvent('onkeyup', this);"
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromTransaction.java	Thu Jan 10 15:50:42 2013 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromTransaction.java	Thu Jan 10 16:34:20 2013 +0100
@@ -168,6 +168,39 @@
       exchangeRateFormat = vars.getSessionValue("#FormatOutput|generalQtyRelation", "#,##0.######");
       refreshExchangeRate(response, strCurrencyId, strFinancialAccountCurrencyId, strPaymentDate,
           fa.getOrganization(), conversionRatePrecision);
+    } else if (vars.commandIn("BPARTNERBLOCK")) {
+      boolean isReceipt = vars.getRequiredStringParameter("isReceipt").equals("Y");
+      final String strBusinessPartnerId = vars.getRequestGlobalVariable("inpcBpartnerId", "");
+      if (!"".equals(strBusinessPartnerId)) {
+        BusinessPartner businessPartner = OBDal.getInstance().get(BusinessPartner.class,
+            strBusinessPartnerId);
+        if (FIN_Utility.isBlockedBusinessPartner(businessPartner.getId(), isReceipt, 4)) {
+          businessPartnerBlocked(response, vars, businessPartner.getIdentifier());
+        }
+      } else {
+        String strSelectedScheduledPaymentDetailIds = vars.getInStringParameter(
+            "inpScheduledPaymentDetailId", "", null);
+        if (!"".equals(strSelectedScheduledPaymentDetailIds)) {
+          OBContext.setAdminMode();
+          try {
+            List<FIN_PaymentScheduleDetail> selectedPaymentDetails = FIN_Utility.getOBObjectList(
+                FIN_PaymentScheduleDetail.class, strSelectedScheduledPaymentDetailIds);
+            for (FIN_PaymentScheduleDetail psd : selectedPaymentDetails) {
+              BusinessPartner bPartner;
+              if (psd.getInvoicePaymentSchedule() == null) {
+                bPartner = psd.getOrderPaymentSchedule().getOrder().getBusinessPartner();
+              } else {
+                bPartner = psd.getInvoicePaymentSchedule().getInvoice().getBusinessPartner();
+              }
+              if (FIN_Utility.isBlockedBusinessPartner(bPartner.getId(), isReceipt, 4)) {
+                businessPartnerBlocked(response, vars, bPartner.getIdentifier());
+              }
+            }
+          } finally {
+            OBContext.restorePreviousMode();
+          }
+        }
+      }
     } else if (vars.commandIn("SAVE") || vars.commandIn("SAVEANDPROCESS")) {
       boolean isReceipt = vars.getRequiredStringParameter("isReceipt").equals("Y");
       String strAction = null;
@@ -797,6 +830,21 @@
     }
   }
 
+  private void businessPartnerBlocked(HttpServletResponse response, VariablesSecureApp vars,
+      String strBPartnerName) throws IOException, ServletException {
+
+    try {
+      JSONObject json = new JSONObject();
+      json.put("text", "SelectedBPartnerBlocked");
+      response.setContentType("text/html; charset=UTF-8");
+      PrintWriter out = response.getWriter();
+      out.println("objson = " + json);
+      out.close();
+    } catch (JSONException e) {
+      log4j.error(e);
+    }
+  }
+
   public String getServletInfo() {
     return "Servlet that presents the payment proposal";
     // end of getServletInfo() method
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_ExecutePayment.java	Thu Jan 10 15:50:42 2013 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_ExecutePayment.java	Thu Jan 10 16:34:20 2013 +0100
@@ -33,6 +33,7 @@
 import org.openbravo.dal.service.OBDal;
 import org.openbravo.database.ConnectionProvider;
 import org.openbravo.erpCommon.utility.OBError;
+import org.openbravo.erpCommon.utility.OBMessageUtils;
 import org.openbravo.model.common.businesspartner.BusinessPartner;
 import org.openbravo.model.common.enterprise.Organization;
 import org.openbravo.model.financialmgmt.payment.FIN_FinaccTransaction;
@@ -93,6 +94,44 @@
 
   public OBError execute() {
     try {
+      String strmessage1 = OBMessageUtils.messageBD("ThebusinessPartner");
+      String strmessage2 = OBMessageUtils.messageBD("BusinessPartnerBlocked");
+      for (PaymentRunPayment payRunPayment : paymentRun.getFinancialMgmtPaymentRunPaymentList()) {
+        FIN_Payment payment = payRunPayment.getPayment();
+        if (payment.getBusinessPartner() != null) {
+          if (FIN_Utility.isBlockedBusinessPartner(payment.getBusinessPartner().getId(),
+              payment.isReceipt(), 4)) {
+            // If the Business Partner is blocked, the Payment can not be completed.
+            OBError error = new OBError();
+            error.setType("Error");
+            error.setMessage(strmessage1 + " " + payment.getBusinessPartner().getIdentifier() + " "
+                + strmessage2);
+            OBDal.getInstance().rollbackAndClose();
+            return error;
+          }
+        } else {
+          for (FIN_PaymentDetail pd : payment.getFINPaymentDetailList()) {
+            for (FIN_PaymentScheduleDetail psd : pd.getFINPaymentScheduleDetailList()) {
+              BusinessPartner bPartner;
+              if (psd.getInvoicePaymentSchedule() == null) {
+                bPartner = psd.getOrderPaymentSchedule().getOrder().getBusinessPartner();
+              } else {
+                bPartner = psd.getInvoicePaymentSchedule().getInvoice().getBusinessPartner();
+              }
+              if (FIN_Utility.isBlockedBusinessPartner(bPartner.getId(), payment.isReceipt(), 4)) {
+                // If the Business Partner is blocked for Payments, the Payment will not be
+                // completed.
+                OBError error = new OBError();
+                error.setType("Error");
+                error.setMessage(strmessage1 + " " + bPartner.getIdentifier() + " " + strmessage2);
+                OBDal.getInstance().rollbackAndClose();
+                return error;
+              }
+            }
+          }
+        }
+      }
+
       if (paymentExecutionProcess != null) {
         for (PaymentRunPayment paymentRunPayment : paymentRun
             .getFinancialMgmtPaymentRunPaymentList()) {
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java	Thu Jan 10 15:50:42 2013 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java	Thu Jan 10 16:34:20 2013 +0100
@@ -41,6 +41,7 @@
 import org.openbravo.database.ConnectionProvider;
 import org.openbravo.erpCommon.utility.OBDateUtils;
 import org.openbravo.erpCommon.utility.OBError;
+import org.openbravo.erpCommon.utility.OBMessageUtils;
 import org.openbravo.erpCommon.utility.Utility;
 import org.openbravo.model.common.businesspartner.BusinessPartner;
 import org.openbravo.model.common.currency.ConversionRateDoc;
@@ -80,6 +81,46 @@
       final ConnectionProvider conProvider = bundle.getConnection();
       final boolean isReceipt = payment.isReceipt();
 
+      if (strAction.equals("P") || strAction.equals("D")) {
+        if (payment.getBusinessPartner() != null) {
+          if (FIN_Utility.isBlockedBusinessPartner(payment.getBusinessPartner().getId(), isReceipt,
+              4)) {
+            // If the Business Partner is blocked for Payments, the Payment will not be completed.
+            msg.setType("Error");
+            msg.setTitle(Utility.messageBD(conProvider, "Error", language));
+            msg.setMessage(OBMessageUtils.messageBD("ThebusinessPartner") + " "
+                + payment.getBusinessPartner().getIdentifier() + " "
+                + OBMessageUtils.messageBD("BusinessPartnerBlocked"));
+            bundle.setResult(msg);
+            OBDal.getInstance().rollbackAndClose();
+            return;
+          }
+        } else {
+          for (FIN_PaymentDetail pd : payment.getFINPaymentDetailList()) {
+            for (FIN_PaymentScheduleDetail psd : pd.getFINPaymentScheduleDetailList()) {
+              BusinessPartner bPartner;
+              if (psd.getInvoicePaymentSchedule() == null) {
+                bPartner = psd.getOrderPaymentSchedule().getOrder().getBusinessPartner();
+              } else {
+                bPartner = psd.getInvoicePaymentSchedule().getInvoice().getBusinessPartner();
+              }
+              if (FIN_Utility.isBlockedBusinessPartner(bPartner.getId(), payment.isReceipt(), 4)) {
+                // If the Business Partner is blocked for Payments, the Payment will not be
+                // completed.
+                msg.setType("Error");
+                msg.setTitle(Utility.messageBD(conProvider, "Error", language));
+                msg.setMessage(OBMessageUtils.messageBD("ThebusinessPartner") + " "
+                    + bPartner.getIdentifier() + " "
+                    + OBMessageUtils.messageBD("BusinessPartnerBlocked"));
+                bundle.setResult(msg);
+                OBDal.getInstance().rollbackAndClose();
+                return;
+              }
+            }
+          }
+        }
+      }
+
       OBDal.getInstance().flush();
       if (strAction.equals("P") || strAction.equals("D")) {
         // Guess if this is a refund payment
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/FIN_Utility.java	Thu Jan 10 15:50:42 2013 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/FIN_Utility.java	Thu Jan 10 16:34:20 2013 +0100
@@ -58,6 +58,7 @@
 import org.openbravo.erpCommon.utility.Utility;
 import org.openbravo.model.ad.system.Client;
 import org.openbravo.model.ad.utility.Sequence;
+import org.openbravo.model.common.businesspartner.BusinessPartner;
 import org.openbravo.model.common.currency.ConversionRate;
 import org.openbravo.model.common.currency.Currency;
 import org.openbravo.model.common.enterprise.DocumentType;
@@ -1117,4 +1118,49 @@
 
     return org.getOrganizationType().isLegalEntityWithAccounting();
   }
+
+  /**
+   * Returns true if the Business Partner is blocked for the document type selected.
+   * 
+   * @param strBPartnerId
+   * @param issotrx
+   * @param docType
+   *          1: Order. 2: Goods Receipt / Shipment. 3: Invoice. 4: Payment.
+   * @return
+   */
+  public static boolean isBlockedBusinessPartner(String strBPartnerId, boolean issotrx, int docType) {
+    try {
+      OBContext.setAdminMode(true);
+      BusinessPartner bPartner = OBDal.getInstance().get(BusinessPartner.class, strBPartnerId);
+      switch (docType) {
+      case 1: {
+        // Order
+        return ((issotrx && bPartner.isCustomerBlocking() && bPartner.isSalesOrder()) || (!issotrx
+            && bPartner.isVendorBlocking() && bPartner.isPurchaseOrder()));
+
+      }
+      case 2: {
+        // Goods Shipment / Receipt
+        return ((issotrx && bPartner.isCustomerBlocking() && bPartner.isGoodsShipment()) || (!issotrx
+            && bPartner.isVendorBlocking() && bPartner.isGoodsReceipt()));
+
+      }
+      case 3: {
+        // Invoice
+        return ((issotrx && bPartner.isCustomerBlocking() && bPartner.isSalesInvoice()) || (!issotrx
+            && bPartner.isVendorBlocking() && bPartner.isPurchaseInvoice()));
+      }
+      case 4: {
+        // Payment
+        return ((issotrx && bPartner.isCustomerBlocking() && bPartner.isPaymentIn()) || (!issotrx
+            && bPartner.isVendorBlocking() && bPartner.isPaymentOut()));
+
+      }
+      default:
+        return false;
+      }
+    } finally {
+      OBContext.restorePreviousMode();
+    }
+  }
 }
--- a/src-db/database/model/functions/C_INVOICE_CREATE.xml	Thu Jan 10 15:50:42 2013 +0100
+++ b/src-db/database/model/functions/C_INVOICE_CREATE.xml	Thu Jan 10 16:34:20 2013 +0100
@@ -40,6 +40,7 @@
   -- Logistice
   v_ResultStr VARCHAR2(2000):='';
   v_Message VARCHAR2(2000):='';
+  v_MessageBPB VARCHAR2(2000):='';
   -- Parameter
   TYPE RECORD IS REF CURSOR;
     Cur_Parameter RECORD;
@@ -87,7 +88,9 @@
     v_defplantype_inv C_InvoiceLine.DefPlanType%TYPE;
     v_periodnumber_inv C_InvoiceLine.periodnumber%TYPE;
     v_period_inv C_InvoiceLine.c_period_id%TYPE;
-   
+
+    Cur_Bpblocked RECORD;
+    
     Cur_OrderLine_ISOPEN BOOLEAN:=false;
     Cur_InOutLine_ISOPEN BOOLEAN:=false;
     v_AD_Client_ID VARCHAR2(32);
@@ -225,11 +228,56 @@
 
           DBMS_OUTPUT.PUT_LINE('  C_Order_ID=' || v_C_Order_ID || ', BPartner_ID=' || v_BPartner_ID || ', AD_Org_ID=' || v_AD_Org_ID) ;
           -- For all Orders
+          
+          FOR Cur_Bpblocked IN(
+          SELECT   bp.customer_blocking ,  bp.so_invoice_blocking , bp.name , bp.c_bpartner_id
+          FROM C_ORDER o   -- Specific InProgress Order
+          JOIN m_pricelist pl ON pl.m_pricelist_id = o.m_pricelist_id
+          JOIN C_BPartner bp ON o.c_bpartner_id = bp.c_bpartner_id
+          WHERE (bp.customer_blocking='Y' AND bp.so_invoice_blocking='Y')
+          AND ((o.C_Order_ID=v_C_Order_ID 
+          AND v_Selection = 'N'
+          AND o.DocStatus IN('IP', 'CO')) -- OR all completed and closed orders
+          OR(v_C_Order_ID IS NULL AND v_Selection = 'N'
+          AND o.DocStatus IN('CO', 'CL')
+          AND o.IsSOTrx='Y'  -- not for InvoiceSchedule
+          AND o.InvoiceRule<>'S'  -- of all or a specific business partner / organization
+          AND(v_BPartner_ID IS NULL
+          OR o.C_BPartner_ID=v_BPartner_ID)
+          AND(v_InvoiceToDate IS NULL
+          OR o.DateOrdered<TRUNC(v_InvoiceToDate) +1)
+          AND(v_AD_Org_ID IS NULL
+          OR o.AD_Org_ID=v_AD_Org_ID)) -- where there is something to invoice
+          OR (v_Selection = 'Y'
+          AND o.ISSELECTED = 'Y'
+          AND o.DocStatus IN('CO', 'CL')
+          AND o.IsSOTrx='Y'  -- not for InvoiceSchedule
+          AND o.InvoiceRule NOT IN ('S','D')  -- of all or a specific business partner / organization
+              )
+          AND EXISTS
+              (SELECT *
+              FROM C_ORDERLINE l
+              WHERE o.C_Order_ID=l.C_Order_ID
+                AND l.QtyOrdered<>l.QtyInvoiced
+              ))
+          group by bp.c_bpartner_id,bp.customer_blocking ,  bp.so_invoice_blocking ,  bp.name
+          )
+          LOOP    
+            IF(v_Message NOT LIKE '%@ThebusinessPartner@%') THEN
+             v_MessageBPB:=SUBSTR(v_MessageBPB ||' '||'@ThebusinessPartner@'||' '|| Cur_Bpblocked.name ||' '||'@BusinessPartnerBlocked2@', 0, 2000);
+            ELSE
+            v_MessageBPB:=SUBSTR(v_MessageBPB ||', '||'@ThebusinessPartner@'||' '|| Cur_Bpblocked.name ||' '||'@BusinessPartnerBlocked2@', 0, 2000);
+            END IF;
+          END LOOP;
+          
           FOR Cur_Order IN
-            (SELECT o.*, pl.istaxincluded as taxincludedpl
-            FROM C_ORDER o  -- Specific InProgress Order
-                  JOIN m_pricelist pl ON pl.m_pricelist_id = o.m_pricelist_id
-            WHERE(o.C_Order_ID=v_C_Order_ID AND v_Selection = 'N'
+            (SELECT o.*, pl.istaxincluded as taxincludedpl, bp.customer_blocking ,  bp.so_invoice_blocking , bp.name as bpname
+             FROM C_ORDER o   -- Specific InProgress Order
+             JOIN m_pricelist pl ON pl.m_pricelist_id = o.m_pricelist_id
+             JOIN C_BPartner bp ON o.c_bpartner_id = bp.c_bpartner_id
+              WHERE (bp.customer_blocking='N' OR bp.so_invoice_blocking='N')
+              AND ((o.C_Order_ID=v_C_Order_ID 
+              AND v_Selection = 'N'
               AND o.DocStatus IN('IP', 'CO')) -- OR all completed and closed orders
               OR(v_C_Order_ID IS NULL AND v_Selection = 'N'
               AND o.DocStatus IN('CO', 'CL')
@@ -242,22 +290,23 @@
               AND(v_AD_Org_ID IS NULL
               OR o.AD_Org_ID=v_AD_Org_ID)) -- where there is something to invoice
               OR (v_Selection = 'Y'
-     AND o.ISSELECTED = 'Y'
+              AND o.ISSELECTED = 'Y'
               AND o.DocStatus IN('CO', 'CL')
               AND o.IsSOTrx='Y'  -- not for InvoiceSchedule
               AND o.InvoiceRule NOT IN ('S','D')  -- of all or a specific business partner / organization
               )
-     AND EXISTS
+              AND EXISTS
               (SELECT *
               FROM C_ORDERLINE l
               WHERE o.C_Order_ID=l.C_Order_ID
                 AND l.QtyOrdered<>l.QtyInvoiced
-              )
-            ORDER BY o.DateOrdered,o.PriorityRule,
+              ))
+              ORDER BY o.DateOrdered,o.PriorityRule,
               o.C_BPartner_ID,
               o.DocumentNo
             )
           LOOP
+            
             DBMS_OUTPUT.PUT_LINE('Order ' || Cur_Order.DocumentNo || ', ID=' || Cur_Order.C_Order_ID) ;
             -- Parameter Order Date => Invoice Date, Accounting Date
             v_DateInvoiced:=v_DateInvoiced_aux;
@@ -841,7 +890,8 @@
                 )
                 si
                 ON bp.C_InvoiceSchedule_ID=si.C_InvoiceSchedule_ID
-              WHERE sh.M_InOut_ID=sl.M_InOut_ID
+              WHERE(bp.customer_blocking='N' OR bp.so_invoice_blocking='N')
+                AND (sh.M_InOut_ID=sl.M_InOut_ID
                 AND sh.C_BPartner_ID=bp.C_BPartner_ID
                 AND ol.C_Order_ID=o.C_Order_ID
                 AND sl.C_OrderLine_ID=ol.C_OrderLine_ID
@@ -865,7 +915,7 @@
                 AND o.IsSelected='Y') -- or scheduled
                 OR(v_Selection<>'Y'
                 AND(si.DateLimit IS NULL
-                OR TRUNC(o.DateOrdered)<=si.DateLimit)) )
+                OR TRUNC(o.DateOrdered)<=si.DateLimit)) ))
               ORDER BY sh.C_BPartner_ID, pl.istaxincluded, (
                 CASE TO_CHAR(SUBSTR(RPAD(bp.InvoiceGrouping, 15, '0'), 1, 1))
                   WHEN '0'
@@ -1242,7 +1292,7 @@
           END; -- Block
         END IF; -- PInstance not null
         --<<FINISH_PROCESS>>
-        v_Message:=SUBSTR('@Created@: ' || v_NoRecords||v_Message, 0, 2000);
+        v_Message:=SUBSTR('@Created@: ' || v_NoRecords||v_Message || '<br>' ||v_MessageBPB, 0, 2000);
         IF(p_PInstance_ID IS NOT NULL) THEN
           --  Update AD_PInstance
           DBMS_OUTPUT.PUT_LINE('Updating PInstance - Finished ' || v_Message) ;
--- a/src-db/database/model/functions/C_INVOICE_POST.xml	Thu Jan 10 15:50:42 2013 +0100
+++ b/src-db/database/model/functions/C_INVOICE_POST.xml	Thu Jan 10 16:34:20 2013 +0100
@@ -166,6 +166,10 @@
   v_voiddate_inv C_Invoice.DateInvoiced%TYPE;
   v_voiddate_acct C_Invoice.DateAcct%TYPE;
 
+  v_bpartner_blocked VARCHAR2(1):='N';
+  v_invoiceBlocking VARCHAR2(1):='N';
+  v_bpartner_name VARCHAR2(60);
+
     
 BEGIN
   IF (p_PInstance_ID IS NOT NULL) THEN
@@ -205,9 +209,22 @@
 BEGIN --BODY
 
   /*Invoiceline acct dimension*/
-  SELECT C_INVOICE.ISSOTRX INTO v_IsSOTrx
+  SELECT C_INVOICE.ISSOTRX , C_INVOICE.c_bpartner_id
+  INTO v_IsSOTrx, v_BPartner_ID
   FROM C_INVOICE
   WHERE C_INVOICE_ID = v_Record_ID;
+
+  SELECT CASE WHEN (m.ISSOTRX='Y') THEN customer_blocking  ELSE vendor_blocking END ,  
+  CASE WHEN (m.ISSOTRX='Y') THEN so_invoice_blocking ELSE po_invoice_blocking  END, name, DocAction
+  INTO v_bpartner_blocked, v_invoiceBlocking, v_bpartner_name, v_DocAction
+  FROM C_INVOICE m, C_BPartner bp
+  WHERE m.c_bpartner_id=bp.c_bpartner_id
+  AND m.C_INVOICE_ID=v_Record_ID
+  AND m.C_BPARTNER_ID=v_BPartner_ID;
+  IF (v_DocAction = 'CO' AND v_bpartner_blocked = 'Y' AND v_invoiceBlocking = 'Y') THEN
+    RAISE_APPLICATION_ERROR(-20000,'@ThebusinessPartner@'||' '|| v_bpartner_name ||' '||'@BusinessPartnerBlocked@');
+  END IF;
+
   IF (v_IsSOTrx = 'N') THEN
     FOR Cur_line IN
       (SELECT C_INVOICELINE.C_InvoiceLine_ID,
--- a/src-db/database/model/functions/C_ORDER_POST1.xml	Thu Jan 10 15:50:42 2013 +0100
+++ b/src-db/database/model/functions/C_ORDER_POST1.xml	Thu Jan 10 16:34:20 2013 +0100
@@ -114,6 +114,10 @@
   v_acctAmount NUMBER;
   v_reject_reason VARCHAR(32);
   v_dummy VARCHAR2(2000);
+  v_bpartner_blocked VARCHAR2(1):='N';
+  v_orderBlocking VARCHAR2(1):='N';
+  v_bpartner_name VARCHAR2(60);
+
   BEGIN
     IF (p_PInstance_ID IS NOT NULL) THEN
       --  Update AD_PInstance
@@ -143,9 +147,11 @@
   BEGIN --BODY
   
   /*Orderline acct dimension*/
-  SELECT C_ORDER.ISSOTRX INTO v_IsSOTrx
+  SELECT C_ORDER.ISSOTRX , C_ORDER.c_bpartner_id
+  INTO v_IsSOTrx, v_c_Bpartner_ID
   FROM C_ORDER
   WHERE C_ORDER_ID = v_Record_ID;
+  
   IF (v_IsSOTrx = 'N') THEN
     FOR Cur_line IN
       (SELECT C_ORDERLINE.C_OrderLine_ID,
@@ -189,6 +195,17 @@
       INTO v_DocSubTypeSOTarget, v_isreturndoctype
     FROM C_DOCTYPE
     WHERE C_DocType_ID=v_DocTypetarget_ID;
+
+    SELECT CASE WHEN (m.ISSOTRX='Y') THEN customer_blocking  ELSE vendor_blocking END ,  
+    CASE WHEN (m.ISSOTRX='Y') THEN so_order_blocking ELSE po_order_blocking  END, name, DocAction
+      INTO v_bpartner_blocked, v_orderBlocking, v_bpartner_name, v_DocAction
+    FROM C_ORDER m, C_BPartner bp
+    WHERE m.c_bpartner_id=bp.c_bpartner_id
+    AND m.C_ORDER_ID=v_Record_ID
+    AND m.C_BPARTNER_ID=v_c_Bpartner_ID;
+    IF (v_DocAction = 'CO' AND v_bpartner_blocked = 'Y' AND v_orderBlocking = 'Y' AND v_isreturndoctype='N' ) THEN
+      RAISE_APPLICATION_ERROR(-20000,'@ThebusinessPartner@'||' '|| v_bpartner_name ||' '||'@BusinessPartnerBlocked@');
+    END IF;
     -- Get the name of the org of the Order. Added by P.Sarobe
     SELECT name INTO v_Org_Name FROM AD_ORG WHERE ad_org_id = v_Org_ID;
     DBMS_OUTPUT.PUT_LINE('DocAction=' || v_DocAction || ', DocStatus=' || v_DocStatus || ', DocType_ID=' || v_DocType_ID || ', DocTypeTarget_ID=' || v_DocTypeTarget_ID || ', DocSubTypeSO=' || v_DocSubTypeSO) ;
--- a/src-db/database/model/functions/M_INOUT_CREATE.xml	Thu Jan 10 15:50:42 2013 +0100
+++ b/src-db/database/model/functions/M_INOUT_CREATE.xml	Thu Jan 10 16:34:20 2013 +0100
@@ -63,6 +63,7 @@
   v_logLines NUMBER:=0;
   v_isWholeLog BOOLEAN := true;
   v_Message VARCHAR2(2000):='';
+  v_MessageBPB VARCHAR2(2000):='';
   result_String VARCHAR2(2000):='';
   v_ResultLinesStr VARCHAR2(2000):='';
   -- Parameter
@@ -70,6 +71,7 @@
     Cur_Parameter RECORD;
     -- Orders to process  - one per warehouse
     Cur_Order RECORD;
+    Cur_BPBlocked RECORD;
     -- Order Lines per Warehouse
     CURSOR Cur_OrderLine (Order_ID VARCHAR, Warehouse_ID VARCHAR) IS
     SELECT l.*, p.name
@@ -203,6 +205,45 @@
     * Order Loop goes though all open orders, where we would need to ship something
     * (if v_Record_ID = '0')
     *************************************************************************/
+    For Cur_BPBlocked IN (
+        SELECT bp.customer_blocking ,  bp.so_invoice_blocking , bp.name , bp.c_bpartner_id
+        FROM C_ORDER o
+         JOIN C_BPartner bp ON o.c_bpartner_id = bp.c_bpartner_id
+            JOIN C_DOCTYPE d ON o.C_DOCTYPE_ID = d.C_DOCTYPE_ID
+            INNER JOIN C_ORDERLINE l ON o.C_Order_ID = l.C_Order_ID 
+        WHERE(bp.customer_blocking='Y' AND bp.so_goods_blocking='Y')
+        AND((o.DocStatus='IP' OR(o.DocStatus='CO'
+                                  AND o.IsDelivered='N'
+                                  AND v_Record_ID='0')) 
+          AND o.IsSOTrx='Y'
+          AND o.C_DocType_ID IN (SELECT C_DocType_ID
+                                 FROM C_DOCTYPE
+                                 WHERE DocBaseType='SOO'
+                                   AND DocSubTypeSO NOT IN('ON', 'OB')
+                                   AND isReturn = 'N')
+          AND ((v_Selection='Y' AND o.IsSelected='Y')
+              OR (v_Selection<>'Y'
+                  AND (v_AD_Org_ID IS NULL OR v_AD_Org_ID=o.AD_Org_ID) 
+                  AND (o.C_Order_ID=v_Record_ID
+                      OR (v_Record_ID='0'
+                          AND EXISTS (SELECT *
+                                FROM C_ORDERLINE ll
+                                WHERE o.C_Order_ID=ll.C_Order_ID
+                                AND ll.QtyOrdered<>ll.QtyDelivered
+                                AND ll.DirectShip='N'
+                                AND ll.M_Product_ID IS NOT NULL
+            ))))))
+        group by bp.c_bpartner_id,bp.customer_blocking ,  bp.so_invoice_blocking ,  bp.name
+    )
+          LOOP    
+            IF(v_Message NOT LIKE '%@ThebusinessPartner@%') THEN
+            v_MessageBPB:=SUBSTR(v_MessageBPB ||' '||'@ThebusinessPartner@'||' '|| Cur_Bpblocked.name ||' '||'@BusinessPartnerBlocked3@', 0, 2000);
+            ELSE
+            v_MessageBPB:=SUBSTR(v_MessageBPB ||', '||'@ThebusinessPartner@'||' '|| Cur_Bpblocked.name ||' '||'@BusinessPartnerBlocked3@', 0, 2000);
+            END IF;
+          END LOOP;
+
+    
     FOR Cur_Order IN (
         SELECT o.AD_Client_ID, o.AD_Org_ID, o.C_Order_ID, o.IsSOTrx,
             o.Description, o.DocumentNo, o.C_DocType_ID, o.C_BPartner_ID,
@@ -215,8 +256,10 @@
             o.DELIVERY_LOCATION_ID -- Added by Rafa Roda to include delivery location
         FROM C_ORDER o
             JOIN C_DOCTYPE d ON o.C_DOCTYPE_ID = d.C_DOCTYPE_ID
+            JOIN C_BPartner bp ON o.c_bpartner_id = bp.c_bpartner_id
             INNER JOIN C_ORDERLINE l ON o.C_Order_ID = l.C_Order_ID --  Orders are IP  or CO if Standard Orders
-        WHERE(o.DocStatus='IP' OR(o.DocStatus='CO'
+        WHERE (bp.customer_blocking='N' OR bp.so_goods_blocking='N')
+        AND((o.DocStatus='IP' OR(o.DocStatus='CO'
                                   AND o.IsDelivered='N'
                                   AND v_Record_ID='0')) -- Sales Orders Only and not Offers
           AND o.IsSOTrx='Y'
@@ -237,7 +280,7 @@
                                 AND ll.QtyOrdered<>ll.QtyDelivered
                                 AND ll.DirectShip='N'
                                 AND ll.M_Product_ID IS NOT NULL
-            )))))
+            ))))))
         GROUP BY o.AD_Client_ID, o.AD_Org_ID, o.C_Order_ID, o.IsSOTrx,
              o.Description, o.DocumentNo, o.C_DocType_ID, o.C_BPartner_ID,
              o.C_BPartner_Location_ID, o.AD_User_ID, l.M_Warehouse_ID, o.POReference,
@@ -888,7 +931,9 @@
   IF (p_PInstance_ID IS NOT NULL) THEN
     --  Update AD_PInstance
     IF (NOT v_isWholeLog) THEN
-      v_Message := 'First ' || v_logLines || ' result(s):' || '<br>' || v_Message || '...';
+      v_Message := SUBSTR('First ' || v_logLines || ' result(s):' || '<br>' || v_Message || '<br>' || v_MessageBPB || '...', 0, 2000); 
+    ELSE
+      v_Message := SUBSTR(v_Message || '<br>' || v_MessageBPB, 0, 2000); 
     END IF;
   
     DBMS_OUTPUT.PUT_LINE('Updating PInstance - Finished ' || v_Message) ;
--- a/src-db/database/model/functions/M_INOUT_POST.xml	Thu Jan 10 15:50:42 2013 +0100
+++ b/src-db/database/model/functions/M_INOUT_POST.xml	Thu Jan 10 16:34:20 2013 +0100
@@ -96,6 +96,10 @@
     v_reservation_id    VARCHAR2(32);
     v_voidmovementdate M_Inout.MovementDate%TYPE;
     v_voiddate_acct M_Inout.DateAcct%TYPE;
+    v_bpartner_blocked VARCHAR2(1):='N';
+    v_goods_blocked VARCHAR2(1):='N';
+    v_bpartner_name VARCHAR2(60);
+    v_DocAction VARCHAR2(60);
 
   BEGIN
     IF(p_PInstance_ID IS NOT NULL) THEN
@@ -169,6 +173,18 @@
         END IF;
       END IF;
       
+      SELECT CASE WHEN (m.ISSOTRX='Y') THEN customer_blocking ELSE vendor_blocking END, CASE WHEN (m.ISSOTRX='Y') 
+      THEN so_goods_blocking ELSE po_goods_blocking END, name, DocAction
+      INTO v_bpartner_blocked, v_goods_blocked, v_bpartner_name, v_DocAction
+      FROM M_InOut m, C_BPartner bp
+      WHERE m.c_bpartner_id = bp.c_bpartner_id
+      AND m.M_InOut_ID=v_Record_ID
+      AND m.C_BPARTNER_ID=bp.C_BPARTNER_ID;
+      
+      IF (v_DocAction = 'CO' AND v_bpartner_blocked = 'Y' AND v_goods_blocked = 'Y' AND v_isreturndoctype='N') THEN
+        RAISE_APPLICATION_ERROR(-20000, '@ThebusinessPartner@'||' '|| v_bpartner_name ||' '||'@BusinessPartnerBlocked@');
+      END IF;
+      
      v_ResultStr:='CheckingRestrictions';
      SELECT COUNT(*)
      INTO v_Count
--- a/src-db/database/model/functions/M_REQUISITION_POST.xml	Thu Jan 10 15:50:42 2013 +0100
+++ b/src-db/database/model/functions/M_REQUISITION_POST.xml	Thu Jan 10 16:34:20 2013 +0100
@@ -29,6 +29,10 @@
   v_DocAction VARCHAR2(60);
   v_DocStatus VARCHAR2(60);
   v_Aux NUMBER;
+  v_bpartner VARCHAR2(32);
+  v_bpartner_blocked VARCHAR2(1):='N';
+  v_inOutBlocking VARCHAR2(1):='N';
+  v_bpartner_name VARCHAR2(60);
 
   --  Parameter
   TYPE RECORD IS REF CURSOR;
@@ -54,9 +58,37 @@
       v_User_ID:=Cur_Parameter.AD_User_ID;
     END LOOP; -- Get Parameter
 
-    SELECT DocAction, DocStatus INTO v_DocAction, v_DocStatus
+    SELECT DocAction, DocStatus , c_bpartner_id INTO v_DocAction, v_DocStatus, v_bpartner
     FROM M_REQUISITION
     WHERE M_REquisition_ID = v_Record_ID;
+    IF (v_DocAction = 'CO' AND v_bpartner IS NOT NULL) THEN
+      SELECT  vendor_blocking , po_order_blocking, name  
+      INTO v_bpartner_blocked, v_inOutBlocking, v_bpartner_name
+      FROM M_REQUISITION m, C_BPartner bp
+      where m.c_bpartner_id=bp.c_bpartner_id
+      and m.M_REQUISITION_ID=v_Record_ID
+      AND m.C_BPARTNER_ID=v_bpartner;
+      IF (v_bpartner_blocked = 'Y' AND v_inOutBlocking = 'Y')THEN
+        RAISE_APPLICATION_ERROR(-20000,'@ThebusinessPartner@'||' '|| v_bpartner_name ||' '||'@BusinessPartnerBlocked@');
+      END IF;
+      ELSIF (v_DocAction = 'CO') THEN
+      FOR Cur_RequisitionLine IN
+        (SELECT M_RequisitionLine_ID, c_bpartner_id
+         FROM M_RequisitionLine
+         WHERE M_Requisition_ID = v_Record_ID) LOOP
+           IF (Cur_RequisitionLine.c_bpartner_id IS NOT NULL) THEN
+             SELECT  vendor_blocking , po_order_blocking, name  
+             INTO v_bpartner_blocked, v_inOutBlocking, v_bpartner_name
+             FROM M_REQUISITIONLINE m, C_BPartner bp
+             WHERE m.c_bpartner_id=bp.c_bpartner_id
+             AND m.M_REQUISITIONLINE_ID=Cur_RequisitionLine.m_requisitionline_id
+             AND m.C_BPARTNER_ID=Cur_RequisitionLine.c_bpartner_id;
+             IF (v_bpartner_blocked = 'Y' AND v_inOutBlocking = 'Y')THEN
+               RAISE_APPLICATION_ERROR(-20000,'@ThebusinessPartner@'||' '|| v_bpartner_name ||' '||'@BusinessPartnerBlocked@');
+             END IF;
+           END IF;
+        END LOOP; 
+    END IF;
 
     v_ResultStr := 'M_Requisition ' || v_Record_ID || ', DocAction=' || v_DocAction || ', DocStatus=' || v_DocStatus;
 
@@ -87,7 +119,7 @@
             Updated=now(),
             UpdatedBy=v_User_ID
         WHERE M_REQUISITION_ID = v_Record_ID;
-      ELSE
+      ELSE 
         RAISE_APPLICATION_ERROR(-20000, '@ActionNotAllowedHere@');
       END IF;
     ELSIF (v_DocStatus = 'CO') THEN
@@ -97,8 +129,8 @@
           (SELECT M_RequisitionLine_ID
            FROM M_RequisitionLine
            WHERE M_Requisition_ID = v_Record_ID
-             AND ReqStatus = 'O') LOOP
-          M_REQUISITIONLINE_STATUS(NULL, Cur_RequisitionLine.M_RequisitionLine_ID, v_User_ID);
+           AND ReqStatus = 'O') LOOP
+             M_REQUISITIONLINE_STATUS(NULL, Cur_RequisitionLine.M_RequisitionLine_ID, v_User_ID);
         END LOOP;
       ELSIF (v_DocAction = 'RE' ) THEN
         v_ResultStr := 'Reactivate the requisition: ' || v_Record_ID;
--- a/src-db/database/model/tables/C_BPARTNER.xml	Thu Jan 10 15:50:42 2013 +0100
+++ b/src-db/database/model/tables/C_BPARTNER.xml	Thu Jan 10 16:34:20 2013 +0100
@@ -325,6 +325,46 @@
         <default/>
         <onCreateDefault/>
       </column>
+      <column name="CUSTOMER_BLOCKING" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
+        <default><![CDATA[N]]></default>
+        <onCreateDefault/>
+      </column>
+      <column name="VENDOR_BLOCKING" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
+        <default><![CDATA[N]]></default>
+        <onCreateDefault/>
+      </column>
+      <column name="SO_PAYMENT_BLOCKING" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
+        <default><![CDATA[N]]></default>
+        <onCreateDefault><![CDATA['N']]></onCreateDefault>
+      </column>
+      <column name="PO_PAYMENT_BLOCKING" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
+        <default><![CDATA[Y]]></default>
+        <onCreateDefault><![CDATA['Y']]></onCreateDefault>
+      </column>
+      <column name="SO_INVOICE_BLOCKING" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
+        <default><![CDATA[Y]]></default>
+        <onCreateDefault><![CDATA['Y']]></onCreateDefault>
+      </column>
+      <column name="PO_INVOICE_BLOCKING" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
+        <default><![CDATA[Y]]></default>
+        <onCreateDefault><![CDATA['Y']]></onCreateDefault>
+      </column>
+      <column name="SO_ORDER_BLOCKING" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
+        <default><![CDATA[Y]]></default>
+        <onCreateDefault><![CDATA['Y']]></onCreateDefault>
+      </column>
+      <column name="PO_ORDER_BLOCKING" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
+        <default><![CDATA[Y]]></default>
+        <onCreateDefault><![CDATA['Y']]></onCreateDefault>
+      </column>
+      <column name="SO_GOODS_BLOCKING" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
+        <default><![CDATA[Y]]></default>
+        <onCreateDefault><![CDATA['Y']]></onCreateDefault>
+      </column>
+      <column name="PO_GOODS_BLOCKING" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
+        <default><![CDATA[N]]></default>
+        <onCreateDefault><![CDATA['N']]></onCreateDefault>
+      </column>
       <foreign-key foreignTable="AD_LANGUAGE" name="AD_LANGUAGE_C_BUSPARTNER">
         <reference local="AD_LANGUAGE" foreign="AD_LANGUAGE"/>
       </foreign-key>
@@ -408,6 +448,8 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="VALUE"/>
       </unique>
+      <check name="C_BPARTNER_CBLOCKING_CHK"><![CDATA[CUSTOMER_BLOCKING IN ('Y', 'N')]]></check>
+      <check name="C_BPARTNER_CUSBLOCKING_CHK"><![CDATA[(CUSTOMER_BLOCKING = 'N') OR ((((SO_ORDER_BLOCKING = 'Y') OR (SO_GOODS_BLOCKING = 'Y')) OR (SO_INVOICE_BLOCKING = 'Y')) OR (SO_PAYMENT_BLOCKING = 'Y'))]]></check>
       <check name="C_BPARTNER_INVOICERULE_CHK"><![CDATA[((INVOICERULE) <> 'S') OR (C_INVOICESCHEDULE_ID IS NOT NULL)]]></check>
       <check name="C_BPARTNER_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
       <check name="C_BPARTNER_ISCUSTOMER_CHK"><![CDATA[ISCUSTOMER IN ('Y', 'N')]]></check>
@@ -419,6 +461,15 @@
       <check name="C_BPARTNER_ISSUMMARY_CHK"><![CDATA[ISSUMMARY IN ('Y', 'N')]]></check>
       <check name="C_BPARTNER_ISTAXEXEMPT_CHK"><![CDATA[ISTAXEXEMPT IN ('Y', 'N')]]></check>
       <check name="C_BPARTNER_ISVENDOR_CHK"><![CDATA[ISVENDOR IN ('Y', 'N')]]></check>
+      <check name="C_BPARTNER_PIBLOCKING_CHK"><![CDATA[PO_INVOICE_BLOCKING IN ('Y', 'N')]]></check>
+      <check name="C_BPARTNER_POBLOCKING_CHK"><![CDATA[PO_ORDER_BLOCKING IN ('Y', 'N')]]></check>
+      <check name="C_BPARTNER_PPBLOCKING_CHK"><![CDATA[PO_PAYMENT_BLOCKING IN ('Y', 'N')]]></check>
+      <check name="C_BPARTNER_SGBLOCKING_CHK"><![CDATA[SO_GOODS_BLOCKING IN ('Y', 'N')]]></check>
       <check name="C_BPARTNER_SHOWPRICEINORDE_CHK"><![CDATA[SHOWPRICEINORDER IN ('Y', 'N')]]></check>
+      <check name="C_BPARTNER_SIBLOCKING_CHK"><![CDATA[SO_INVOICE_BLOCKING IN ('Y', 'N')]]></check>
+      <check name="C_BPARTNER_SOBLOCKING_CHK"><![CDATA[SO_ORDER_BLOCKING IN ('Y', 'N')]]></check>
+      <check name="C_BPARTNER_SPBLOCKING_CHK"><![CDATA[SO_PAYMENT_BLOCKING IN ('Y', 'N')]]></check>
+      <check name="C_BPARTNER_VBLOCKING_CHK"><![CDATA[VENDOR_BLOCKING IN ('Y', 'N')]]></check>
+      <check name="C_BPARTNER_VENBLOCKING_CHK"><![CDATA[(VENDOR_BLOCKING = 'N') OR ((((PO_ORDER_BLOCKING = 'Y') OR (PO_GOODS_BLOCKING = 'Y')) OR (PO_INVOICE_BLOCKING = 'Y')) OR (PO_PAYMENT_BLOCKING = 'Y'))]]></check>
     </table>
   </database>
--- a/src-db/database/sourcedata/AD_COLUMN.xml	Thu Jan 10 15:50:42 2013 +0100
+++ b/src-db/database/sourcedata/AD_COLUMN.xml	Thu Jan 10 16:34:20 2013 +0100
@@ -1,4 +1,4 @@
-<?xml version='1.0' encoding='UTF-8'?>
+<?xml version="1.0" encoding="UTF-8"?>
 <data>
 <!--100--><AD_COLUMN>
 <!--100-->  <AD_COLUMN_ID><![CDATA[100]]></AD_COLUMN_ID>
@@ -222932,6 +222932,42 @@
 <!--16C389B66EE04CE7B2A6A15CC7739A76-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--16C389B66EE04CE7B2A6A15CC7739A76--></AD_COLUMN>
 
+<!--16E95030D0484CBA8018E09699AFC663--><AD_COLUMN>
+<!--16E95030D0484CBA8018E09699AFC663-->  <AD_COLUMN_ID><![CDATA[16E95030D0484CBA8018E09699AFC663]]></AD_COLUMN_ID>
+<!--16E95030D0484CBA8018E09699AFC663-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--16E95030D0484CBA8018E09699AFC663-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--16E95030D0484CBA8018E09699AFC663-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--16E95030D0484CBA8018E09699AFC663-->  <NAME><![CDATA[Goods Receipt]]></NAME>
+<!--16E95030D0484CBA8018E09699AFC663-->  <DESCRIPTION><![CDATA[This flag allows to block goods receipt in vendor.]]></DESCRIPTION>
+<!--16E95030D0484CBA8018E09699AFC663-->  <HELP><![CDATA[This flag allows to block goods receipt in vendor.]]></HELP>
+<!--16E95030D0484CBA8018E09699AFC663-->  <COLUMNNAME><![CDATA[PO_Goods_Blocking]]></COLUMNNAME>
+<!--16E95030D0484CBA8018E09699AFC663-->  <AD_TABLE_ID><![CDATA[291]]></AD_TABLE_ID>
+<!--16E95030D0484CBA8018E09699AFC663-->  <AD_REFERENCE_ID><![CDATA[20]]></AD_REFERENCE_ID>
+<!--16E95030D0484CBA8018E09699AFC663-->  <FIELDLENGTH><![CDATA[1]]></FIELDLENGTH>
+<!--16E95030D0484CBA8018E09699AFC663-->  <DEFAULTVALUE><![CDATA[N]]></DEFAULTVALUE>
+<!--16E95030D0484CBA8018E09699AFC663-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--16E95030D0484CBA8018E09699AFC663-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--16E95030D0484CBA8018E09699AFC663-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--16E95030D0484CBA8018E09699AFC663-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--16E95030D0484CBA8018E09699AFC663-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--16E95030D0484CBA8018E09699AFC663-->  <SEQNO><![CDATA[560]]></SEQNO>
+<!--16E95030D0484CBA8018E09699AFC663-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--16E95030D0484CBA8018E09699AFC663-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--16E95030D0484CBA8018E09699AFC663-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--16E95030D0484CBA8018E09699AFC663-->  <AD_ELEMENT_ID><![CDATA[BA725D05F5324979BBA1BC454781FF58]]></AD_ELEMENT_ID>
+<!--16E95030D0484CBA8018E09699AFC663-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--16E95030D0484CBA8018E09699AFC663-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--16E95030D0484CBA8018E09699AFC663-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--16E95030D0484CBA8018E09699AFC663-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--16E95030D0484CBA8018E09699AFC663-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--16E95030D0484CBA8018E09699AFC663-->  <POSITION><![CDATA[91]]></POSITION>
+<!--16E95030D0484CBA8018E09699AFC663-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--16E95030D0484CBA8018E09699AFC663-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--16E95030D0484CBA8018E09699AFC663-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--16E95030D0484CBA8018E09699AFC663-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--16E95030D0484CBA8018E09699AFC663-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--16E95030D0484CBA8018E09699AFC663--></AD_COLUMN>
+
 <!--16FE92901EC411DEAD5A5B632C7F010A--><AD_COLUMN>
 <!--16FE92901EC411DEAD5A5B632C7F010A-->  <AD_COLUMN_ID><![CDATA[16FE92901EC411DEAD5A5B632C7F010A]]></AD_COLUMN_ID>
 <!--16FE92901EC411DEAD5A5B632C7F010A-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -223655,6 +223691,42 @@
 <!--19C6D600F8F1425283B3CA63C1EFE6D3-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--19C6D600F8F1425283B3CA63C1EFE6D3--></AD_COLUMN>
 
+<!--1A6C225DE493487A980018E20CCC23F2--><AD_COLUMN>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <AD_COLUMN_ID><![CDATA[1A6C225DE493487A980018E20CCC23F2]]></AD_COLUMN_ID>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <NAME><![CDATA[Payment Out]]></NAME>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <DESCRIPTION><![CDATA[This flag allows to block payment out  in vendor.]]></DESCRIPTION>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <HELP><![CDATA[This flag allows to block payment out  in vendor.]]></HELP>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <COLUMNNAME><![CDATA[PO_Payment_Blocking]]></COLUMNNAME>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <AD_TABLE_ID><![CDATA[291]]></AD_TABLE_ID>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <AD_REFERENCE_ID><![CDATA[20]]></AD_REFERENCE_ID>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <FIELDLENGTH><![CDATA[1]]></FIELDLENGTH>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <DEFAULTVALUE><![CDATA[Y]]></DEFAULTVALUE>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <SEQNO><![CDATA[500]]></SEQNO>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <AD_ELEMENT_ID><![CDATA[BA715724081A431E845716EF4B8D6D6B]]></AD_ELEMENT_ID>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <POSITION><![CDATA[85]]></POSITION>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--1A6C225DE493487A980018E20CCC23F2-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--1A6C225DE493487A980018E20CCC23F2--></AD_COLUMN>
+
 <!--1A9F7DF1AE7249FAAEE77D5DDEBF172E--><AD_COLUMN>
 <!--1A9F7DF1AE7249FAAEE77D5DDEBF172E-->  <AD_COLUMN_ID><![CDATA[1A9F7DF1AE7249FAAEE77D5DDEBF172E]]></AD_COLUMN_ID>
 <!--1A9F7DF1AE7249FAAEE77D5DDEBF172E-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -231369,6 +231441,42 @@
 <!--48DDC16B87A94F059EAE9BF72422A468-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--48DDC16B87A94F059EAE9BF72422A468--></AD_COLUMN>
 
+<!--48EE63F74C44433FA2302AC269F6924C--><AD_COLUMN>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <AD_COLUMN_ID><![CDATA[48EE63F74C44433FA2302AC269F6924C]]></AD_COLUMN_ID>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <NAME><![CDATA[Purchase Invoice]]></NAME>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <DESCRIPTION><![CDATA[This flag allows to block purchase invoice in vendor.]]></DESCRIPTION>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <HELP><![CDATA[This flag allows to block purchase invoice in vendor.]]></HELP>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <COLUMNNAME><![CDATA[PO_Invoice_Blocking]]></COLUMNNAME>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <AD_TABLE_ID><![CDATA[291]]></AD_TABLE_ID>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <AD_REFERENCE_ID><![CDATA[20]]></AD_REFERENCE_ID>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <FIELDLENGTH><![CDATA[1]]></FIELDLENGTH>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <DEFAULTVALUE><![CDATA[Y]]></DEFAULTVALUE>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <SEQNO><![CDATA[520]]></SEQNO>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <AD_ELEMENT_ID><![CDATA[465508E49DA34D0394E2EC1B14DB6FD9]]></AD_ELEMENT_ID>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <POSITION><![CDATA[87]]></POSITION>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--48EE63F74C44433FA2302AC269F6924C-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--48EE63F74C44433FA2302AC269F6924C--></AD_COLUMN>
+
 <!--490DC2D33559461BA75D6F63E2D522B2--><AD_COLUMN>
 <!--490DC2D33559461BA75D6F63E2D522B2-->  <AD_COLUMN_ID><![CDATA[490DC2D33559461BA75D6F63E2D522B2]]></AD_COLUMN_ID>
 <!--490DC2D33559461BA75D6F63E2D522B2-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -232300,6 +232408,42 @@
 <!--51905E4803BF49278696BC3A73BCCCE8-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--51905E4803BF49278696BC3A73BCCCE8--></AD_COLUMN>
 
+<!--5198CDCA0D104187AC593A5E1968B66B--><AD_COLUMN>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <AD_COLUMN_ID><![CDATA[5198CDCA0D104187AC593A5E1968B66B]]></AD_COLUMN_ID>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <NAME><![CDATA[Customer Blocking]]></NAME>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <DESCRIPTION><![CDATA[This flag allows to block the customer. By checking it, a new section will be shown called Business Partner Blocking with the possible blocking options.]]></DESCRIPTION>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <HELP><![CDATA[This flag allows to block the customer. By checking it, a new section will be shown called Business Partner Blocking with the possible blocking options.]]></HELP>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <COLUMNNAME><![CDATA[Customer_Blocking]]></COLUMNNAME>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <AD_TABLE_ID><![CDATA[291]]></AD_TABLE_ID>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <AD_REFERENCE_ID><![CDATA[20]]></AD_REFERENCE_ID>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <FIELDLENGTH><![CDATA[1]]></FIELDLENGTH>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <DEFAULTVALUE><![CDATA[N]]></DEFAULTVALUE>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <SEQNO><![CDATA[470]]></SEQNO>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <AD_ELEMENT_ID><![CDATA[F6B45A065F6443A9A0EA1719F69E94C2]]></AD_ELEMENT_ID>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <POSITION><![CDATA[82]]></POSITION>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--5198CDCA0D104187AC593A5E1968B66B-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--5198CDCA0D104187AC593A5E1968B66B--></AD_COLUMN>
+
 <!--521EA21E6E7577ABE040007F010016C0--><AD_COLUMN>
 <!--521EA21E6E7577ABE040007F010016C0-->  <AD_COLUMN_ID><![CDATA[521EA21E6E7577ABE040007F010016C0]]></AD_COLUMN_ID>
 <!--521EA21E6E7577ABE040007F010016C0-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -253630,6 +253774,42 @@
 <!--6C4D8B6F831947FEAE47B218DD43E9D2-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--6C4D8B6F831947FEAE47B218DD43E9D2--></AD_COLUMN>
 
+<!--6C8FCF912B654DE9BD3417F682DD282C--><AD_COLUMN>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <AD_COLUMN_ID><![CDATA[6C8FCF912B654DE9BD3417F682DD282C]]></AD_COLUMN_ID>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <NAME><![CDATA[Sales Order]]></NAME>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <DESCRIPTION><![CDATA[This flag allows to block sales order  in customer.]]></DESCRIPTION>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <HELP><![CDATA[This flag allows to block sales order  in customer.]]></HELP>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <COLUMNNAME><![CDATA[SO_Order_Blocking]]></COLUMNNAME>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <AD_TABLE_ID><![CDATA[291]]></AD_TABLE_ID>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <AD_REFERENCE_ID><![CDATA[20]]></AD_REFERENCE_ID>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <FIELDLENGTH><![CDATA[1]]></FIELDLENGTH>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <DEFAULTVALUE><![CDATA[Y]]></DEFAULTVALUE>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <SEQNO><![CDATA[530]]></SEQNO>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <AD_ELEMENT_ID><![CDATA[7605F78A520A4C16B7A1480E17EEE674]]></AD_ELEMENT_ID>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <POSITION><![CDATA[88]]></POSITION>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--6C8FCF912B654DE9BD3417F682DD282C-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--6C8FCF912B654DE9BD3417F682DD282C--></AD_COLUMN>
+
 <!--6CF3E69515CE4C3595538750AE208570--><AD_COLUMN>
 <!--6CF3E69515CE4C3595538750AE208570-->  <AD_COLUMN_ID><![CDATA[6CF3E69515CE4C3595538750AE208570]]></AD_COLUMN_ID>
 <!--6CF3E69515CE4C3595538750AE208570-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -253667,6 +253847,42 @@
 <!--6CF3E69515CE4C3595538750AE208570-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--6CF3E69515CE4C3595538750AE208570--></AD_COLUMN>
 
+<!--6D58354E650D455C8788645CBDF42B15--><AD_COLUMN>
+<!--6D58354E650D455C8788645CBDF42B15-->  <AD_COLUMN_ID><![CDATA[6D58354E650D455C8788645CBDF42B15]]></AD_COLUMN_ID>
+<!--6D58354E650D455C8788645CBDF42B15-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--6D58354E650D455C8788645CBDF42B15-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--6D58354E650D455C8788645CBDF42B15-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--6D58354E650D455C8788645CBDF42B15-->  <NAME><![CDATA[Goods Shipment]]></NAME>
+<!--6D58354E650D455C8788645CBDF42B15-->  <DESCRIPTION><![CDATA[This flag allows to block goods shipment out  in customer.]]></DESCRIPTION>
+<!--6D58354E650D455C8788645CBDF42B15-->  <HELP><![CDATA[This flag allows to block goods shipment out  in customer.]]></HELP>
+<!--6D58354E650D455C8788645CBDF42B15-->  <COLUMNNAME><![CDATA[SO_Goods_Blocking]]></COLUMNNAME>
+<!--6D58354E650D455C8788645CBDF42B15-->  <AD_TABLE_ID><![CDATA[291]]></AD_TABLE_ID>
+<!--6D58354E650D455C8788645CBDF42B15-->  <AD_REFERENCE_ID><![CDATA[20]]></AD_REFERENCE_ID>
+<!--6D58354E650D455C8788645CBDF42B15-->  <FIELDLENGTH><![CDATA[1]]></FIELDLENGTH>
+<!--6D58354E650D455C8788645CBDF42B15-->  <DEFAULTVALUE><![CDATA[Y]]></DEFAULTVALUE>
+<!--6D58354E650D455C8788645CBDF42B15-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--6D58354E650D455C8788645CBDF42B15-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--6D58354E650D455C8788645CBDF42B15-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--6D58354E650D455C8788645CBDF42B15-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--6D58354E650D455C8788645CBDF42B15-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--6D58354E650D455C8788645CBDF42B15-->  <SEQNO><![CDATA[550]]></SEQNO>
+<!--6D58354E650D455C8788645CBDF42B15-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--6D58354E650D455C8788645CBDF42B15-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--6D58354E650D455C8788645CBDF42B15-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--6D58354E650D455C8788645CBDF42B15-->  <AD_ELEMENT_ID><![CDATA[606E48A511A24E82B29AE24FAA2DD50B]]></AD_ELEMENT_ID>
+<!--6D58354E650D455C8788645CBDF42B15-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--6D58354E650D455C8788645CBDF42B15-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--6D58354E650D455C8788645CBDF42B15-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--6D58354E650D455C8788645CBDF42B15-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--6D58354E650D455C8788645CBDF42B15-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--6D58354E650D455C8788645CBDF42B15-->  <POSITION><![CDATA[90]]></POSITION>
+<!--6D58354E650D455C8788645CBDF42B15-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--6D58354E650D455C8788645CBDF42B15-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--6D58354E650D455C8788645CBDF42B15-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--6D58354E650D455C8788645CBDF42B15-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--6D58354E650D455C8788645CBDF42B15-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--6D58354E650D455C8788645CBDF42B15--></AD_COLUMN>
+
 <!--6D7F683367689D7AE040007F01015A4A--><AD_COLUMN>
 <!--6D7F683367689D7AE040007F01015A4A-->  <AD_COLUMN_ID><![CDATA[6D7F683367689D7AE040007F01015A4A]]></AD_COLUMN_ID>
 <!--6D7F683367689D7AE040007F01015A4A-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -294779,6 +294995,42 @@
 <!--B8771B55A3E099A2E040007F01002C96-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--B8771B55A3E099A2E040007F01002C96--></AD_COLUMN>
 
+<!--B87A0259507042F6BE9F682E26571DE7--><AD_COLUMN>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <AD_COLUMN_ID><![CDATA[B87A0259507042F6BE9F682E26571DE7]]></AD_COLUMN_ID>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <NAME><![CDATA[Purchase Order]]></NAME>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <DESCRIPTION><![CDATA[This flag allows to block purchase order  in vendor.]]></DESCRIPTION>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <HELP><![CDATA[This flag allows to block purchase order  in vendor.]]></HELP>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <COLUMNNAME><![CDATA[PO_Order_Blocking]]></COLUMNNAME>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <AD_TABLE_ID><![CDATA[291]]></AD_TABLE_ID>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <AD_REFERENCE_ID><![CDATA[20]]></AD_REFERENCE_ID>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <FIELDLENGTH><![CDATA[1]]></FIELDLENGTH>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <DEFAULTVALUE><![CDATA[Y]]></DEFAULTVALUE>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <SEQNO><![CDATA[540]]></SEQNO>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <AD_ELEMENT_ID><![CDATA[234900BCE25C40B6B71586F9CAF952A2]]></AD_ELEMENT_ID>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <POSITION><![CDATA[89]]></POSITION>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--B87A0259507042F6BE9F682E26571DE7-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--B87A0259507042F6BE9F682E26571DE7--></AD_COLUMN>
+
 <!--B8A72B85E1134BEE8EACB1375DD6056F--><AD_COLUMN>
 <!--B8A72B85E1134BEE8EACB1375DD6056F-->  <AD_COLUMN_ID><![CDATA[B8A72B85E1134BEE8EACB1375DD6056F]]></AD_COLUMN_ID>
 <!--B8A72B85E1134BEE8EACB1375DD6056F-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -297412,6 +297664,42 @@
 <!--BE5D350306694C0EB56C5ED0EC976FBD-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--BE5D350306694C0EB56C5ED0EC976FBD--></AD_COLUMN>
 
+<!--BE6347DAF005425B9D663DF8FF083BB2--><AD_COLUMN>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <AD_COLUMN_ID><![CDATA[BE6347DAF005425B9D663DF8FF083BB2]]></AD_COLUMN_ID>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <NAME><![CDATA[Vendor Blocking]]></NAME>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <DESCRIPTION><![CDATA[This flag allows to block the vendor. By checking it, a new section will be shown called Business Partner Blocking with the possible blocking options.]]></DESCRIPTION>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <HELP><![CDATA[This flag allows to block the vendor. By checking it, a new section will be shown called Business Partner Blocking with the possible blocking options.]]></HELP>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <COLUMNNAME><![CDATA[Vendor_Blocking]]></COLUMNNAME>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <AD_TABLE_ID><![CDATA[291]]></AD_TABLE_ID>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <AD_REFERENCE_ID><![CDATA[20]]></AD_REFERENCE_ID>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <FIELDLENGTH><![CDATA[1]]></FIELDLENGTH>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <DEFAULTVALUE><![CDATA[N]]></DEFAULTVALUE>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <SEQNO><![CDATA[480]]></SEQNO>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <AD_ELEMENT_ID><![CDATA[61425F4A7E374C9DA173E2912C7D3F14]]></AD_ELEMENT_ID>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <POSITION><![CDATA[83]]></POSITION>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--BE6347DAF005425B9D663DF8FF083BB2-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--BE6347DAF005425B9D663DF8FF083BB2--></AD_COLUMN>
+
 <!--BEDA2E40200E42D2BA1171D2FE630E47--><AD_COLUMN>
 <!--BEDA2E40200E42D2BA1171D2FE630E47-->  <AD_COLUMN_ID><![CDATA[BEDA2E40200E42D2BA1171D2FE630E47]]></AD_COLUMN_ID>
 <!--BEDA2E40200E42D2BA1171D2FE630E47-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -304564,6 +304852,42 @@
 <!--CEF17EDBFBBFD7E2E040007F01002238-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--CEF17EDBFBBFD7E2E040007F01002238--></AD_COLUMN>
 
+<!--CF75D269CF414461AB1CA3DF954E4EC3--><AD_COLUMN>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <AD_COLUMN_ID><![CDATA[CF75D269CF414461AB1CA3DF954E4EC3]]></AD_COLUMN_ID>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <NAME><![CDATA[Sales Invoice]]></NAME>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <DESCRIPTION><![CDATA[This flag allows to block sales invoice  in customer.]]></DESCRIPTION>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <HELP><![CDATA[This flag allows to block sales invoice in customer.]]></HELP>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <COLUMNNAME><![CDATA[SO_Invoice_Blocking]]></COLUMNNAME>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <AD_TABLE_ID><![CDATA[291]]></AD_TABLE_ID>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <AD_REFERENCE_ID><![CDATA[20]]></AD_REFERENCE_ID>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <FIELDLENGTH><![CDATA[1]]></FIELDLENGTH>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <DEFAULTVALUE><![CDATA[Y]]></DEFAULTVALUE>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <SEQNO><![CDATA[510]]></SEQNO>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <AD_ELEMENT_ID><![CDATA[D562603297394ACD82F50464ABB8F6EF]]></AD_ELEMENT_ID>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <POSITION><![CDATA[86]]></POSITION>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--CF75D269CF414461AB1CA3DF954E4EC3-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--CF75D269CF414461AB1CA3DF954E4EC3--></AD_COLUMN>
+
 <!--D0029DD2D6314D83BFE6141C3DBAA8E1--><AD_COLUMN>
 <!--D0029DD2D6314D83BFE6141C3DBAA8E1-->  <AD_COLUMN_ID><![CDATA[D0029DD2D6314D83BFE6141C3DBAA8E1]]></AD_COLUMN_ID>
 <!--D0029DD2D6314D83BFE6141C3DBAA8E1-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -307126,6 +307450,42 @@
 <!--E54E6AA6F5B744EE91EB271A48EA4AB7-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--E54E6AA6F5B744EE91EB271A48EA4AB7--></AD_COLUMN>
 
+<!--E59CD5922633415FA37D4F20F9D7B659--><AD_COLUMN>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <AD_COLUMN_ID><![CDATA[E59CD5922633415FA37D4F20F9D7B659]]></AD_COLUMN_ID>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <NAME><![CDATA[Payment In]]></NAME>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <DESCRIPTION><![CDATA[This flag allows to block payment in in customer.]]></DESCRIPTION>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <HELP><![CDATA[This flag allows to block payment in in customer.]]></HELP>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <COLUMNNAME><![CDATA[SO_Payment_Blocking]]></COLUMNNAME>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <AD_TABLE_ID><![CDATA[291]]></AD_TABLE_ID>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <AD_REFERENCE_ID><![CDATA[20]]></AD_REFERENCE_ID>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <FIELDLENGTH><![CDATA[1]]></FIELDLENGTH>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <DEFAULTVALUE><![CDATA[N]]></DEFAULTVALUE>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <SEQNO><![CDATA[490]]></SEQNO>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <AD_ELEMENT_ID><![CDATA[3F211B8BC143479FBA576D24D51F081B]]></AD_ELEMENT_ID>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <POSITION><![CDATA[84]]></POSITION>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--E59CD5922633415FA37D4F20F9D7B659-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--E59CD5922633415FA37D4F20F9D7B659--></AD_COLUMN>
+
 <!--E59D4BB7F1C342619CB4131FE4888FFA--><AD_COLUMN>
 <!--E59D4BB7F1C342619CB4131FE4888FFA-->  <AD_COLUMN_ID><![CDATA[E59D4BB7F1C342619CB4131FE4888FFA]]></AD_COLUMN_ID>
 <!--E59D4BB7F1C342619CB4131FE4888FFA-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_ELEMENT.xml	Thu Jan 10 15:50:42 2013 +0100
+++ b/src-db/database/sourcedata/AD_ELEMENT.xml	Thu Jan 10 16:34:20 2013 +0100
@@ -1,4 +1,4 @@
-<?xml version='1.0' encoding='UTF-8'?>
+<?xml version="1.0" encoding="UTF-8"?>
 <data>
 <!--102--><AD_ELEMENT>
 <!--102-->  <AD_ELEMENT_ID><![CDATA[102]]></AD_ELEMENT_ID>
@@ -21110,6 +21110,20 @@
 <!--22A76EB58F264A7BA616198175C3E4C5-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
 <!--22A76EB58F264A7BA616198175C3E4C5--></AD_ELEMENT>
 
+<!--234900BCE25C40B6B71586F9CAF952A2--><AD_ELEMENT>
+<!--234900BCE25C40B6B71586F9CAF952A2-->  <AD_ELEMENT_ID><![CDATA[234900BCE25C40B6B71586F9CAF952A2]]></AD_ELEMENT_ID>
+<!--234900BCE25C40B6B71586F9CAF952A2-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--234900BCE25C40B6B71586F9CAF952A2-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--234900BCE25C40B6B71586F9CAF952A2-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--234900BCE25C40B6B71586F9CAF952A2-->  <COLUMNNAME><![CDATA[PO_Order_Blocking]]></COLUMNNAME>
+<!--234900BCE25C40B6B71586F9CAF952A2-->  <NAME><![CDATA[Purchase Order]]></NAME>
+<!--234900BCE25C40B6B71586F9CAF952A2-->  <PRINTNAME><![CDATA[Purchase Order]]></PRINTNAME>
+<!--234900BCE25C40B6B71586F9CAF952A2-->  <DESCRIPTION><![CDATA[This flag allows to block purchase order  in vendor.]]></DESCRIPTION>
+<!--234900BCE25C40B6B71586F9CAF952A2-->  <HELP><![CDATA[This flag allows to block purchase order  in vendor.]]></HELP>
+<!--234900BCE25C40B6B71586F9CAF952A2-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--234900BCE25C40B6B71586F9CAF952A2-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
+<!--234900BCE25C40B6B71586F9CAF952A2--></AD_ELEMENT>
+
 <!--297633BB09944F6098A57C53EA17A4E0--><AD_ELEMENT>
 <!--297633BB09944F6098A57C53EA17A4E0-->  <AD_ELEMENT_ID><![CDATA[297633BB09944F6098A57C53EA17A4E0]]></AD_ELEMENT_ID>
 <!--297633BB09944F6098A57C53EA17A4E0-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -21573,6 +21587,20 @@
 <!--3EB8EDF04F25440E9810F0C9CF5408A5-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
 <!--3EB8EDF04F25440E9810F0C9CF5408A5--></AD_ELEMENT>
 
+<!--3F211B8BC143479FBA576D24D51F081B--><AD_ELEMENT>
+<!--3F211B8BC143479FBA576D24D51F081B-->  <AD_ELEMENT_ID><![CDATA[3F211B8BC143479FBA576D24D51F081B]]></AD_ELEMENT_ID>
+<!--3F211B8BC143479FBA576D24D51F081B-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--3F211B8BC143479FBA576D24D51F081B-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--3F211B8BC143479FBA576D24D51F081B-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--3F211B8BC143479FBA576D24D51F081B-->  <COLUMNNAME><![CDATA[SO_Payment_Blocking]]></COLUMNNAME>
+<!--3F211B8BC143479FBA576D24D51F081B-->  <NAME><![CDATA[Payment In]]></NAME>
+<!--3F211B8BC143479FBA576D24D51F081B-->  <PRINTNAME><![CDATA[Payment In]]></PRINTNAME>
+<!--3F211B8BC143479FBA576D24D51F081B-->  <DESCRIPTION><![CDATA[This flag allows to block payment in in customer.]]></DESCRIPTION>
+<!--3F211B8BC143479FBA576D24D51F081B-->  <HELP><![CDATA[This flag allows to block payment in in customer.]]></HELP>
+<!--3F211B8BC143479FBA576D24D51F081B-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--3F211B8BC143479FBA576D24D51F081B-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
+<!--3F211B8BC143479FBA576D24D51F081B--></AD_ELEMENT>
+
 <!--3FCD839866F5449081AD6E4A1D1BFA7B--><AD_ELEMENT>
 <!--3FCD839866F5449081AD6E4A1D1BFA7B-->  <AD_ELEMENT_ID><![CDATA[3FCD839866F5449081AD6E4A1D1BFA7B]]></AD_ELEMENT_ID>
 <!--3FCD839866F5449081AD6E4A1D1BFA7B-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -21826,6 +21854,20 @@
 <!--4610869898EF4298BCD9B313FFAD160A-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
 <!--4610869898EF4298BCD9B313FFAD160A--></AD_ELEMENT>
 
+<!--465508E49DA34D0394E2EC1B14DB6FD9--><AD_ELEMENT>
+<!--465508E49DA34D0394E2EC1B14DB6FD9-->  <AD_ELEMENT_ID><![CDATA[465508E49DA34D0394E2EC1B14DB6FD9]]></AD_ELEMENT_ID>
+<!--465508E49DA34D0394E2EC1B14DB6FD9-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--465508E49DA34D0394E2EC1B14DB6FD9-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--465508E49DA34D0394E2EC1B14DB6FD9-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--465508E49DA34D0394E2EC1B14DB6FD9-->  <COLUMNNAME><![CDATA[PO_Invoice_Blocking]]></COLUMNNAME>
+<!--465508E49DA34D0394E2EC1B14DB6FD9-->  <NAME><![CDATA[Purchase Invoice]]></NAME>
+<!--465508E49DA34D0394E2EC1B14DB6FD9-->  <PRINTNAME><![CDATA[Purchase Invoice]]></PRINTNAME>
+<!--465508E49DA34D0394E2EC1B14DB6FD9-->  <DESCRIPTION><![CDATA[This flag allows to block purchase invoice in vendor.]]></DESCRIPTION>
+<!--465508E49DA34D0394E2EC1B14DB6FD9-->  <HELP><![CDATA[This flag allows to block purchase invoice in vendor.]]></HELP>
+<!--465508E49DA34D0394E2EC1B14DB6FD9-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--465508E49DA34D0394E2EC1B14DB6FD9-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
+<!--465508E49DA34D0394E2EC1B14DB6FD9--></AD_ELEMENT>
+
 <!--46C995886E534B6BA240599DACD8240B--><AD_ELEMENT>
 <!--46C995886E534B6BA240599DACD8240B-->  <AD_ELEMENT_ID><![CDATA[46C995886E534B6BA240599DACD8240B]]></AD_ELEMENT_ID>
 <!--46C995886E534B6BA240599DACD8240B-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -24394,6 +24436,20 @@
 <!--5E3EDD5726B6A392E040007F01007B5C-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
 <!--5E3EDD5726B6A392E040007F01007B5C--></AD_ELEMENT>
 
+<!--606E48A511A24E82B29AE24FAA2DD50B--><AD_ELEMENT>
+<!--606E48A511A24E82B29AE24FAA2DD50B-->  <AD_ELEMENT_ID><![CDATA[606E48A511A24E82B29AE24FAA2DD50B]]></AD_ELEMENT_ID>
+<!--606E48A511A24E82B29AE24FAA2DD50B-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--606E48A511A24E82B29AE24FAA2DD50B-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--606E48A511A24E82B29AE24FAA2DD50B-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--606E48A511A24E82B29AE24FAA2DD50B-->  <COLUMNNAME><![CDATA[SO_Goods_Blocking]]></COLUMNNAME>
+<!--606E48A511A24E82B29AE24FAA2DD50B-->  <NAME><![CDATA[Goods Shipment]]></NAME>
+<!--606E48A511A24E82B29AE24FAA2DD50B-->  <PRINTNAME><![CDATA[Goods Shipment]]></PRINTNAME>
+<!--606E48A511A24E82B29AE24FAA2DD50B-->  <DESCRIPTION><![CDATA[This flag allows to block goods shipment out  in customer.]]></DESCRIPTION>
+<!--606E48A511A24E82B29AE24FAA2DD50B-->  <HELP><![CDATA[This flag allows to block goods shipment out  in customer.]]></HELP>
+<!--606E48A511A24E82B29AE24FAA2DD50B-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--606E48A511A24E82B29AE24FAA2DD50B-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
+<!--606E48A511A24E82B29AE24FAA2DD50B--></AD_ELEMENT>
+
 <!--60B5E9F8DF1342A2B1550A7F9D70765C--><AD_ELEMENT>
 <!--60B5E9F8DF1342A2B1550A7F9D70765C-->  <AD_ELEMENT_ID><![CDATA[60B5E9F8DF1342A2B1550A7F9D70765C]]></AD_ELEMENT_ID>
 <!--60B5E9F8DF1342A2B1550A7F9D70765C-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -24418,6 +24474,20 @@
 <!--60FCCD631EB3EDF8E040007F01013AD4-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
 <!--60FCCD631EB3EDF8E040007F01013AD4--></AD_ELEMENT>
 
+<!--61425F4A7E374C9DA173E2912C7D3F14--><AD_ELEMENT>
+<!--61425F4A7E374C9DA173E2912C7D3F14-->  <AD_ELEMENT_ID><![CDATA[61425F4A7E374C9DA173E2912C7D3F14]]></AD_ELEMENT_ID>
+<!--61425F4A7E374C9DA173E2912C7D3F14-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--61425F4A7E374C9DA173E2912C7D3F14-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--61425F4A7E374C9DA173E2912C7D3F14-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--61425F4A7E374C9DA173E2912C7D3F14-->  <COLUMNNAME><![CDATA[Vendor_Blocking]]></COLUMNNAME>
+<!--61425F4A7E374C9DA173E2912C7D3F14-->  <NAME><![CDATA[Vendor Blocking]]></NAME>
+<!--61425F4A7E374C9DA173E2912C7D3F14-->  <PRINTNAME><![CDATA[Vendor Blocking]]></PRINTNAME>
+<!--61425F4A7E374C9DA173E2912C7D3F14-->  <DESCRIPTION><![CDATA[This flag allows to block the vendor. By checking it, a new section will be shown called Business Partner Blocking with the possible blocking options.]]></DESCRIPTION>
+<!--61425F4A7E374C9DA173E2912C7D3F14-->  <HELP><![CDATA[This flag allows to block the vendor. By checking it, a new section will be shown called Business Partner Blocking with the possible blocking options.]]></HELP>
+<!--61425F4A7E374C9DA173E2912C7D3F14-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--61425F4A7E374C9DA173E2912C7D3F14-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
+<!--61425F4A7E374C9DA173E2912C7D3F14--></AD_ELEMENT>
+
 <!--617A15297075583BE040007F0101562D--><AD_ELEMENT>
 <!--617A15297075583BE040007F0101562D-->  <AD_ELEMENT_ID><![CDATA[617A15297075583BE040007F0101562D]]></AD_ELEMENT_ID>
 <!--617A15297075583BE040007F0101562D-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -25178,6 +25248,20 @@
 <!--757D0449C3504094AF9DAFC646CB049F-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
 <!--757D0449C3504094AF9DAFC646CB049F--></AD_ELEMENT>
 
+<!--7605F78A520A4C16B7A1480E17EEE674--><AD_ELEMENT>
+<!--7605F78A520A4C16B7A1480E17EEE674-->  <AD_ELEMENT_ID><![CDATA[7605F78A520A4C16B7A1480E17EEE674]]></AD_ELEMENT_ID>
+<!--7605F78A520A4C16B7A1480E17EEE674-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--7605F78A520A4C16B7A1480E17EEE674-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--7605F78A520A4C16B7A1480E17EEE674-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--7605F78A520A4C16B7A1480E17EEE674-->  <COLUMNNAME><![CDATA[SO_Order_Blocking]]></COLUMNNAME>
+<!--7605F78A520A4C16B7A1480E17EEE674-->  <NAME><![CDATA[Sales Order]]></NAME>
+<!--7605F78A520A4C16B7A1480E17EEE674-->  <PRINTNAME><![CDATA[Sales Order]]></PRINTNAME>
+<!--7605F78A520A4C16B7A1480E17EEE674-->  <DESCRIPTION><![CDATA[This flag allows to block sales order  in customer.]]></DESCRIPTION>
+<!--7605F78A520A4C16B7A1480E17EEE674-->  <HELP><![CDATA[This flag allows to block sales order  in customer.]]></HELP>
+<!--7605F78A520A4C16B7A1480E17EEE674-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--7605F78A520A4C16B7A1480E17EEE674-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
+<!--7605F78A520A4C16B7A1480E17EEE674--></AD_ELEMENT>
+
 <!--761A56CB5E25449098ED304DB435A635--><AD_ELEMENT>
 <!--761A56CB5E25449098ED304DB435A635-->  <AD_ELEMENT_ID><![CDATA[761A56CB5E25449098ED304DB435A635]]></AD_ELEMENT_ID>
 <!--761A56CB5E25449098ED304DB435A635-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -29162,6 +29246,34 @@
 <!--BA3FDC0C32A990E0E040007F01005DCC-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
 <!--BA3FDC0C32A990E0E040007F01005DCC--></AD_ELEMENT>
 
+<!--BA715724081A431E845716EF4B8D6D6B--><AD_ELEMENT>
+<!--BA715724081A431E845716EF4B8D6D6B-->  <AD_ELEMENT_ID><![CDATA[BA715724081A431E845716EF4B8D6D6B]]></AD_ELEMENT_ID>
+<!--BA715724081A431E845716EF4B8D6D6B-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--BA715724081A431E845716EF4B8D6D6B-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--BA715724081A431E845716EF4B8D6D6B-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--BA715724081A431E845716EF4B8D6D6B-->  <COLUMNNAME><![CDATA[PO_Payment_Blocking]]></COLUMNNAME>
+<!--BA715724081A431E845716EF4B8D6D6B-->  <NAME><![CDATA[Payment Out]]></NAME>
+<!--BA715724081A431E845716EF4B8D6D6B-->  <PRINTNAME><![CDATA[Payment Out]]></PRINTNAME>
+<!--BA715724081A431E845716EF4B8D6D6B-->  <DESCRIPTION><![CDATA[This flag allows to block payment out  in vendor.]]></DESCRIPTION>
+<!--BA715724081A431E845716EF4B8D6D6B-->  <HELP><![CDATA[This flag allows to block payment out  in vendor.]]></HELP>
+<!--BA715724081A431E845716EF4B8D6D6B-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--BA715724081A431E845716EF4B8D6D6B-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
+<!--BA715724081A431E845716EF4B8D6D6B--></AD_ELEMENT>
+
+<!--BA725D05F5324979BBA1BC454781FF58--><AD_ELEMENT>
+<!--BA725D05F5324979BBA1BC454781FF58-->  <AD_ELEMENT_ID><![CDATA[BA725D05F5324979BBA1BC454781FF58]]></AD_ELEMENT_ID>
+<!--BA725D05F5324979BBA1BC454781FF58-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--BA725D05F5324979BBA1BC454781FF58-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--BA725D05F5324979BBA1BC454781FF58-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--BA725D05F5324979BBA1BC454781FF58-->  <COLUMNNAME><![CDATA[PO_Goods_Blocking]]></COLUMNNAME>
+<!--BA725D05F5324979BBA1BC454781FF58-->  <NAME><![CDATA[Goods Receipt]]></NAME>
+<!--BA725D05F5324979BBA1BC454781FF58-->  <PRINTNAME><![CDATA[Goods Receipt]]></PRINTNAME>
+<!--BA725D05F5324979BBA1BC454781FF58-->  <DESCRIPTION><![CDATA[This flag allows to block goods receipt in vendor.]]></DESCRIPTION>
+<!--BA725D05F5324979BBA1BC454781FF58-->  <HELP><![CDATA[This flag allows to block goods receipt in vendor.]]></HELP>
+<!--BA725D05F5324979BBA1BC454781FF58-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--BA725D05F5324979BBA1BC454781FF58-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
+<!--BA725D05F5324979BBA1BC454781FF58--></AD_ELEMENT>
+
 <!--BACF545D3163DE54E040007F01006998--><AD_ELEMENT>
 <!--BACF545D3163DE54E040007F01006998-->  <AD_ELEMENT_ID><![CDATA[BACF545D3163DE54E040007F01006998]]></AD_ELEMENT_ID>
 <!--BACF545D3163DE54E040007F01006998-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -30226,6 +30338,20 @@
 <!--D53F04776DA948AAA14F7CDCB38795D2-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
 <!--D53F04776DA948AAA14F7CDCB38795D2--></AD_ELEMENT>
 
+<!--D562603297394ACD82F50464ABB8F6EF--><AD_ELEMENT>
+<!--D562603297394ACD82F50464ABB8F6EF-->  <AD_ELEMENT_ID><![CDATA[D562603297394ACD82F50464ABB8F6EF]]></AD_ELEMENT_ID>
+<!--D562603297394ACD82F50464ABB8F6EF-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--D562603297394ACD82F50464ABB8F6EF-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--D562603297394ACD82F50464ABB8F6EF-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--D562603297394ACD82F50464ABB8F6EF-->  <COLUMNNAME><![CDATA[SO_Invoice_Blocking]]></COLUMNNAME>
+<!--D562603297394ACD82F50464ABB8F6EF-->  <NAME><![CDATA[Sales Invoice]]></NAME>
+<!--D562603297394ACD82F50464ABB8F6EF-->  <PRINTNAME><![CDATA[Sales Invoice]]></PRINTNAME>
+<!--D562603297394ACD82F50464ABB8F6EF-->  <DESCRIPTION><![CDATA[This flag allows to block sales invoice  in customer.]]></DESCRIPTION>
+<!--D562603297394ACD82F50464ABB8F6EF-->  <HELP><![CDATA[This flag allows to block sales invoice in customer.]]></HELP>
+<!--D562603297394ACD82F50464ABB8F6EF-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--D562603297394ACD82F50464ABB8F6EF-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
+<!--D562603297394ACD82F50464ABB8F6EF--></AD_ELEMENT>
+
 <!--D66DAAD6524140849CFCF28CE8FC8290--><AD_ELEMENT>
 <!--D66DAAD6524140849CFCF28CE8FC8290-->  <AD_ELEMENT_ID><![CDATA[D66DAAD6524140849CFCF28CE8FC8290]]></AD_ELEMENT_ID>
 <!--D66DAAD6524140849CFCF28CE8FC8290-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -30710,6 +30836,20 @@
 <!--F668C2865A2F462BBFE89754F2B06274-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
 <!--F668C2865A2F462BBFE89754F2B06274--></AD_ELEMENT>
 
+<!--F6B45A065F6443A9A0EA1719F69E94C2--><AD_ELEMENT>
+<!--F6B45A065F6443A9A0EA1719F69E94C2-->  <AD_ELEMENT_ID><![CDATA[F6B45A065F6443A9A0EA1719F69E94C2]]></AD_ELEMENT_ID>
+<!--F6B45A065F6443A9A0EA1719F69E94C2-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--F6B45A065F6443A9A0EA1719F69E94C2-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--F6B45A065F6443A9A0EA1719F69E94C2-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--F6B45A065F6443A9A0EA1719F69E94C2-->  <COLUMNNAME><![CDATA[Customer_Blocking]]></COLUMNNAME>
+<!--F6B45A065F6443A9A0EA1719F69E94C2-->  <NAME><![CDATA[Customer Blocking]]></NAME>
+<!--F6B45A065F6443A9A0EA1719F69E94C2-->  <PRINTNAME><![CDATA[Customer Blocking]]></PRINTNAME>
+<!--F6B45A065F6443A9A0EA1719F69E94C2-->  <DESCRIPTION><![CDATA[This flag allows to block the customer. By checking it, a new section will be shown called Business Partner Blocking with the possible blocking options.]]></DESCRIPTION>
+<!--F6B45A065F6443A9A0EA1719F69E94C2-->  <HELP><![CDATA[This flag allows to block the customer. By checking it, a new section will be shown called Business Partner Blocking with the possible blocking options.]]></HELP>
+<!--F6B45A065F6443A9A0EA1719F69E94C2-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--F6B45A065F6443A9A0EA1719F69E94C2-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
+<!--F6B45A065F6443A9A0EA1719F69E94C2--></AD_ELEMENT>
+
 <!--F6D57D6135DA4C4B9FF73062A73E020E--><AD_ELEMENT>
 <!--F6D57D6135DA4C4B9FF73062A73E020E-->  <AD_ELEMENT_ID><![CDATA[F6D57D6135DA4C4B9FF73062A73E020E]]></AD_ELEMENT_ID>
 <!--F6D57D6135DA4C4B9FF73062A73E020E-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_FIELD.xml	Thu Jan 10 15:50:42 2013 +0100
+++ b/src-db/database/sourcedata/AD_FIELD.xml	Thu Jan 10 16:34:20 2013 +0100
@@ -1,4 +1,4 @@
-<?xml version='1.0' encoding='UTF-8'?>
+<?xml version="1.0" encoding="UTF-8"?>
 <data>
 <!--100--><AD_FIELD>
 <!--100-->  <AD_FIELD_ID><![CDATA[100]]></AD_FIELD_ID>
@@ -25388,7 +25388,7 @@
 <!--2160-->  <DISPLAYLOGIC><![CDATA[@IsCustomer@='Y']]></DISPLAYLOGIC>
 <!--2160-->  <DISPLAYLENGTH><![CDATA[1]]></DISPLAYLENGTH>
 <!--2160-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--2160-->  <SEQNO><![CDATA[112]]></SEQNO>
+<!--2160-->  <SEQNO><![CDATA[111]]></SEQNO>
 <!--2160-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--2160-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--2160-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -152010,7 +152010,7 @@
 <!--803556-->  <DISPLAYLOGIC><![CDATA[@IsCustomer@='Y']]></DISPLAYLOGIC>
 <!--803556-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--803556-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--803556-->  <SEQNO><![CDATA[115]]></SEQNO>
+<!--803556-->  <SEQNO><![CDATA[117]]></SEQNO>
 <!--803556-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--803556-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--803556-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -180647,6 +180647,36 @@
 <!--1FA5CF27A8A04AA880B612462452C142-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--1FA5CF27A8A04AA880B612462452C142--></AD_FIELD>
 
+<!--1FA6D733405C47BFAA992C643D7510E4--><AD_FIELD>
+<!--1FA6D733405C47BFAA992C643D7510E4-->  <AD_FIELD_ID><![CDATA[1FA6D733405C47BFAA992C643D7510E4]]></AD_FIELD_ID>
+<!--1FA6D733405C47BFAA992C643D7510E4-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--1FA6D733405C47BFAA992C643D7510E4-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--1FA6D733405C47BFAA992C643D7510E4-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--1FA6D733405C47BFAA992C643D7510E4-->  <NAME><![CDATA[Vendor Blocking]]></NAME>
+<!--1FA6D733405C47BFAA992C643D7510E4-->  <DESCRIPTION><![CDATA[This flag allows to block the vendor. By checking it, a new section will be shown called Business Partner Blocking with the possible blocking options.]]></DESCRIPTION>
+<!--1FA6D733405C47BFAA992C643D7510E4-->  <HELP><![CDATA[This flag allows to block the vendor. By checking it, a new section will be shown called Business Partner Blocking with the possible blocking options.]]></HELP>
+<!--1FA6D733405C47BFAA992C643D7510E4-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--1FA6D733405C47BFAA992C643D7510E4-->  <AD_TAB_ID><![CDATA[224]]></AD_TAB_ID>
+<!--1FA6D733405C47BFAA992C643D7510E4-->  <AD_COLUMN_ID><![CDATA[BE6347DAF005425B9D663DF8FF083BB2]]></AD_COLUMN_ID>
+<!--1FA6D733405C47BFAA992C643D7510E4-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--1FA6D733405C47BFAA992C643D7510E4-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--1FA6D733405C47BFAA992C643D7510E4-->  <DISPLAYLOGIC><![CDATA[@IsVendor@='Y']]></DISPLAYLOGIC>
+<!--1FA6D733405C47BFAA992C643D7510E4-->  <DISPLAYLENGTH><![CDATA[0]]></DISPLAYLENGTH>
+<!--1FA6D733405C47BFAA992C643D7510E4-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--1FA6D733405C47BFAA992C643D7510E4-->  <SEQNO><![CDATA[165]]></SEQNO>
+<!--1FA6D733405C47BFAA992C643D7510E4-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--1FA6D733405C47BFAA992C643D7510E4-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--1FA6D733405C47BFAA992C643D7510E4-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--1FA6D733405C47BFAA992C643D7510E4-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--1FA6D733405C47BFAA992C643D7510E4-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--1FA6D733405C47BFAA992C643D7510E4-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--1FA6D733405C47BFAA992C643D7510E4-->  <GRID_SEQNO><![CDATA[120]]></GRID_SEQNO>
+<!--1FA6D733405C47BFAA992C643D7510E4-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--1FA6D733405C47BFAA992C643D7510E4-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--1FA6D733405C47BFAA992C643D7510E4-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--1FA6D733405C47BFAA992C643D7510E4-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--1FA6D733405C47BFAA992C643D7510E4--></AD_FIELD>
+
 <!--1FA6EC5FE1404363BC5DDFEF76C84351--><AD_FIELD>
 <!--1FA6EC5FE1404363BC5DDFEF76C84351-->  <AD_FIELD_ID><![CDATA[1FA6EC5FE1404363BC5DDFEF76C84351]]></AD_FIELD_ID>
 <!--1FA6EC5FE1404363BC5DDFEF76C84351-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -182623,6 +182653,36 @@
 <!--2932757549E548E49D224C9A8CDE0125-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--2932757549E548E49D224C9A8CDE0125--></AD_FIELD>
 
+<!--297F2689B40A4EC791F170FEC60D74BF--><AD_FIELD>
+<!--297F2689B40A4EC791F170FEC60D74BF-->  <AD_FIELD_ID><![CDATA[297F2689B40A4EC791F170FEC60D74BF]]></AD_FIELD_ID>
+<!--297F2689B40A4EC791F170FEC60D74BF-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--297F2689B40A4EC791F170FEC60D74BF-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--297F2689B40A4EC791F170FEC60D74BF-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--297F2689B40A4EC791F170FEC60D74BF-->  <NAME><![CDATA[Customer Blocking]]></NAME>
+<!--297F2689B40A4EC791F170FEC60D74BF-->  <DESCRIPTION><![CDATA[This flag allows to block the customer. By checking it, a new section will be shown called Business Partner Blocking with the possible blocking options.]]></DESCRIPTION>
+<!--297F2689B40A4EC791F170FEC60D74BF-->  <HELP><![CDATA[This flag allows to block the customer. By checking it, a new section will be shown called Business Partner Blocking with the possible blocking options.]]></HELP>
+<!--297F2689B40A4EC791F170FEC60D74BF-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--297F2689B40A4EC791F170FEC60D74BF-->  <AD_TAB_ID><![CDATA[223]]></AD_TAB_ID>
+<!--297F2689B40A4EC791F170FEC60D74BF-->  <AD_COLUMN_ID><![CDATA[5198CDCA0D104187AC593A5E1968B66B]]></AD_COLUMN_ID>
+<!--297F2689B40A4EC791F170FEC60D74BF-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--297F2689B40A4EC791F170FEC60D74BF-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--297F2689B40A4EC791F170FEC60D74BF-->  <DISPLAYLOGIC><![CDATA[@IsCustomer@='Y']]></DISPLAYLOGIC>
+<!--297F2689B40A4EC791F170FEC60D74BF-->  <DISPLAYLENGTH><![CDATA[0]]></DISPLAYLENGTH>
+<!--297F2689B40A4EC791F170FEC60D74BF-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--297F2689B40A4EC791F170FEC60D74BF-->  <SEQNO><![CDATA[112]]></SEQNO>
+<!--297F2689B40A4EC791F170FEC60D74BF-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--297F2689B40A4EC791F170FEC60D74BF-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--297F2689B40A4EC791F170FEC60D74BF-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--297F2689B40A4EC791F170FEC60D74BF-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--297F2689B40A4EC791F170FEC60D74BF-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--297F2689B40A4EC791F170FEC60D74BF-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--297F2689B40A4EC791F170FEC60D74BF-->  <GRID_SEQNO><![CDATA[90]]></GRID_SEQNO>
+<!--297F2689B40A4EC791F170FEC60D74BF-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--297F2689B40A4EC791F170FEC60D74BF-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--297F2689B40A4EC791F170FEC60D74BF-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--297F2689B40A4EC791F170FEC60D74BF-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--297F2689B40A4EC791F170FEC60D74BF--></AD_FIELD>
+
 <!--2994A25901A44EFBB69D86B3341B9A74--><AD_FIELD>
 <!--2994A25901A44EFBB69D86B3341B9A74-->  <AD_FIELD_ID><![CDATA[2994A25901A44EFBB69D86B3341B9A74]]></AD_FIELD_ID>
 <!--2994A25901A44EFBB69D86B3341B9A74-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -187707,6 +187767,37 @@
 <!--40D64D70B7B54CBBA64470E87DE35557-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--40D64D70B7B54CBBA64470E87DE35557--></AD_FIELD>
 
+<!--40DF46FCA57A4140A5394AD296EDC7BB--><AD_FIELD>
+<!--40DF46FCA57A4140A5394AD296EDC7BB-->  <AD_FIELD_ID><![CDATA[40DF46FCA57A4140A5394AD296EDC7BB]]></AD_FIELD_ID>
+<!--40DF46FCA57A4140A5394AD296EDC7BB-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--40DF46FCA57A4140A5394AD296EDC7BB-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--40DF46FCA57A4140A5394AD296EDC7BB-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--40DF46FCA57A4140A5394AD296EDC7BB-->  <NAME><![CDATA[Purchase Invoice]]></NAME>
+<!--40DF46FCA57A4140A5394AD296EDC7BB-->  <DESCRIPTION><![CDATA[This flag allows to block purchase invoice in vendor.]]></DESCRIPTION>
+<!--40DF46FCA57A4140A5394AD296EDC7BB-->  <HELP><![CDATA[This flag allows to block purchase invoice in vendor.]]></HELP>
+<!--40DF46FCA57A4140A5394AD296EDC7BB-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--40DF46FCA57A4140A5394AD296EDC7BB-->  <AD_TAB_ID><![CDATA[224]]></AD_TAB_ID>
+<!--40DF46FCA57A4140A5394AD296EDC7BB-->  <AD_COLUMN_ID><![CDATA[48EE63F74C44433FA2302AC269F6924C]]></AD_COLUMN_ID>
+<!--40DF46FCA57A4140A5394AD296EDC7BB-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--40DF46FCA57A4140A5394AD296EDC7BB-->  <AD_FIELDGROUP_ID><![CDATA[AE71A689EC32416CAD7994B5D29CE3C6]]></AD_FIELDGROUP_ID>
+<!--40DF46FCA57A4140A5394AD296EDC7BB-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--40DF46FCA57A4140A5394AD296EDC7BB-->  <DISPLAYLOGIC><![CDATA[@Vendor_Blocking@='Y']]></DISPLAYLOGIC>
+<!--40DF46FCA57A4140A5394AD296EDC7BB-->  <DISPLAYLENGTH><![CDATA[0]]></DISPLAYLENGTH>
+<!--40DF46FCA57A4140A5394AD296EDC7BB-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--40DF46FCA57A4140A5394AD296EDC7BB-->  <SEQNO><![CDATA[168]]></SEQNO>
+<!--40DF46FCA57A4140A5394AD296EDC7BB-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--40DF46FCA57A4140A5394AD296EDC7BB-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--40DF46FCA57A4140A5394AD296EDC7BB-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--40DF46FCA57A4140A5394AD296EDC7BB-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--40DF46FCA57A4140A5394AD296EDC7BB-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--40DF46FCA57A4140A5394AD296EDC7BB-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--40DF46FCA57A4140A5394AD296EDC7BB-->  <GRID_SEQNO><![CDATA[90]]></GRID_SEQNO>
+<!--40DF46FCA57A4140A5394AD296EDC7BB-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--40DF46FCA57A4140A5394AD296EDC7BB-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--40DF46FCA57A4140A5394AD296EDC7BB-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--40DF46FCA57A4140A5394AD296EDC7BB-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--40DF46FCA57A4140A5394AD296EDC7BB--></AD_FIELD>
+
 <!--4103DBBD8EC847BE82C4DDFD53829987--><AD_FIELD>
 <!--4103DBBD8EC847BE82C4DDFD53829987-->  <AD_FIELD_ID><![CDATA[4103DBBD8EC847BE82C4DDFD53829987]]></AD_FIELD_ID>
 <!--4103DBBD8EC847BE82C4DDFD53829987-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -208151,6 +208242,37 @@
 <!--71B972711CC545E1933EFD1EA87E3C07-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--71B972711CC545E1933EFD1EA87E3C07--></AD_FIELD>
 
+<!--71E2F3E0575042F4B77601B1C8F6EC20--><AD_FIELD>
+<!--71E2F3E0575042F4B77601B1C8F6EC20-->  <AD_FIELD_ID><![CDATA[71E2F3E0575042F4B77601B1C8F6EC20]]></AD_FIELD_ID>
+<!--71E2F3E0575042F4B77601B1C8F6EC20-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--71E2F3E0575042F4B77601B1C8F6EC20-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--71E2F3E0575042F4B77601B1C8F6EC20-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--71E2F3E0575042F4B77601B1C8F6EC20-->  <NAME><![CDATA[Payment Out]]></NAME>
+<!--71E2F3E0575042F4B77601B1C8F6EC20-->  <DESCRIPTION><![CDATA[This flag allows to block payment out  in vendor.]]></DESCRIPTION>
+<!--71E2F3E0575042F4B77601B1C8F6EC20-->  <HELP><![CDATA[This flag allows to block payment out  in vendor.]]></HELP>
+<!--71E2F3E0575042F4B77601B1C8F6EC20-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--71E2F3E0575042F4B77601B1C8F6EC20-->  <AD_TAB_ID><![CDATA[224]]></AD_TAB_ID>
+<!--71E2F3E0575042F4B77601B1C8F6EC20-->  <AD_COLUMN_ID><![CDATA[1A6C225DE493487A980018E20CCC23F2]]></AD_COLUMN_ID>
+<!--71E2F3E0575042F4B77601B1C8F6EC20-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--71E2F3E0575042F4B77601B1C8F6EC20-->  <AD_FIELDGROUP_ID><![CDATA[AE71A689EC32416CAD7994B5D29CE3C6]]></AD_FIELDGROUP_ID>
+<!--71E2F3E0575042F4B77601B1C8F6EC20-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--71E2F3E0575042F4B77601B1C8F6EC20-->  <DISPLAYLOGIC><![CDATA[@Vendor_Blocking@='Y']]></DISPLAYLOGIC>
+<!--71E2F3E0575042F4B77601B1C8F6EC20-->  <DISPLAYLENGTH><![CDATA[0]]></DISPLAYLENGTH>
+<!--71E2F3E0575042F4B77601B1C8F6EC20-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--71E2F3E0575042F4B77601B1C8F6EC20-->  <SEQNO><![CDATA[169]]></SEQNO>
+<!--71E2F3E0575042F4B77601B1C8F6EC20-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--71E2F3E0575042F4B77601B1C8F6EC20-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--71E2F3E0575042F4B77601B1C8F6EC20-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--71E2F3E0575042F4B77601B1C8F6EC20-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--71E2F3E0575042F4B77601B1C8F6EC20-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--71E2F3E0575042F4B77601B1C8F6EC20-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--71E2F3E0575042F4B77601B1C8F6EC20-->  <GRID_SEQNO><![CDATA[110]]></GRID_SEQNO>
+<!--71E2F3E0575042F4B77601B1C8F6EC20-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--71E2F3E0575042F4B77601B1C8F6EC20-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--71E2F3E0575042F4B77601B1C8F6EC20-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--71E2F3E0575042F4B77601B1C8F6EC20-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--71E2F3E0575042F4B77601B1C8F6EC20--></AD_FIELD>
+
 <!--71ECDCD5077A4A6797F7986A7191D7C6--><AD_FIELD>
 <!--71ECDCD5077A4A6797F7986A7191D7C6-->  <AD_FIELD_ID><![CDATA[71ECDCD5077A4A6797F7986A7191D7C6]]></AD_FIELD_ID>
 <!--71ECDCD5077A4A6797F7986A7191D7C6-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -225657,6 +225779,37 @@
 <!--97E2AF83C37848BE91806B2F329951C3-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--97E2AF83C37848BE91806B2F329951C3--></AD_FIELD>
 
+<!--98A587CFD53E4BA7A5C5F1D8546817D9--><AD_FIELD>
+<!--98A587CFD53E4BA7A5C5F1D8546817D9-->  <AD_FIELD_ID><![CDATA[98A587CFD53E4BA7A5C5F1D8546817D9]]></AD_FIELD_ID>
+<!--98A587CFD53E4BA7A5C5F1D8546817D9-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--98A587CFD53E4BA7A5C5F1D8546817D9-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--98A587CFD53E4BA7A5C5F1D8546817D9-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--98A587CFD53E4BA7A5C5F1D8546817D9-->  <NAME><![CDATA[Sales Order]]></NAME>
+<!--98A587CFD53E4BA7A5C5F1D8546817D9-->  <DESCRIPTION><![CDATA[This flag allows to block sales order  in customer.]]></DESCRIPTION>
+<!--98A587CFD53E4BA7A5C5F1D8546817D9-->  <HELP><![CDATA[This flag allows to block sales order  in customer.]]></HELP>
+<!--98A587CFD53E4BA7A5C5F1D8546817D9-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--98A587CFD53E4BA7A5C5F1D8546817D9-->  <AD_TAB_ID><![CDATA[223]]></AD_TAB_ID>
+<!--98A587CFD53E4BA7A5C5F1D8546817D9-->  <AD_COLUMN_ID><![CDATA[6C8FCF912B654DE9BD3417F682DD282C]]></AD_COLUMN_ID>
+<!--98A587CFD53E4BA7A5C5F1D8546817D9-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--98A587CFD53E4BA7A5C5F1D8546817D9-->  <AD_FIELDGROUP_ID><![CDATA[AE71A689EC32416CAD7994B5D29CE3C6]]></AD_FIELDGROUP_ID>
+<!--98A587CFD53E4BA7A5C5F1D8546817D9-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--98A587CFD53E4BA7A5C5F1D8546817D9-->  <DISPLAYLOGIC><![CDATA[@Customer_Blocking@='Y']]></DISPLAYLOGIC>
+<!--98A587CFD53E4BA7A5C5F1D8546817D9-->  <DISPLAYLENGTH><![CDATA[0]]></DISPLAYLENGTH>
+<!--98A587CFD53E4BA7A5C5F1D8546817D9-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--98A587CFD53E4BA7A5C5F1D8546817D9-->  <SEQNO><![CDATA[113]]></SEQNO>
+<!--98A587CFD53E4BA7A5C5F1D8546817D9-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--98A587CFD53E4BA7A5C5F1D8546817D9-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--98A587CFD53E4BA7A5C5F1D8546817D9-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--98A587CFD53E4BA7A5C5F1D8546817D9-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--98A587CFD53E4BA7A5C5F1D8546817D9-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--98A587CFD53E4BA7A5C5F1D8546817D9-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--98A587CFD53E4BA7A5C5F1D8546817D9-->  <GRID_SEQNO><![CDATA[100]]></GRID_SEQNO>
+<!--98A587CFD53E4BA7A5C5F1D8546817D9-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--98A587CFD53E4BA7A5C5F1D8546817D9-->  <STARTNEWLINE><![CDATA[Y]]></STARTNEWLINE>
+<!--98A587CFD53E4BA7A5C5F1D8546817D9-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--98A587CFD53E4BA7A5C5F1D8546817D9-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--98A587CFD53E4BA7A5C5F1D8546817D9--></AD_FIELD>
+
 <!--98B9A86EA9AF411DBD29D820FF30AAC5--><AD_FIELD>
 <!--98B9A86EA9AF411DBD29D820FF30AAC5-->  <AD_FIELD_ID><![CDATA[98B9A86EA9AF411DBD29D820FF30AAC5]]></AD_FIELD_ID>
 <!--98B9A86EA9AF411DBD29D820FF30AAC5-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -239333,6 +239486,37 @@
 <!--B49468B2715F4E4BA03EF28576E90D27-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--B49468B2715F4E4BA03EF28576E90D27--></AD_FIELD>
 
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26--><AD_FIELD>
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26-->  <AD_FIELD_ID><![CDATA[B4B8ECFAA73A420280E2A9C8B6CADF26]]></AD_FIELD_ID>
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26-->  <NAME><![CDATA[Goods Shipment]]></NAME>
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26-->  <DESCRIPTION><![CDATA[This flag allows to block goods shipment out  in customer.]]></DESCRIPTION>
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26-->  <HELP><![CDATA[This flag allows to block goods shipment out  in customer.]]></HELP>
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26-->  <AD_TAB_ID><![CDATA[223]]></AD_TAB_ID>
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26-->  <AD_COLUMN_ID><![CDATA[6D58354E650D455C8788645CBDF42B15]]></AD_COLUMN_ID>
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26-->  <AD_FIELDGROUP_ID><![CDATA[AE71A689EC32416CAD7994B5D29CE3C6]]></AD_FIELDGROUP_ID>
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26-->  <DISPLAYLOGIC><![CDATA[@Customer_Blocking@='Y']]></DISPLAYLOGIC>
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26-->  <DISPLAYLENGTH><![CDATA[0]]></DISPLAYLENGTH>
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26-->  <SEQNO><![CDATA[114]]></SEQNO>
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26-->  <GRID_SEQNO><![CDATA[110]]></GRID_SEQNO>
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--B4B8ECFAA73A420280E2A9C8B6CADF26--></AD_FIELD>
+
 <!--B4F8BA22DBD249B29BE578A68377D0AB--><AD_FIELD>
 <!--B4F8BA22DBD249B29BE578A68377D0AB-->  <AD_FIELD_ID><![CDATA[B4F8BA22DBD249B29BE578A68377D0AB]]></AD_FIELD_ID>
 <!--B4F8BA22DBD249B29BE578A68377D0AB-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -241754,6 +241938,37 @@
 <!--BAA58AC1AE9F40CE8D0CB5F36A18CEFA-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--BAA58AC1AE9F40CE8D0CB5F36A18CEFA--></AD_FIELD>
 
+<!--BAAED334B2A644A08905195450A5FE1A--><AD_FIELD>
+<!--BAAED334B2A644A08905195450A5FE1A-->  <AD_FIELD_ID><![CDATA[BAAED334B2A644A08905195450A5FE1A]]></AD_FIELD_ID>
+<!--BAAED334B2A644A08905195450A5FE1A-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--BAAED334B2A644A08905195450A5FE1A-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--BAAED334B2A644A08905195450A5FE1A-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--BAAED334B2A644A08905195450A5FE1A-->  <NAME><![CDATA[Payment In]]></NAME>
+<!--BAAED334B2A644A08905195450A5FE1A-->  <DESCRIPTION><![CDATA[This flag allows to block payment in in customer.]]></DESCRIPTION>
+<!--BAAED334B2A644A08905195450A5FE1A-->  <HELP><![CDATA[This flag allows to block payment in in customer.]]></HELP>
+<!--BAAED334B2A644A08905195450A5FE1A-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--BAAED334B2A644A08905195450A5FE1A-->  <AD_TAB_ID><![CDATA[223]]></AD_TAB_ID>
+<!--BAAED334B2A644A08905195450A5FE1A-->  <AD_COLUMN_ID><![CDATA[E59CD5922633415FA37D4F20F9D7B659]]></AD_COLUMN_ID>
+<!--BAAED334B2A644A08905195450A5FE1A-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--BAAED334B2A644A08905195450A5FE1A-->  <AD_FIELDGROUP_ID><![CDATA[AE71A689EC32416CAD7994B5D29CE3C6]]></AD_FIELDGROUP_ID>
+<!--BAAED334B2A644A08905195450A5FE1A-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--BAAED334B2A644A08905195450A5FE1A-->  <DISPLAYLOGIC><![CDATA[@Customer_Blocking@='Y']]></DISPLAYLOGIC>
+<!--BAAED334B2A644A08905195450A5FE1A-->  <DISPLAYLENGTH><![CDATA[0]]></DISPLAYLENGTH>
+<!--BAAED334B2A644A08905195450A5FE1A-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--BAAED334B2A644A08905195450A5FE1A-->  <SEQNO><![CDATA[116]]></SEQNO>
+<!--BAAED334B2A644A08905195450A5FE1A-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--BAAED334B2A644A08905195450A5FE1A-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--BAAED334B2A644A08905195450A5FE1A-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--BAAED334B2A644A08905195450A5FE1A-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--BAAED334B2A644A08905195450A5FE1A-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--BAAED334B2A644A08905195450A5FE1A-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--BAAED334B2A644A08905195450A5FE1A-->  <GRID_SEQNO><![CDATA[130]]></GRID_SEQNO>
+<!--BAAED334B2A644A08905195450A5FE1A-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--BAAED334B2A644A08905195450A5FE1A-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--BAAED334B2A644A08905195450A5FE1A-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--BAAED334B2A644A08905195450A5FE1A-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--BAAED334B2A644A08905195450A5FE1A--></AD_FIELD>
+
 <!--BACF545D316ADE54E040007F01006998--><AD_FIELD>
 <!--BACF545D316ADE54E040007F01006998-->  <AD_FIELD_ID><![CDATA[BACF545D316ADE54E040007F01006998]]></AD_FIELD_ID>
 <!--BACF545D316ADE54E040007F01006998-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -253234,6 +253449,37 @@
 <!--DF7629CDD37749B3B209A3F89597FA58-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--DF7629CDD37749B3B209A3F89597FA58--></AD_FIELD>
 
+<!--DF99AB544AF84F9CA85AA153F4936C70--><AD_FIELD>
+<!--DF99AB544AF84F9CA85AA153F4936C70-->  <AD_FIELD_ID><![CDATA[DF99AB544AF84F9CA85AA153F4936C70]]></AD_FIELD_ID>
+<!--DF99AB544AF84F9CA85AA153F4936C70-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--DF99AB544AF84F9CA85AA153F4936C70-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--DF99AB544AF84F9CA85AA153F4936C70-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--DF99AB544AF84F9CA85AA153F4936C70-->  <NAME><![CDATA[Purchase Order]]></NAME>
+<!--DF99AB544AF84F9CA85AA153F4936C70-->  <DESCRIPTION><![CDATA[This flag allows to block purchase order  in vendor.]]></DESCRIPTION>
+<!--DF99AB544AF84F9CA85AA153F4936C70-->  <HELP><![CDATA[This flag allows to block purchase order  in vendor.]]></HELP>
+<!--DF99AB544AF84F9CA85AA153F4936C70-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--DF99AB544AF84F9CA85AA153F4936C70-->  <AD_TAB_ID><![CDATA[224]]></AD_TAB_ID>
+<!--DF99AB544AF84F9CA85AA153F4936C70-->  <AD_COLUMN_ID><![CDATA[B87A0259507042F6BE9F682E26571DE7]]></AD_COLUMN_ID>
+<!--DF99AB544AF84F9CA85AA153F4936C70-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--DF99AB544AF84F9CA85AA153F4936C70-->  <AD_FIELDGROUP_ID><![CDATA[AE71A689EC32416CAD7994B5D29CE3C6]]></AD_FIELDGROUP_ID>
+<!--DF99AB544AF84F9CA85AA153F4936C70-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--DF99AB544AF84F9CA85AA153F4936C70-->  <DISPLAYLOGIC><![CDATA[@Vendor_Blocking@='Y']]></DISPLAYLOGIC>
+<!--DF99AB544AF84F9CA85AA153F4936C70-->  <DISPLAYLENGTH><![CDATA[0]]></DISPLAYLENGTH>
+<!--DF99AB544AF84F9CA85AA153F4936C70-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--DF99AB544AF84F9CA85AA153F4936C70-->  <SEQNO><![CDATA[166]]></SEQNO>
+<!--DF99AB544AF84F9CA85AA153F4936C70-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--DF99AB544AF84F9CA85AA153F4936C70-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--DF99AB544AF84F9CA85AA153F4936C70-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--DF99AB544AF84F9CA85AA153F4936C70-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--DF99AB544AF84F9CA85AA153F4936C70-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--DF99AB544AF84F9CA85AA153F4936C70-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--DF99AB544AF84F9CA85AA153F4936C70-->  <GRID_SEQNO><![CDATA[100]]></GRID_SEQNO>
+<!--DF99AB544AF84F9CA85AA153F4936C70-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--DF99AB544AF84F9CA85AA153F4936C70-->  <STARTNEWLINE><![CDATA[Y]]></STARTNEWLINE>
+<!--DF99AB544AF84F9CA85AA153F4936C70-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--DF99AB544AF84F9CA85AA153F4936C70-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--DF99AB544AF84F9CA85AA153F4936C70--></AD_FIELD>
+
 <!--DFD1092EB57A422082DA7585E6C7FE03--><AD_FIELD>
 <!--DFD1092EB57A422082DA7585E6C7FE03-->  <AD_FIELD_ID><![CDATA[DFD1092EB57A422082DA7585E6C7FE03]]></AD_FIELD_ID>
 <!--DFD1092EB57A422082DA7585E6C7FE03-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -257103,6 +257349,37 @@
 <!--F4C93475D702479EA380634D94AF16F6-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--F4C93475D702479EA380634D94AF16F6--></AD_FIELD>
 
+<!--F4F7389688484D2AA604CE6FF30FC87E--><AD_FIELD>
+<!--F4F7389688484D2AA604CE6FF30FC87E-->  <AD_FIELD_ID><![CDATA[F4F7389688484D2AA604CE6FF30FC87E]]></AD_FIELD_ID>
+<!--F4F7389688484D2AA604CE6FF30FC87E-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--F4F7389688484D2AA604CE6FF30FC87E-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--F4F7389688484D2AA604CE6FF30FC87E-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--F4F7389688484D2AA604CE6FF30FC87E-->  <NAME><![CDATA[Goods Receipt]]></NAME>
+<!--F4F7389688484D2AA604CE6FF30FC87E-->  <DESCRIPTION><![CDATA[This flag allows to block goods receipt in vendor.]]></DESCRIPTION>
+<!--F4F7389688484D2AA604CE6FF30FC87E-->  <HELP><![CDATA[This flag allows to block goods receipt in vendor.]]></HELP>
+<!--F4F7389688484D2AA604CE6FF30FC87E-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--F4F7389688484D2AA604CE6FF30FC87E-->  <AD_TAB_ID><![CDATA[224]]></AD_TAB_ID>
+<!--F4F7389688484D2AA604CE6FF30FC87E-->  <AD_COLUMN_ID><![CDATA[16E95030D0484CBA8018E09699AFC663]]></AD_COLUMN_ID>
+<!--F4F7389688484D2AA604CE6FF30FC87E-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--F4F7389688484D2AA604CE6FF30FC87E-->  <AD_FIELDGROUP_ID><![CDATA[AE71A689EC32416CAD7994B5D29CE3C6]]></AD_FIELDGROUP_ID>
+<!--F4F7389688484D2AA604CE6FF30FC87E-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--F4F7389688484D2AA604CE6FF30FC87E-->  <DISPLAYLOGIC><![CDATA[@Vendor_Blocking@='Y']]></DISPLAYLOGIC>
+<!--F4F7389688484D2AA604CE6FF30FC87E-->  <DISPLAYLENGTH><![CDATA[0]]></DISPLAYLENGTH>
+<!--F4F7389688484D2AA604CE6FF30FC87E-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--F4F7389688484D2AA604CE6FF30FC87E-->  <SEQNO><![CDATA[167]]></SEQNO>
+<!--F4F7389688484D2AA604CE6FF30FC87E-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--F4F7389688484D2AA604CE6FF30FC87E-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--F4F7389688484D2AA604CE6FF30FC87E-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--F4F7389688484D2AA604CE6FF30FC87E-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--F4F7389688484D2AA604CE6FF30FC87E-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--F4F7389688484D2AA604CE6FF30FC87E-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--F4F7389688484D2AA604CE6FF30FC87E-->  <GRID_SEQNO><![CDATA[80]]></GRID_SEQNO>
+<!--F4F7389688484D2AA604CE6FF30FC87E-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--F4F7389688484D2AA604CE6FF30FC87E-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--F4F7389688484D2AA604CE6FF30FC87E-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--F4F7389688484D2AA604CE6FF30FC87E-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--F4F7389688484D2AA604CE6FF30FC87E--></AD_FIELD>
+
 <!--F5178B51FD24400D9C8CF1ADBBADE72F--><AD_FIELD>
 <!--F5178B51FD24400D9C8CF1ADBBADE72F-->  <AD_FIELD_ID><![CDATA[F5178B51FD24400D9C8CF1ADBBADE72F]]></AD_FIELD_ID>
 <!--F5178B51FD24400D9C8CF1ADBBADE72F-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -258149,6 +258426,37 @@
 <!--FB3E157221494D889E384CD28A43058B-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--FB3E157221494D889E384CD28A43058B--></AD_FIELD>
 
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044--><AD_FIELD>
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044-->  <AD_FIELD_ID><![CDATA[FB6B2F75E0164EE2B5D18FDCFA2DF044]]></AD_FIELD_ID>
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044-->  <NAME><![CDATA[Sales Invoice]]></NAME>
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044-->  <DESCRIPTION><![CDATA[This flag allows to block sales invoice  in customer.]]></DESCRIPTION>
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044-->  <HELP><![CDATA[This flag allows to block sales invoice in customer.]]></HELP>
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044-->  <AD_TAB_ID><![CDATA[223]]></AD_TAB_ID>
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044-->  <AD_COLUMN_ID><![CDATA[CF75D269CF414461AB1CA3DF954E4EC3]]></AD_COLUMN_ID>
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044-->  <AD_FIELDGROUP_ID><![CDATA[AE71A689EC32416CAD7994B5D29CE3C6]]></AD_FIELDGROUP_ID>
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044-->  <DISPLAYLOGIC><![CDATA[@Customer_Blocking@='Y']]></DISPLAYLOGIC>
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044-->  <DISPLAYLENGTH><![CDATA[0]]></DISPLAYLENGTH>
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044-->  <SEQNO><![CDATA[115]]></SEQNO>
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044-->  <GRID_SEQNO><![CDATA[120]]></GRID_SEQNO>
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--FB6B2F75E0164EE2B5D18FDCFA2DF044--></AD_FIELD>
+
 <!--FB710DB1323C4768BA7BCBB8A3B65A67--><AD_FIELD>
 <!--FB710DB1323C4768BA7BCBB8A3B65A67-->  <AD_FIELD_ID><![CDATA[FB710DB1323C4768BA7BCBB8A3B65A67]]></AD_FIELD_ID>
 <!--FB710DB1323C4768BA7BCBB8A3B65A67-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_FIELDGROUP.xml	Thu Jan 10 15:50:42 2013 +0100
+++ b/src-db/database/sourcedata/AD_FIELDGROUP.xml	Thu Jan 10 16:34:20 2013 +0100
@@ -1,4 +1,4 @@
-<?xml version='1.0' encoding='UTF-8'?>
+<?xml version="1.0" encoding="UTF-8"?>
 <data>
 <!--101--><AD_FIELDGROUP>
 <!--101-->  <AD_FIELDGROUP_ID><![CDATA[101]]></AD_FIELDGROUP_ID>
@@ -531,6 +531,15 @@
 <!--9E1CC6B8E1804E2487C4BC88009C8783-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--9E1CC6B8E1804E2487C4BC88009C8783--></AD_FIELDGROUP>
 
+<!--AE71A689EC32416CAD7994B5D29CE3C6--><AD_FIELDGROUP>
+<!--AE71A689EC32416CAD7994B5D29CE3C6-->  <AD_FIELDGROUP_ID><![CDATA[AE71A689EC32416CAD7994B5D29CE3C6]]></AD_FIELDGROUP_ID>
+<!--AE71A689EC32416CAD7994B5D29CE3C6-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--AE71A689EC32416CAD7994B5D29CE3C6-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--AE71A689EC32416CAD7994B5D29CE3C6-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--AE71A689EC32416CAD7994B5D29CE3C6-->  <NAME><![CDATA[Business Partner Blocking]]></NAME>
+<!--AE71A689EC32416CAD7994B5D29CE3C6-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--AE71A689EC32416CAD7994B5D29CE3C6--></AD_FIELDGROUP>
+
 <!--BE26AE91D1864A078EE2ABBFAB897D26--><AD_FIELDGROUP>
 <!--BE26AE91D1864A078EE2ABBFAB897D26-->  <AD_FIELDGROUP_ID><![CDATA[BE26AE91D1864A078EE2ABBFAB897D26]]></AD_FIELDGROUP_ID>
 <!--BE26AE91D1864A078EE2ABBFAB897D26-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_MESSAGE.xml	Thu Jan 10 15:50:42 2013 +0100
+++ b/src-db/database/sourcedata/AD_MESSAGE.xml	Thu Jan 10 16:34:20 2013 +0100
@@ -1,4 +1,4 @@
-<?xml version='1.0' encoding='UTF-8'?>
+<?xml version="1.0" encoding="UTF-8"?>
 <data>
 <!--101--><AD_MESSAGE>
 <!--101-->  <AD_MESSAGE_ID><![CDATA[101]]></AD_MESSAGE_ID>
@@ -15245,6 +15245,17 @@
 <!--1961EDB8E6F743B29134D8DA4E411528-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--1961EDB8E6F743B29134D8DA4E411528--></AD_MESSAGE>
 
+<!--19E206D186C94610B0179C6B106E94BF--><AD_MESSAGE>
+<!--19E206D186C94610B0179C6B106E94BF-->  <AD_MESSAGE_ID><![CDATA[19E206D186C94610B0179C6B106E94BF]]></AD_MESSAGE_ID>
+<!--19E206D186C94610B0179C6B106E94BF-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--19E206D186C94610B0179C6B106E94BF-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--19E206D186C94610B0179C6B106E94BF-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--19E206D186C94610B0179C6B106E94BF-->  <VALUE><![CDATA[c_bpartner_venblocking_chk]]></VALUE>
+<!--19E206D186C94610B0179C6B106E94BF-->  <MSGTEXT><![CDATA[If the Vendor Blocking flag is checked, at least one of the flags from the Vendor Blocking group must be checked.]]></MSGTEXT>
+<!--19E206D186C94610B0179C6B106E94BF-->  <MSGTYPE><![CDATA[E]]></MSGTYPE>
+<!--19E206D186C94610B0179C6B106E94BF-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--19E206D186C94610B0179C6B106E94BF--></AD_MESSAGE>
+
 <!--19F447F6CE3747D0B7BFC8F32DF15DC2--><AD_MESSAGE>
 <!--19F447F6CE3747D0B7BFC8F32DF15DC2-->  <AD_MESSAGE_ID><![CDATA[19F447F6CE3747D0B7BFC8F32DF15DC2]]></AD_MESSAGE_ID>
 <!--19F447F6CE3747D0B7BFC8F32DF15DC2-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -15759,6 +15770,17 @@
 <!--2A9296C2545E44BB9D90729FBD17FD23-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--2A9296C2545E44BB9D90729FBD17FD23--></AD_MESSAGE>
 
+<!--2AA326CA514F44E0B8E8A16934EDC586--><AD_MESSAGE>
+<!--2AA326CA514F44E0B8E8A16934EDC586-->  <AD_MESSAGE_ID><![CDATA[2AA326CA514F44E0B8E8A16934EDC586]]></AD_MESSAGE_ID>
+<!--2AA326CA514F44E0B8E8A16934EDC586-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--2AA326CA514F44E0B8E8A16934EDC586-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--2AA326CA514F44E0B8E8A16934EDC586-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--2AA326CA514F44E0B8E8A16934EDC586-->  <VALUE><![CDATA[BusinessPartnerBlocked3]]></VALUE>
+<!--2AA326CA514F44E0B8E8A16934EDC586-->  <MSGTEXT><![CDATA[is blocked therefore the shipments can not be created.]]></MSGTEXT>
+<!--2AA326CA514F44E0B8E8A16934EDC586-->  <MSGTYPE><![CDATA[I]]></MSGTYPE>
+<!--2AA326CA514F44E0B8E8A16934EDC586-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--2AA326CA514F44E0B8E8A16934EDC586--></AD_MESSAGE>
+
 <!--2AAD63985F6347A38D66D66A0DF86957--><AD_MESSAGE>
 <!--2AAD63985F6347A38D66D66A0DF86957-->  <AD_MESSAGE_ID><![CDATA[2AAD63985F6347A38D66D66A0DF86957]]></AD_MESSAGE_ID>
 <!--2AAD63985F6347A38D66D66A0DF86957-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -16287,6 +16309,17 @@
 <!--3A06F7A1D49D48788A0E20A6001817D2-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--3A06F7A1D49D48788A0E20A6001817D2--></AD_MESSAGE>
 
+<!--3A10B3119F8D471A8710667FB24131A0--><AD_MESSAGE>
+<!--3A10B3119F8D471A8710667FB24131A0-->  <AD_MESSAGE_ID><![CDATA[3A10B3119F8D471A8710667FB24131A0]]></AD_MESSAGE_ID>
+<!--3A10B3119F8D471A8710667FB24131A0-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--3A10B3119F8D471A8710667FB24131A0-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--3A10B3119F8D471A8710667FB24131A0-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--3A10B3119F8D471A8710667FB24131A0-->  <VALUE><![CDATA[c_bpartner_cusblocking_chk]]></VALUE>
+<!--3A10B3119F8D471A8710667FB24131A0-->  <MSGTEXT><![CDATA[If the Customer Blocking flag is checked, at least one of the flags from the Customer Blocking group must be checked.]]></MSGTEXT>
+<!--3A10B3119F8D471A8710667FB24131A0-->  <MSGTYPE><![CDATA[E]]></MSGTYPE>
+<!--3A10B3119F8D471A8710667FB24131A0-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--3A10B3119F8D471A8710667FB24131A0--></AD_MESSAGE>
+
 <!--3A499712A0D54CE984A2A2AEB4121A46--><AD_MESSAGE>
 <!--3A499712A0D54CE984A2A2AEB4121A46-->  <AD_MESSAGE_ID><![CDATA[3A499712A0D54CE984A2A2AEB4121A46]]></AD_MESSAGE_ID>
 <!--3A499712A0D54CE984A2A2AEB4121A46-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -16533,6 +16566,17 @@
 <!--4302796059044F0DBCA7929F152163B7-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--4302796059044F0DBCA7929F152163B7--></AD_MESSAGE>
 
+<!--436343FCF3FA4FBD821B45EC12935786--><AD_MESSAGE>
+<!--436343FCF3FA4FBD821B45EC12935786-->  <AD_MESSAGE_ID><![CDATA[436343FCF3FA4FBD821B45EC12935786]]></AD_MESSAGE_ID>
+<!--436343FCF3FA4FBD821B45EC12935786-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--436343FCF3FA4FBD821B45EC12935786-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--436343FCF3FA4FBD821B45EC12935786-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--436343FCF3FA4FBD821B45EC12935786-->  <VALUE><![CDATA[BusinessPartnerBlocked2]]></VALUE>
+<!--436343FCF3FA4FBD821B45EC12935786-->  <MSGTEXT><![CDATA[is blocked therefore the invoices can not be created.]]></MSGTEXT>
+<!--436343FCF3FA4FBD821B45EC12935786-->  <MSGTYPE><![CDATA[I]]></MSGTYPE>
+<!--436343FCF3FA4FBD821B45EC12935786-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--436343FCF3FA4FBD821B45EC12935786--></AD_MESSAGE>
+
 <!--438DDB0A996D4ADF91F3C731DDC2146F--><AD_MESSAGE>
 <!--438DDB0A996D4ADF91F3C731DDC2146F-->  <AD_MESSAGE_ID><![CDATA[438DDB0A996D4ADF91F3C731DDC2146F]]></AD_MESSAGE_ID>
 <!--438DDB0A996D4ADF91F3C731DDC2146F-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -17452,6 +17496,17 @@
 <!--6336B95932C2466B8EC610A10743EA43-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--6336B95932C2466B8EC610A10743EA43--></AD_MESSAGE>
 
+<!--634AB78BCD164AC787E13BFC9D501C76--><AD_MESSAGE>
+<!--634AB78BCD164AC787E13BFC9D501C76-->  <AD_MESSAGE_ID><![CDATA[634AB78BCD164AC787E13BFC9D501C76]]></AD_MESSAGE_ID>
+<!--634AB78BCD164AC787E13BFC9D501C76-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--634AB78BCD164AC787E13BFC9D501C76-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--634AB78BCD164AC787E13BFC9D501C76-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--634AB78BCD164AC787E13BFC9D501C76-->  <VALUE><![CDATA[SelectedBPartnerBlocked]]></VALUE>
+<!--634AB78BCD164AC787E13BFC9D501C76-->  <MSGTEXT><![CDATA[The selected Business Partner is Blocked for this document, therefore it is not possible to complete it.]]></MSGTEXT>
+<!--634AB78BCD164AC787E13BFC9D501C76-->  <MSGTYPE><![CDATA[E]]></MSGTYPE>
+<!--634AB78BCD164AC787E13BFC9D501C76-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--634AB78BCD164AC787E13BFC9D501C76--></AD_MESSAGE>
+
 <!--63801BDB3B014D6885DA44861692DBBC--><AD_MESSAGE>
 <!--63801BDB3B014D6885DA44861692DBBC-->  <AD_MESSAGE_ID><![CDATA[63801BDB3B014D6885DA44861692DBBC]]></AD_MESSAGE_ID>
 <!--63801BDB3B014D6885DA44861692DBBC-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -19078,6 +19133,17 @@
 <!--9ABF66F04E4B4F998D4B5841A9591677-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--9ABF66F04E4B4F998D4B5841A9591677--></AD_MESSAGE>
 
+<!--9B9F68BD69364234B7729292C48790E6--><AD_MESSAGE>
+<!--9B9F68BD69364234B7729292C48790E6-->  <AD_MESSAGE_ID><![CDATA[9B9F68BD69364234B7729292C48790E6]]></AD_MESSAGE_ID>
+<!--9B9F68BD69364234B7729292C48790E6-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--9B9F68BD69364234B7729292C48790E6-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--9B9F68BD69364234B7729292C48790E6-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--9B9F68BD69364234B7729292C48790E6-->  <VALUE><![CDATA[BusinessPartnerBlocked]]></VALUE>
+<!--9B9F68BD69364234B7729292C48790E6-->  <MSGTEXT><![CDATA[is Blocked for this document, therefore it is not possible to complete it.]]></MSGTEXT>
+<!--9B9F68BD69364234B7729292C48790E6-->  <MSGTYPE><![CDATA[E]]></MSGTYPE>
+<!--9B9F68BD69364234B7729292C48790E6-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--9B9F68BD69364234B7729292C48790E6--></AD_MESSAGE>
+
 <!--9CD7364917F6403B8354C9D75EE4C53E--><AD_MESSAGE>
 <!--9CD7364917F6403B8354C9D75EE4C53E-->  <AD_MESSAGE_ID><![CDATA[9CD7364917F6403B8354C9D75EE4C53E]]></AD_MESSAGE_ID>
 <!--9CD7364917F6403B8354C9D75EE4C53E-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src/org/openbravo/erpCommon/ad_callouts/SE_Invoice_BPartner.java	Thu Jan 10 15:50:42 2013 +0100
+++ b/src/org/openbravo/erpCommon/ad_callouts/SE_Invoice_BPartner.java	Thu Jan 10 16:34:20 2013 +0100
@@ -28,6 +28,7 @@
 import javax.servlet.http.HttpServletResponse;
 
 import org.hibernate.criterion.Restrictions;
+import org.openbravo.advpaymentmngt.utility.FIN_Utility;
 import org.openbravo.base.secureApp.HttpSecureAppServlet;
 import org.openbravo.base.secureApp.VariablesSecureApp;
 import org.openbravo.dal.core.OBContext;
@@ -36,6 +37,7 @@
 import org.openbravo.data.FieldProvider;
 import org.openbravo.erpCommon.businessUtility.BpartnerMiscData;
 import org.openbravo.erpCommon.utility.ComboTableData;
+import org.openbravo.erpCommon.utility.OBMessageUtils;
 import org.openbravo.erpCommon.utility.Utility;
 import org.openbravo.model.common.businesspartner.BusinessPartner;
 import org.openbravo.model.financialmgmt.payment.FIN_FinancialAccount;
@@ -299,17 +301,25 @@
       resultado.append("new Array(\"inpcWithholdingId\", \"" + strWithHolding + "\"),");
       resultado
           .append("new Array(\"inpisdiscountprinted\", \"" + data[0].isdiscountprinted + "\")");
-      if (data != null && data.length > 0
-          && new BigDecimal(data[0].creditavailable).compareTo(BigDecimal.ZERO) < 0
-          && strIsSOTrx.equals("Y")) {
-        String creditLimitExceed = "" + Double.parseDouble(data[0].creditavailable) * -1;
-        String automationPaymentMethod = isAutomaticCombination(vars, strBPartner, strIsSOTrx,
-            strFinPaymentMethodId, strOrgId);
+      if (FIN_Utility.isBlockedBusinessPartner(strBPartner, "Y".equals(strIsSOTrx), 3)) {
+        // If the Business Partner is blocked for this document, show an information message.
+        BusinessPartner bPartner = OBDal.getInstance().get(BusinessPartner.class, strBPartner);
         resultado.append(", new Array('MESSAGE', \""
-            + Utility.messageBD(this, "CreditLimitOver", vars.getLanguage()) + creditLimitExceed
-            + "<br/>" + automationPaymentMethod + "\")");
-      } else if (strIsSOTrx.equals("Y")) {
-        resultado.append(", new Array('MESSAGE', \"\")");
+            + OBMessageUtils.messageBD("ThebusinessPartner") + " " + bPartner.getIdentifier() + " "
+            + OBMessageUtils.messageBD("BusinessPartnerBlocked") + "\")");
+      } else {
+        if (data != null && data.length > 0
+            && new BigDecimal(data[0].creditavailable).compareTo(BigDecimal.ZERO) < 0
+            && strIsSOTrx.equals("Y")) {
+          String creditLimitExceed = "" + Double.parseDouble(data[0].creditavailable) * -1;
+          String automationPaymentMethod = isAutomaticCombination(vars, strBPartner, strIsSOTrx,
+              strFinPaymentMethodId, strOrgId);
+          resultado.append(", new Array('MESSAGE', \""
+              + Utility.messageBD(this, "CreditLimitOver", vars.getLanguage()) + creditLimitExceed
+              + "<br/>" + automationPaymentMethod + "\")");
+        } else if (strIsSOTrx.equals("Y")) {
+          resultado.append(", new Array('MESSAGE', \"\")");
+        }
       }
       resultado.append(");");
     }
--- a/src/org/openbravo/erpCommon/ad_callouts/SE_Order_BPartner.java	Thu Jan 10 15:50:42 2013 +0100
+++ b/src/org/openbravo/erpCommon/ad_callouts/SE_Order_BPartner.java	Thu Jan 10 16:34:20 2013 +0100
@@ -22,10 +22,14 @@
 
 import javax.servlet.ServletException;
 
+import org.openbravo.advpaymentmngt.utility.FIN_Utility;
+import org.openbravo.dal.service.OBDal;
 import org.openbravo.data.FieldProvider;
 import org.openbravo.erpCommon.businessUtility.BpartnerMiscData;
 import org.openbravo.erpCommon.utility.ComboTableData;
+import org.openbravo.erpCommon.utility.OBMessageUtils;
 import org.openbravo.erpCommon.utility.Utility;
+import org.openbravo.model.common.businesspartner.BusinessPartner;
 
 public class SE_Order_BPartner extends SimpleCallout {
   private static final long serialVersionUID = 1L;
@@ -312,18 +316,29 @@
     // Message
 
     StringBuilder message = new StringBuilder();
+    final String rtvendor = "C50A8AEE6F044825B5EF54FAAE76826F";
+    final String rfcustomer = "FF808081330213E60133021822E40007";
+    String strwindow = info.getStringParameter("inpwindowId", null);
+    if (!(strwindow.equals(rtvendor) || strwindow.equals(rfcustomer))) {
+      if (FIN_Utility.isBlockedBusinessPartner(strBPartner, "Y".equals(strIsSOTrx), 1)) {
+        // If the Business Partner is blocked for this document, show an information message.
+        BusinessPartner bPartner = OBDal.getInstance().get(BusinessPartner.class, strBPartner);
+        message.append(OBMessageUtils.messageBD("ThebusinessPartner") + " "
+            + bPartner.getIdentifier() + " " + OBMessageUtils.messageBD("BusinessPartnerBlocked"));
+      }
+    } else {
 
-    if (data != null && data.length > 0
-        && new BigDecimal(data[0].creditavailable).compareTo(BigDecimal.ZERO) < 0
-        && strIsSOTrx.equals("Y")) {
-      if (message.length() > 0) {
-        message.append("<br>");
+      if (data != null && data.length > 0
+          && new BigDecimal(data[0].creditavailable).compareTo(BigDecimal.ZERO) < 0
+          && strIsSOTrx.equals("Y")) {
+        if (message.length() > 0) {
+          message.append("<br>");
+        }
+        String creditLimitExceed = "" + Double.parseDouble(data[0].creditavailable) * -1;
+        message.append(Utility.messageBD(this, "CreditLimitOver", info.vars.getLanguage())
+            + creditLimitExceed);
       }
-      String creditLimitExceed = "" + Double.parseDouble(data[0].creditavailable) * -1;
-      message.append(Utility.messageBD(this, "CreditLimitOver", info.vars.getLanguage())
-          + creditLimitExceed);
     }
-
     info.addResult("MESSAGE", message.toString());
   }
 }
--- a/src/org/openbravo/erpCommon/ad_callouts/SE_Payment_BPartner.java	Thu Jan 10 15:50:42 2013 +0100
+++ b/src/org/openbravo/erpCommon/ad_callouts/SE_Payment_BPartner.java	Thu Jan 10 16:34:20 2013 +0100
@@ -20,8 +20,10 @@
 
 import javax.servlet.ServletException;
 
+import org.openbravo.advpaymentmngt.utility.FIN_Utility;
 import org.openbravo.base.secureApp.VariablesSecureApp;
 import org.openbravo.dal.service.OBDal;
+import org.openbravo.erpCommon.utility.OBMessageUtils;
 import org.openbravo.model.common.businesspartner.BusinessPartner;
 
 public class SE_Payment_BPartner extends SimpleCallout {
@@ -43,5 +45,11 @@
     } catch (Exception e) {
       log4j.info("No default info for the selected business partner");
     }
+    if (FIN_Utility.isBlockedBusinessPartner(strcBpartnerId, "Y".equals(strisreceipt), 4)) {
+      // If the Business Partner is blocked for this document, show an information message.
+      info.addResult("MESSAGE",
+          OBMessageUtils.messageBD("ThebusinessPartner") + " " + bpartner.getIdentifier() + " "
+              + OBMessageUtils.messageBD("BusinessPartnerBlocked"));
+    }
   }
 }
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_InOut_BPartner.java	Thu Jan 10 15:50:42 2013 +0100
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_InOut_BPartner.java	Thu Jan 10 16:34:20 2013 +0100
@@ -27,12 +27,16 @@
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
+import org.openbravo.advpaymentmngt.utility.FIN_Utility;
 import org.openbravo.base.secureApp.HttpSecureAppServlet;
 import org.openbravo.base.secureApp.VariablesSecureApp;
+import org.openbravo.dal.service.OBDal;
 import org.openbravo.data.FieldProvider;
 import org.openbravo.erpCommon.businessUtility.BpartnerMiscData;
 import org.openbravo.erpCommon.utility.ComboTableData;
+import org.openbravo.erpCommon.utility.OBMessageUtils;
 import org.openbravo.erpCommon.utility.Utility;
+import org.openbravo.model.common.businesspartner.BusinessPartner;
 import org.openbravo.utils.FormatUtilities;
 import org.openbravo.utils.Replace;
 import org.openbravo.xmlEngine.XmlDocument;
@@ -210,18 +214,32 @@
       }
 
       resultado.append("\n)");
-    } else
+    } else {
       resultado.append("null");
+    }
     resultado.append("\n)");
-    if (data != null && data.length > 0
-        && new BigDecimal(data[0].creditavailable).compareTo(BigDecimal.ZERO) < 0
-        && strIsSOTrx.equals("Y")) {
-      String creditLimitExceed = "" + Double.parseDouble(data[0].creditavailable) * -1;
-      resultado.append(", new Array('MESSAGE', \""
-          + Utility.messageBD(this, "CreditLimitOver", vars.getLanguage()) + creditLimitExceed
-          + "\")");
+    BusinessPartner bpartner = OBDal.getInstance().get(BusinessPartner.class, strBPartner);
+    final String rtvendorship = "273673D2ED914C399A6C51DB758BE0F9";
+    final String rMatReceipt = "123271B9AD60469BAE8A924841456B63";
+    String strwindow = vars.getStringParameter("inpwindowId");
+    if (!(strwindow.equals(rtvendorship) || strwindow.equals(rMatReceipt))) {
+      if (FIN_Utility.isBlockedBusinessPartner(strBPartner, "Y".equals(strIsSOTrx), 2)) {
+        // If the Business Partner is blocked for this document, show an information message.
+        resultado.append(", new Array('MESSAGE', \""
+            + OBMessageUtils.messageBD("ThebusinessPartner") + " " + bpartner.getIdentifier() + " "
+            + OBMessageUtils.messageBD("BusinessPartnerBlocked") + "\")");
+      }
     } else {
-      resultado.append(", new Array('MESSAGE', \"\")");
+      if (data != null && data.length > 0
+          && new BigDecimal(data[0].creditavailable).compareTo(BigDecimal.ZERO) < 0
+          && strIsSOTrx.equals("Y")) {
+        String creditLimitExceed = "" + Double.parseDouble(data[0].creditavailable) * -1;
+        resultado.append(", new Array('MESSAGE', \""
+            + Utility.messageBD(this, "CreditLimitOver", vars.getLanguage()) + creditLimitExceed
+            + "\")");
+      } else {
+        resultado.append(", new Array('MESSAGE', \"\")");
+      }
     }
     resultado.append(");");
     xmlDocument.setParameter("array", resultado.toString());
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_Requisition_BPartner_PriceList.java	Thu Jan 10 15:50:42 2013 +0100
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_Requisition_BPartner_PriceList.java	Thu Jan 10 16:34:20 2013 +0100
@@ -27,10 +27,12 @@
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
+import org.openbravo.advpaymentmngt.utility.FIN_Utility;
 import org.openbravo.base.secureApp.HttpSecureAppServlet;
 import org.openbravo.base.secureApp.VariablesSecureApp;
 import org.openbravo.dal.core.OBContext;
 import org.openbravo.dal.service.OBDal;
+import org.openbravo.erpCommon.utility.OBMessageUtils;
 import org.openbravo.model.common.businesspartner.BusinessPartner;
 import org.openbravo.model.pricing.pricelist.PriceList;
 import org.openbravo.xmlEngine.XmlDocument;
@@ -81,6 +83,12 @@
         OBContext.setAdminMode(true);
         try {
           BusinessPartner bPartner = OBDal.getInstance().get(BusinessPartner.class, strBPartner);
+          if (FIN_Utility.isBlockedBusinessPartner(strBPartner, false, 1)) {
+            // If the Business Partner is blocked for this document, show an information message.
+            strResult.append("new Array('MESSAGE', \""
+                + OBMessageUtils.messageBD("ThebusinessPartner") + " " + bPartner.getIdentifier()
+                + " " + OBMessageUtils.messageBD("BusinessPartnerBlocked") + "\"), ");
+          }
           if (bPartner.getPurchasePricelist() != null) {
             strResult.append("new Array(\"inpmPricelistId\", \""
                 + bPartner.getPurchasePricelist().getId() + "\"),");
--- a/src/org/openbravo/erpCommon/ad_process/ConvertQuotationIntoOrder.java	Thu Jan 10 15:50:42 2013 +0100
+++ b/src/org/openbravo/erpCommon/ad_process/ConvertQuotationIntoOrder.java	Thu Jan 10 16:34:20 2013 +0100
@@ -31,6 +31,7 @@
 
 import javax.servlet.http.HttpServletRequest;
 
+import org.openbravo.advpaymentmngt.utility.FIN_Utility;
 import org.openbravo.base.exception.OBException;
 import org.openbravo.base.provider.OBProvider;
 import org.openbravo.base.secureApp.VariablesSecureApp;
@@ -42,6 +43,7 @@
 import org.openbravo.erpCommon.businessUtility.Tax;
 import org.openbravo.erpCommon.utility.OBError;
 import org.openbravo.erpCommon.utility.OBErrorBuilder;
+import org.openbravo.erpCommon.utility.OBMessageUtils;
 import org.openbravo.model.common.enterprise.DocumentType;
 import org.openbravo.model.common.order.Order;
 import org.openbravo.model.common.order.OrderDiscount;
@@ -76,6 +78,18 @@
       Order objOrder = OBDal.getInstance().get(Order.class, orderId);
       Order objCloneOrder = (Order) DalUtil.copy(objOrder, false);
 
+      if (FIN_Utility.isBlockedBusinessPartner(objOrder.getBusinessPartner().getId(), true, 1)) {
+        // If the Business Partner is blocked, the Order should not be completed.
+        OBError msg = new OBError();
+        msg.setType("Error");
+        msg.setMessage(OBMessageUtils.messageBD("ThebusinessPartner") + " "
+            + objOrder.getBusinessPartner().getIdentifier() + " "
+            + OBMessageUtils.messageBD("BusinessPartnerBlocked"));
+        bundle.setResult(msg);
+        OBDal.getInstance().rollbackAndClose();
+        return;
+      }
+
       // Set status of the new Order to Draft and Processed = N
       objCloneOrder.setDocumentAction("CO");
       objCloneOrder.setDocumentStatus("DR");