How to disable the Tax3 field of Sales Order screen if the customer is not TCS Applicable

By | May 27, 2021

There was a requirement from the user to add a check box on Customer master as “TCS Applicable” and “Tax Level 3” field of detail line on the Sales Order screen should be activated only when the “TCS Applicable” check box for any customer is ticked, otherwise it should be disabled.

To achieve the above requirement follow the below steps:
Step 1:
Go to OBPC(Customer) window and add a checkbox on header screen and name it as “TCS Applicable” as per below screenshot:

New Stuff: Error: “Too Many Tables open” in Sage X3

Customer Master
Customer Master

Step 2:
Add below code to “SPESOH” script in $APRES_MODIF event:

#####################################################################################

IF !Clalev([F:ZBPC]) : Local File BPCUSTOMER[ZBPC] Endif
FOR [F:ZBPC] WHERE [F:ZBPC]BPCNUM=[M:SOH0]BPCORD

IF[M:SOH0]BPCORD=[F:ZBPC]BPCNUM AND [F:ZBPC]ZTCS <> 2
Diszo [M:SOH4] VACITM3
Endif

NEXT

######################################################################

Step 3:
Compile the “SPESOH” script.

Output:

Output
Output

In the above screenshot the “Tax level 3” field is disabled because the customer is not “TCS Applicable” (TCS Applicable check box is not checked for this customer in cusstomer master).

In this way we can activate a tax field only when the selected Customer is TCS Applicable.

About Us

Greytrix – a globally recognized and one of the oldest Sage Development Partners is a one-stop solution provider for Sage ERP and Sage CRM organizational needs. Being acknowledged and rewarded for multi-man years of experience and expertise, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development, and implementation competence.

Greytrix has some unique integration solutions developed for Sage CRM with Sage ERPs namely Sage X3Sage IntacctSage 100Sage 500, and Sage 300. We also offer best-in-class Sage ERP and Sage CRM customization and development services to Business Partners, End Users, and Sage PSG worldwide. Greytrix helps in the migration of Sage CRM from Salesforce | ACT! | SalesLogix | Goldmine | Sugar CRM | Maximizer. Our Sage CRM Product Suite includes addons like  Greytrix Business Manager, Sage CRM Project Manager, Sage CRM Resource Planner, Sage CRM Contract Manager, Sage CRM Event Manager, Sage CRM Budget Planner, Gmail Integration, Sage CRM Mobile Service Signature, Sage CRM CTI Framework.

Greytrix is a recognized Sage Champion Partner for GUMU™ Sage X3 – Sage CRM integration listed on Sage Marketplace and Sage CRM – Sage Intacct integration listed on Sage Intacct Marketplace. The GUMU™ Cloud framework by Greytrix forms the backbone of cloud integrations that are managed in real-time for the processing and execution of application programs at the click of a button.

For more information on our integration solutions, please contact us at sage@greytrix.com. We will be glad to assist you.