Credit Memo PDF
J-curve would like to create the Credit Memo PDF template as per given layout

Our Solution
The requirement can be achieved by customizing the advanced PDF template of the Credit Memo and that template can be applied to the custom Credit Memo form. So, the users can generate the print by clicking the standard print button from the Credit Memo record.
Also, a script needs to be deployed on save of the Credit Memo, which will create the Credit Memo Total in Thai words and store it in a separate custom body field. This Amount in words can be used on the print
Field Mapping can be followed as per the given mapping file.
The “Angsana” font can be used for the content
The layout of the PDF will be designed as below
- Header will be displayed on every page
- The item body table can be considered as the Dynamic. So, the table will be end immediately after the item’s lines
- Summary section can be added immediately after the Item table
Assumptions
- Copies need to be generated per Credit Memo. 1 Original and 1 or 2 copy in A4 page size.
If [CreditMemo.custbody_scg_ar_doctype] is ใบลดหนี้ – AR, then print 2 copies as below
1. ต้นฉบับ สำหรับลูกค้า / Original for Customer
2. สำเนา สำหรับเก็บเป็นหลักฐานทางบัญชี / Copy for Accounting
If [CreditMemo.custbody_scg_ar_doctype] is ใบลดหนี้ (ใบกำกับภาษี) – AR, then print 3 copies as below
1. ต้นฉบับ สำหรับลูกค้า / Original for Customer
2. สำเนา 1 สำหรับลูกค้า / Copy 1 for Customer
3. สำเนา 2 สำหรับเก็บเป็นสำเนาใบกำกับภาษีและหลักฐานทางบัญชี / Copy 2 For Tax Invoice and Accounting
If the doctype other than the ใบลดหนี้ – AR or ใบลดหนี้ (ใบกำกับภาษี) – AR, then print will be created only with an original copy – ต้นฉบับ สำหรับลูกค้า / Original for Customer
- The header and footer section (actions 1-26 and 51- 52) will be repeated on every page if the print has multiple pages
- For field mapping 10,
- If [CreditMemo.custbody_scg_ar_doctype] is ใบลดหนี้ – AR, then show
ใบลดหนี้
(ไม่ใช่ใบกำกับภาษี)
Credit Note
- If [CreditMemo.custbody_scg_ar_doctype] is ใบลดหนี้ (ใบกำกับภาษี) – AR, then show
ใบลดหนี้
(ใบกำกับภาษี)
Credit Note
(Tax Invoice)
- If doctype is other than ใบลดหนี้ – AR or ใบลดหนี้ (ใบกำกับภาษี) – AR, then show
ใบลดหนี้
Credit Note
- For field mapping 50, fixed size will be given for signature image. We assume that all signatures will be in same size.
- The single line will be show in the Credit Memo print If the SCG PRINT 1 LINE BILL NOTE check box is ticked. Otherwise, item lines will be displayed as usual
- The amount format is comma-separated.
- The Thai words/Labels will be provided by the JCurve Solutions Limited and we can hard code the Thai labels in the print.
- The font style should be Angsana and the font size should be the same as the file provided by the client.
- The field sourcing will be done based on the file that is provided by the client and we assume all the fields are available in Netsuite account
- The date format should be same as in the given sample print
Risks
- We can get data only from the current record and the next join record such as Subsidiary and Entity. If any data needs to be populated from record with more than one join/from item record, then that needs to be populated to a custom field on the corresponding transaction by sourcing or scripting. This is not included in the current scope
- If document has more than 1 page, Total will show only in the last page
- The item table will end immediately after the item lines and will begin the summary table (31 to 50)
- The contents in the summary part (31 to 50) may break into multiple pages due to the long content.
- The summary section will split into 2 sections such as
- Section 1: 31 to 48,
- Section 2: 49 to 50,
So, here the page break will be done accordingly
- Item table header will be repeated in all pages even if the item lines end but still page with summary part
- There will be chance to show double horizontal lines (item table header line and summary part line) if page start with summary part.