Proposal For Preload & Preapprove Report

Proposal summary

JCurve Solutions would like to create a new report to retrieve data for data from Sale order, Requisition, and project master data. This report will show the current status of the document when recalling the report. And print reports in Excel format.

Requirement

New report ‘Preload & Preapprove’ to retrieve data for data from Sale order, Requisition, and project master data.

Assumptions:

  • This report will retrieve data for data from Sale order, Requisition and project master data
  • This report will show the current status of the document when recall the report
  • Print report as Excel format

Sample

Report Details – Criteria:
#FieldDescriptionDetails
1SubsidiarySelect Subsidiary for reportname of Subsidiary
2As of DateSelect as of Date to filter transactionInput as at Date to recall report
3Approve StatusSelect SO Approve Status (E-Biz Status)Can select as – Preload – Preapprove – All
Report Details
#FieldDescriptionDetails
1Company NameShow Subsidiary name that select for reportname of Subsidiary from custrecord_rapid_tht_company_legalname
2Preload and PreapproveReport NameFixed
3As atShow as at date to recall reportBased on as of date select in the criteria
Report Column
#FieldDescriptionDetails
1Contract#Project No.Project No
2Sale TypeSale TypeGet Sale Type from Sale order
3Approval StatusSale Order StatusE-Biz Status in Sale order document
4ProjectProject NameProject name from project Master (companyname)
5Sales NameSale RepresentativeSale1 from SO (salerep)
6Supervisor NameSupervisor Name of Sale RepSupervisor from employee master link with sale name
7CustomerCustomer name of projectCustomer name from SO (entity)
8SO Amount (Include VAT)SO Total AmountTotal Amount from SO include VAT
9Cost Amount (Include VAT)Project CostTotal Cost from project master (custentity_gable_rec_csh_totalcost)
10Preload Amount (Include VAT)Total PR CostTotal PR cost relate to Project No
11Approve DateSO Approve date from E-BizApprove date from Sale order (custbody_tosw_date)
12AgeAging date from SO Date until date recall reportDatediff compare SO Date and as at date recall report
13RemarkRemark for projectRemark in project master (comments)
Report Summary
#FieldDescriptionNS field
1Summary Project AmountSummary Project AmountSummary Project Amount
2Summary Project CostSummary Project CostSummary Project Cost
3Summary Pre-load CostSummary Pre-load CostSummary Pre-load Cost

Our Solution

This requirement can be achieved by creating a new report using a script by fetching the data using transaction search. And this report will retrieve details for data from Sale order, Requisition, and project master data. This report will show the current status of the document when recalling the report.

The navigation to the custom report can be added from the classic center. The user can navigate to Reports -> Custom Reports -> Preload and Preapprove. Then upon clicking the “Preload and Preapprove”, the user will be redirected to a report page.

The report will first display a detailed report based on the default filters, such as the subsidiary as G-ABLE CO., LTD, Approve Status as All, and the As of Date as today, and then show a summary of the total amount in the report’s last row.

The fields given below will be indicated on the header part of the report.

Filters/ Criteria tabs Shown in Report Page
#FieldField Name from NS records
1SubsidiarySubsidiary(subsidiary) list
2As of DateDate(trandate)
3Approve StatusE-Biz Status(custbody_ebizstat) under integration subtab from SO
– Preload
– Preapprove
– Approve
– All
Backend Criteria for Report
1TypeSales Order & Requisition
Report Details:
#FieldField Name from NS records
1Company NameSubsidiary(subsidiary) name selected in filter
2Preload and PreapproveFixed
3As atBased on as of date select in the criteria

Please see the table below for the report columns for the detailed ‘Preload & Preapprove’ report.

Report Column
#FieldField Name from NS records
1Contract#Project Order
2Sale TypeSale Type(class) from SO
3Approval StatusE-Biz Status(custbody_ebizstat) under integration subtab from SO
4ProjectProject name from project Master (companyname)
5Sales NameSales Rep from SO (salerep)
6Supervisor NameSupervisor(supervisor) from sales rep employee record
7CustomerCustomer name from SO (entity)
8SO Amount (Include VAT)Total(total) Amount from SO
9Cost Amount (Include VAT)Total Cost under cost sheet subtab from project record (custentity_gable_rec_csh_totalcost)
10Preload Amount (Include VAT)Estimated Total Amount from the related requisition record
11Approve DateApprove date under integration subtab from Sale order (custbody_tosw_date)
12AgeDatediff compare SO Date and selected date in the filter
13RemarkProject Note (Remark) field(comments) in the project master record related to the sales order

Finally, on the report page, an Export button will be added to download the detailed report in Excel format.

When you click the export button, the report will be downloaded in Excel format based on the report’s size in the following cases:

  1. If the file size is less than 10Mb (based on predefined line count), the excel file will be downloaded directly from Netsuite.
  2. Otherwise, the Report Download will take place through a scheduled process where there is a delay in the process based on the availability of the Netsuite Queue. For that will make use if a custom record to track the requests
    • If the file size is greater than 10Mb & the total email size is less than 19Mb,  the download process will take a long time. So that we will split the file into multiple files with predefined line counts in a single file due to the size of each individual attachment cannot exceed 10Mb. And the generated multiple files will be emailed to the initiator’s email. According to the limitations of Netsuite, the total message size (including attachments) in the email must be 20MB or less.
    • If the file size is greater than 19Mb, the download will take a long time, and all of the results will not load in a single file and email.

      To overcome this, we will generate multiple files with predefined line counts in a single file. And all generated files will be saved in Netsuite’s file cabinet and attached to the corresponding custom record entry which tracks that Report generation process.

      Once all export functions have been completed in NetSuite, a single email with the custom record link will be sent to the download initiator. The initiator can export files by login to the NetSuite and by navigating to the custom record entry with the link from the email.

      The summary line on the Excel file will be calculated based on the result lines included in the corresponding file in the case of splitted file download 

Assumptions

  • Each report page can include 1000 lines, with the 1001st line displaying a summary of the Total Amount of all results in the report.
  • In the status filter, it will display all values under the E-Biz Status field in the system as standard.
  • When you select the report’s status filter, it will display a list of related sales order documents.

Risks

  • The line counts in the single file to progress with the scheduled process can be confirmed during the development phase.
  • If the file is more than 19Mb, the user should go to NetSuite and manually download the file from the account.
  • The file cabinet will be stored with many files in the future. This will have an impact on the Netsuite account’s file cabinet. So, users have to remove these files from a file cabinet in the future to free up the storage.

Leave a comment

Your email address will not be published. Required fields are marked *