How to add B2B Customer Attribute in Customer card

How to add B2B Customer Attribute in Customer card

In eXconnect, we have provided 2 ways as an option to determine b2b customers. 

By Document - All backoffice invoices (INVOICE, INVWAYBILL, Tax Invoice) will be treated as B2B invoices

By Customer Attribute - If you select this option any customer who has a attribute isB2BCsutomer set as Yes will be treated as  a B2B Customer



To add the isB2B customer dropdown attribute to the customer card in Erply Backoffice. Add the following script to the plugin section. 

  1. // eXconnect B2B customer flag START
  2. $(document).ready(function () {
  3.  var script_exconnect_b2b = document.createElement("script");
  4.  script_exconnect_b2b.src = "https://erpplugins.s3-ap-southeast-2.amazonaws.com/exconnect/b2bcustomer-flag-bo.js?_t=" + Date.now(), document.getElementsByTagName("head")[0].appendChild(script_exconnect_b2b)
  5. });
  6. // eXconnect B2B customer flag END

Once this is added you should see the option in your left hand options on the customer card.