eg. ```function PostSourcing_Sales(type,name) { Po...
# suitescript
k
eg.
Copy code
function PostSourcing_Sales(type,name)
{
PostSourcing(type,name);	
	
switch (name)
	{
	case "entity": 
		CheckCreditStatus(false);
		CalcMargin();
		CheckIfCustomerHasItemCodes();
		break;
	
	case "item": 
		if (!HandleSubstituteItems())
			{
                        LookupCustomerItemCodeColumn();
			FixPricingLookupBug();	
			}
		 break;
	}
}