Extending the United Arab Emirates Electronic Invoicing SuiteApp
If you need to extend the existing United Arab Emirates Electronic Invoicing functionality in NetSuite, create a custom plug-in implementation and leverage the localization extension service for the UAE.
The United Arab Emirates Electronic Invoicing SuiteApp includes an extension service that enables you to reuse standard localization logic and apply custom modifications to e-document content.
Using the UAE Extension Service
To extend the standard functionality, you must import the UAE extension service using the exact path below:
/path
This path is fixed and can't be changed.
After importing the service, call the .extend(context) method to retrieve content processed by the SuiteApp. You can modify the content as needed and return it in the content field of the response object.
Example Implementation:
* @NApiVersion 2.0
* @NScriptType plugintypeimpl
*/
define([
"/SuiteApps/com.netsuite.uaeelectronicinvoicing/src/services/DocExtensionService.js"
], function (DocExtensionService) {
function extend(context) {
// Import UAE-specific functionality
let extendedContent = DocExtensionService.extend(context);
// Run your own code / functionality here
extendedContent = /* ... */ extendedContent;
return {
success: true,
// Ensure that you return the extended content
content: extendedContent
};
}
return {
extend: extend
};
});