PROPOSAL FOR CONTRACT UN-INVOICE REPORT

Proposal summary

JCurve Solutions would like to create new a report to retrieve data for data from the Invoice, Credit Note document, and link some details from the sale order. The report can recall backdate and need to show documents based on as at date selected. And print reports in Excel format.

Requirement

New report ‘Contract Un-Invoice’ to retrieve data for data from the Invoice, Credit Note document, and link some details from the sale order.

Assumptions:

  • This report will retrieve data for data from the Invoice, Credit Note document and link some details from the sale order
  • As at date of report will effect to all documents that will show in this report (Sale order date, invoice date and credit note date)
  • Print report as Excel format

Sample Report:

Report Details – Criteria:

Criteria:
#FieldDescriptionDetails
1SubsidiarySelect Subsidiary for reportname of Subsidiary
2As of DateSelect as of Date to filter transactionInput as at Date to recall report compare with date in invoice and CN, DN
Report Details:
#FieldDescriptionDetails
1Company NameShow Subsidiary name that select for reportname of Subsidiary from custrecord_rapid_tht_company_legalname
2Contract Un-Invoice ReportReport NameFixed
3As atShow as at date to recall reportBased on as of date select in the criteria
Report Column:
#FieldDescriptionDetails
1Contract#Project NoProject No
2Sale TypeSale TypeSale Type from SO
3Customer NameCustomer NameCustomer in Invoice screen and credit Note screen
4End-User NameEnd customer of this projectEnd Customer from SO (custbody_end_custome)
5Project NameProject NameProject Full Name from project Master(custentity_gable_rec_csh_fullname)
6Sale NameSales RepresentativeSale1 from SO (salerep)
7PM NameProject ManagerPM from SO (custbody_pm) ระบบ SO มีส่งข้อมูลนี ไปให้ใช่หรือไม
8POCPOC %% of completion from project master where Accounting period = month as of date in selection criteriaproject master ส่งข้อมูลเข้า NS ตอนไหนใน project master มีการ update %POC อย่างไร
9SO Amount (Include VAT)SO Total AmountTotal Amount from SO include vat
10Invoice Amount (Include VAT)Invoice Total AmountTotal Invoice Relate to SO include vat based on as at the date of report
11Uninvoice Amount (Include VAT)Different between SO and InvoiceDifferent amount between SO and Invoice based on as at date of report
12Aging Authorization applySO Date compare to as of date recall reportDate diff from SO and as at date recall report
13RemarkRemark for projectRemark in project master (comments)
Report Summary:
#FieldDescriptionNS field
1Summary SO amountSummary SO amountSum SO Amt
2Summary Invoice amountSummary Invoice amountSum Inv Amt
3Summary Un Inv AmtSummary Un Inv AmtSum Un Inv Amt
4Summary Plan AmtSummary Plan AmtSum Plan Amt

Our Solution

This requirement can be achieved by creating a new report using a transaction saved search. And this search will retrieve data for data from the Invoice, Credit Note document, and link some details from the sale order.

The navigation to the custom report can be added from the classic center. The user can navigate to Reports -> Custom Reports -> Contract Un-Invoice. Then upon clicking the “Contract Un-Invoice”, 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, 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.

Criteria/ Available Filter:
#FieldField Name from NS records
1SubsidiarySubsidiary(subsidiary) list
2As of DateDate(trandate) from Invoice record
Backend Criteria for Report:
1TypeInvoice
2StatusOpen
Report Details:
#FieldField Name from NS records
1Company NameSubsidiary(subsidiary) name selected in filter
2Contract Un-Invoice ReportFixed
3As atBased on as of date selected in the filter

Please see the table below for the report column details for the detailed ‘Contract Un-Invoice’ report.

Report Column:
#FieldField Name from NS records
1Contract#Job Id(entityid) from the related project record
2Sale TypeSale Type(class) from the related Sales Order record
3Customer NameCustomer Name(entity) from the related Sales Order record
4End-User NameEnd Customer(custbody_end_customer) from the related Sales Order record
5Project NameProject Full Name(custentity_gable_rec_csh_fullname) from the related project record
6Sale NameSale1(salesrep) from the related Sales Order record
7PM NamePM(custbody_pm) from SO
8POCPercent complete override values under Financial subtab from project master where Accounting period = month as of a date in selection criteria [Invoice Search + Project Search = Common field is project id]
9SO Amount (Include VAT)Total Amount(total) from the related sales order record – The amount should show based on the Base Currency.
10Invoice Amount (Include VAT)The total(total) amount from the invoice record. The amount should show based on the Base Currency.
11Uninvoice Amount (Include VAT)Total Amount from the related sales order record – The total amount from the invoice record. The amount should show based on the Base Currency.
12Aging Authorization applyDate diff from Sales Order and as at date recall report
13RemarkRemark(comments) from related project master record
Report Summary:
#FieldNS Field
1Summary SO amountSum SO Amt
2Summary Invoice amountSum Inv Amt
3Summary Un Inv AmtSum Un Inv Amt

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. And in real-time, the excel file will be exported by splited files based on the line counts that can be included in the single file.
  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, then 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 if the file count is smaller than or equal to the specific count that we can attach in the email.
    • If the size of files is greater than the specific count, 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

Note: Exported multiple files will be attached to the email is a very exceptional case. i.e. Most of the export function occurs in the real-time or the files attached to the custom record.

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.
  • The report will cover all open invoices without considering custom forms.

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.
  • As of now, currency of all subsidiary is THB. So all the amount will be in THB. If a new subsidiary is created with a different currency in the future, the amount will be displayed in the subsidiary’s base currency and there might be mismatch on the summary.
  • The report does not include the ‘Summary Plan Amt’ since there is no plan amount column in the report columns.
  • The report on the UI will be displayed as normal Netsite page without any styles. It will follow the standard behaviour

Leave a comment

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