How To Inactivate Billing Schedules in Suite Billing

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

				
					
    function buildBillToVat(cviObj, custTaxId, custQstTaxId) {
        nlapiLogExecution('DEBUG', 'params', 'cviObj.length = ' + cviObj.length + ' custTaxId = ' + custTaxId);
        var returnValue = '';
        if (cviObj) {
            for (var i = 0; i < cviObj.length; i++) {
                if (i === 0 && custTaxId) {
                    returnValue += '<br/>' + cviObj[i].taxIdTerm + ' ID #: ' + custTaxId;
                } else if (custQstTaxId) {
                    returnValue += '<br/>' + cviObj[i].taxIdTerm + ' ID #: ' + custQstTaxId;
                }
                //var billToVat = custTaxId ? '<br/>' + cviObj[cviIndex].taxIdTerm + ' ID #: ' + custTaxId : '';
            }
        }
        nlapiLogExecution('DEBUG', 'buildBillToVat returnValue', returnValue);

        return returnValue;
    }