Jira Code :NHS-11
Create an invoice template for the service items. For this invoice, they need to group the items based on their tax rates and need a tax summary table to show all this information.
Previous Balance = Record balance – Record Total
Current Balance = Record Balance
AMOUNT DUE = Amount Remaining
INITIAL Amount = Total amount of all Service ITEMS
Discount Amount = Total amount of all Discount Items in the line level + Discount Item in the Header Level
VAT Total = Record Tax total
Rate = Record Exchange Rate
TOTAL AMOUNT on each VAT summary line = SUBTOTAL+VAT
<?xml version="1.0"?>
<!DOCTYPE pdf PUBLIC "-//big.faceless.org//report" "report-1.1.dtd">
<pdf>
<head>
<!--<link name="cyberbit" type="font" subtype="opentype" src="${nsfont.cyberbit}" src-bold="${nsfont.cyberbit}" bytes="2" />
<link name="cyberbit" type="font" subtype="opentype" src="${nsfont.cyberbit}" src-bold="${nsfont.cyberbit}" bytes="2" ></link>-->
<link name="NotoSans" type="font" subtype="truetype" src="${nsfont.NotoSans_Regular}" src-bold="${nsfont.NotoSans_Bold}" src-italic="${nsfont.NotoSans_Italic}" src-bolditalic="${nsfont.NotoSans_BoldItalic}" bytes="2" />
<#if .locale == "zh_CN">
<link name="NotoSansCJKsc" type="font" subtype="opentype" src="${nsfont.NotoSansCJKsc_Regular}" src-bold="${nsfont.NotoSansCJKsc_Bold}" bytes="2" />
<#elseif .locale == "zh_TW">
<link name="NotoSansCJKtc" type="font" subtype="opentype" src="${nsfont.NotoSansCJKtc_Regular}" src-bold="${nsfont.NotoSansCJKtc_Bold}" bytes="2" />
<#elseif .locale == "ja_JP">
<link name="NotoSansCJKjp" type="font" subtype="opentype" src="${nsfont.NotoSansCJKjp_Regular}" src-bold="${nsfont.NotoSansCJKjp_Bold}" bytes="2" />
<#elseif .locale == "ko_KR">
<link name="NotoSansCJKkr" type="font" subtype="opentype" src="${nsfont.NotoSansCJKkr_Regular}" src-bold="${nsfont.NotoSansCJKkr_Bold}" bytes="2" />
<#elseif .locale == "th_TH">
<link name="NotoSansThai" type="font" subtype="opentype" src="${nsfont.NotoSansThai_Regular}" src-bold="${nsfont.NotoSansThai_Bold}" bytes="2" />
</#if>
<macrolist>
<macro id="nlheader">
<table width="100%"><tr><td align="left">
<img src="https://system.eu1.netsuite.com/core/media/media.nl?id=1544&c=5019333_SB1&h=b3561b27ed650306c775" style="width: 90px; height: 90px;" />
</td><td align="right" font-size="12" style="padding-top:-2px;"><p>${companyInformation.companyName}</p>
<p align="right" font-size="10" style="padding-top:-10px;">${companyInformation.addressText}<span style="color:black" font-size="10"><br/><a href="">Tel:+302106802300</a><br/><b>VAT No: EL099790528 </b></span></p>
</td></tr> <tr><td><p style="font-size: 10px;padding-bottom:8px;" align="left"><b> www.inaccess.com</b></p></td></tr><tr><td><p style="font-size: 12px;" align="left"><b>Invoice</b></p></td></tr> <tr><td><p style="font-size: 10px;padding-top:-6px;" align="left"><b>Invoice Number ${record.tranid}</b></p></td></tr> </table>
</macro>
<macro id="nlfooter">
<table width="100%" style="padding-top:-10px;" align="justify"><tr><td>
<table width="100%" align="left"><tr style="padding-bottom:10px;"><td><p align="justify" style="font-size:8px;color:black;font-weight:600px;" >To pay by bank transfer in EUR
</p></td></tr>
<tr><td><p style="color:black;LINE-HEIGHT:2px;font-size:7px;font-weight:600px;"> EUROBANK ERGASIAS SA</p></td></tr>
<tr><td><p style="color:black;LINE-HEIGHT:2px;font-size:7px;font-weight:600px;"> 117 Kifisias Avenue</p></td></tr>
<tr><td><p style="color:black;LINE-HEIGHT:2px;font-size:7px;font-weight:600px;"> GR 15124, Marousi</p></td></tr>
<tr><td><p style="color:black;LINE-HEIGHT:2px;font-size:7px;font-weight:600px;"> Athens, Greece</p></td></tr>
<tr><td><p style="color:black;LINE-HEIGHT:2px;font-size:7px;font-weight:600px;"><a href="">Tel:+302108129520</a></p></td></tr>
<tr><td><p style="color:black;LINE-HEIGHT:2px;font-size:7px;font-weight:600px;"> Beneficiary:INACCESS NETWORKS SA</p></td></tr>
<tr><td><p style="color:black;LINE-HEIGHT:2px;font-size:7px;font-weight:600px;"> Business Center Marousi</p></td></tr>
<tr><td><p style="color:black;LINE-HEIGHT:2px;font-size:7px;font-weight:600px;"> BIC:ERBKGRAA</p></td></tr>
<tr><td><p style="color:black;LINE-HEIGHT:2px;font-size:7px;font-weight:600px;">IBAN: G R 8 6 0 2 6 0 0 2 7 0 0 0 0 3 9 0 2 0 1 3 0 9 3 3 3</p></td></tr>
<!-- <tr><td><p style="color:black;padding-left:30px;LINE-HEIGHT:2px;">2 0 1 3 0 9 3 3 3</p></td></tr>-->
</table></td>
<td ><table width="100%"><tr style="padding-bottom:10px;"><td><p align="justify" style="font-size:8px;color:black;font-weight:600px;" >To pay by bank transfer in USD
</p></td></tr>
<tr><td><p style="color:black;LINE-HEIGHT:2px;font-size:7px;font-weight:600px;"> EUROBANK ERGASIAS SA</p></td></tr>
<tr><td><p style="color:black;LINE-HEIGHT:2px;font-size:7px;font-weight:600px;"> 117 Kifisias Avenue</p></td></tr>
<tr><td><p style="color:black;LINE-HEIGHT:2px;font-size:7px;font-weight:600px;"> GR 15124, Marousi</p></td></tr>
<tr><td><p style="color:black;LINE-HEIGHT:2px;font-size:7px;font-weight:600px;"> Athens, Greece</p></td></tr>
<tr><td><p style="color:black;LINE-HEIGHT:2px;font-size:7px;font-weight:600px;"><a href="">Tel:+302108129520</a></p></td></tr>
<tr><td><p style="color:black;LINE-HEIGHT:2px;font-size:7px;font-weight:600px;"> Beneficiary:INACCESS NETWORKS SA</p></td></tr>
<tr><td><p style="color:black;LINE-HEIGHT:2px;font-size:7px;font-weight:600px;"> Business Center Marousi</p></td></tr>
<tr><td><p style="color:black;LINE-HEIGHT:2px;font-size:7px;font-weight:600px;"> BIC:ERBKGRAA</p></td></tr>
<tr><td ><p style="color:black;LINE-HEIGHT:2px;font-size:7px;font-weight:600px;"> IBAN: G R 2 2 0 2 6 0 0 0 0 2 0 0 0 0 6 7 1 2 0 0 0 5 1 2 7 8</p></td></tr>
<!--<tr><td><p style="color:black;padding-left:30px;LINE-HEIGHT:2px;"> 2 0 1 3 0 9 3 3 3</p></td></tr>-->
</table></td>
<td >
<table width="100%" ><tr style="padding-bottom:10px;"><td><p align="justify" style="font-size:8px;color:black;font-weight:600px;">To pay by bank transfer in GBP
</p></td></tr>
<tr><td><p style="color:black;LINE-HEIGHT:2px;font-size:7px;font-weight:600px;">Silicon Valey Bank</p></td></tr>
<tr><td><p style="color:black;LINE-HEIGHT:2px;font-size:7px;font-weight:600px;">Alphabeta, 14-18 Finsbury Square</p></td></tr>
<tr><td><p style="color:black;LINE-HEIGHT:2px;font-size:7px;font-weight:600px;"> London EC2A 1BR</p></td></tr>
<tr><td><p style="color:black;LINE-HEIGHT:2px;font-size:7px;font-weight:600px;">UNITED KINGDOM</p></td></tr>
<tr><td><p style="color:black;LINE-HEIGHT:2px;font-size:7px;font-weight:600px;">Sort Code: 6 2 1 0 0 0</p></td></tr>
<tr><td><p style="color:black;LINE-HEIGHT:2px;font-size:7px;font-weight:600px;"> Beneficiary:INACCESS NETWORKS SA</p></td></tr>
<tr><td><p style="color:black;LINE-HEIGHT:2px;font-size:7px;font-weight:600px;"> Account Number:2 0 1 7 2 9 9 0</p></td></tr>
<tr><td><p style="color:black;LINE-HEIGHT:2px;font-size:7px;font-weight:600px;">SWIFT Code: SVBKGB2L</p></td></tr>
<tr><td><p style="color:black;LINE-HEIGHT:2px;font-size:7px;font-weight:600px;"> IBAN: G B 9 1 S V B K 6 2 1 0 0 0 2 0 1 7 2 9 9 0 </p><p align="right" style="color:black;padding-left:20px;font-size:7px;"><u><b>Accounting Dept</b></u></p></td></tr>
<!--<tr><td><p style="color:black;padding-left:32px;LINE-HEIGHT:2px;">2 9 9 0</p></td></tr>-->
</table>
</td>
</tr></table><table align="left" style="padding-top:-25px;"><tr><td style="padding-left:10px;"><div style="padding-top:-8px;padding-top:-8px;" width="45%" id="textbox11"><p style="color:red;font-size:10px;"></p><p></p>
</div></td></tr></table>
<table style="width: 100%; font-size: 8px;"><tr>
<td colspan="12"> <p style="font-size: 8px;font-weight:600px;" align="left">For question about this invoice please email accounting@inaccess.com</p></td>
<td align="right" style="padding: 0;"><pagenumber/> of <totalpages/></td>
</tr></table>
<table align="right" border="0" class="footer">
<tr>
<td><#if companyInformation.companyname?length != 0>${companyInformation.companyname}</#if></td>
</tr>
</table>
</macro>
</macrolist>
<style type="text/css">* {
<#if .locale == "zh_CN">
font-family: NotoSans, NotoSansCJKsc, sans-serif;
<#elseif .locale == "zh_TW">
font-family: NotoSans, NotoSansCJKtc, sans-serif;
<#elseif .locale == "ja_JP">
font-family: NotoSans, NotoSansCJKjp, sans-serif;
<#elseif .locale == "ko_KR">
font-family: NotoSans, NotoSansCJKkr, sans-serif;
<#elseif .locale == "th_TH">
font-family: NotoSans, NotoSansThai, sans-serif;
<#else>
font-family: NotoSans, sans-serif;
</#if>
}
table {
font-size: 8pt;
margin-top: 10px;
table-layout: fixed;
width: 100%;
}
th {
font-size: 7pt;
vertical-align: middle;
padding-right: 8px;
padding-left: 8px;
padding-bottom: 3px;
padding-top: 5px;
}
td {
padding-right: 6px;
padding-left: 6px;
padding-bottom: 4px;
padding-top: 4px;
}
b {
font-weight: bold;
color: #333333;
}
body {
background-color: #ffffff;
}
table.border_bottom tr{
border-bottom: 3px solid #black;
}
table.header{
<!--background-color: #eaeaea;-->
border-bottom: 4px solid #666666;
}
table.header td {
padding: 0px;
font-size: 10pt;
}
table.footer{
width: 92%;
font-size: 5pt;
color: #ffffff;
}
table.footer td {
padding: 0px;
font-size: 8pt;
}
table.itemtable th {
padding-bottom: 5px;
padding-top: 5px;
}
table.body td {
padding-top: 2px;
}
table.total {
page-break-inside: avoid;
}
table.total td{
color:#FFFFFF;
}
tr.totalrow {
background-color: #ffffff;
line-height: 200%;
color: #FFFFFF;
}
td.addressheader {
font-size: 8pt;
padding-top: 8px;
padding-bottom: 2px;
<!--text-transform: uppercase;-->
}
td.address {
padding-top: 0px;
}
td.headertitle {
font-size: 20pt;
}
td.item {
padding-top: 0px;
border: 0px solid #ffffff;
}
td.itembackground {
background-color: #ffffff;
}
span.title {
font-size: 12pt;
}
span.number {
font-size: 16pt;
color:#00467f;
}
span.total {
<!--color:#00467f;-->
font-size: 10pt;
}
hr {
width: 100%;
color: #d3d3d3;
background-color: #000000;
}
#textbox1 {
box-sizing: content-box;
width: 250px;
height: 100px;
padding: 30px;
border:1px solid #000;
}
#textbox2 {
box-sizing: content-box;
width: 270px;
height: 100px;
padding: 30px;
border:1px solid #000;
}
#textbox {
box-sizing:content-box;
width: 664px;
height: 10px;
border:1px solid #000;
margin-top:-20px;
}
#textbox11 {
box-sizing: content-box;
width: 664px;
<!--border:1px solid #000;-->
background: #A9A9A9;
}
</style>
</head>
<body header="nlheader" header-height="18%" footer="nlfooter" footer-height="150pt">
<#assign currency = {"USD":"$", "EUR":"€", "GBP":"£", "AUSTRALIAN DOLLAR":"$","INR":"Rs."}>
<#setting number_format=",##0.00">
<#setting locale="en_US">
<#assign vatpercent=0> <#assign linecharge=0>
<#list record.item as item>
<#if item.itemtype =='OthCharge'>
<#assign linecharge= linecharge + item.amount >
</#if>
</#list>
<#list record.item as item>
<#assign vatpercent = vatpercent + item.tax1amt >
</#list>
<#assign initialamount = 0> <#assign discountamount = 0> <#assign subtotal = 0>
<#list record.item as item>
<#if item.itemtype == 'Service'>
<#assign initialamount = initialamount + item.amount >
</#if>
<#if item.itemtype == 'Discount'>
<#assign discountamount = discountamount + item.amount >
</#if>
<#assign subtotal = initialamount + discountamount + linecharge>
</#list>
<#assign vatamount = 0>
<#list record.item as item>
<#if item.taxrate1?contains("0.0%")>
<#else>
<#assign vatamount = vatamount + item.amount >
<#assign subtotal1 = vatamount - discountamount >
<#assign vattotal = subtotal1 * 0.24 >
<#assign totalamount = subtotal1 + vattotal>
</#if>
</#list>
<table align="left" width="100%"><tr>
<td><p style="font-size:10px;LINE-HEIGHT:10px;PADDING-BOTTOM:-6PX;"><br/><b>Bill To</b> </p><p align="left" style="LINE-HEIGHT:2px;"><b>${record.entity}</b></p><p style="padding-top:-4px;LINE-HEIGHT:2px;" align="left" >${record.billaddr1}</p><p style="padding-top:-4px;LINE-HEIGHT:2px;" align="left" >${record.entity.city}</p><p style="padding-top:-4px;LINE-HEIGHT:2px;" align="left" >${record.entity.country}</p><p style="padding-top:-4px;LINE-HEIGHT:2px;font-size:10px;" align="left">Attn:${record.entity.attention}</p><table width="100%" style="padding-left:-8px;">
<tr><td><p style="padding-bottom:4px;font-size:12px;PADDING-BOTTOM:0PX;font-size:10px;"><b>Details</b></p></td></tr>
<tr><td style="font-size:10px;LINE-HEIGHT:2px;">Invoice Number
</td>
<td style="font-size:10px;padding-left:-70px;LINE-HEIGHT:2px;"> ${record.tranid}</td>
</tr>
<tr><td style="font-size:10px;LINE-HEIGHT:2px;">Invoice Date
</td>
<td style="font-size:10px;padding-left:-70px;LINE-HEIGHT:2px;"> ${record.trandate}</td>
</tr>
<tr><td style="font-size:10px;LINE-HEIGHT:2px;">Payment Terms
</td>
<td style="font-size:10px;padding-left:-70px;LINE-HEIGHT:2px;">${record.terms}</td>
</tr><tr><td style="font-size:10px;LINE-HEIGHT:2px;">Account ID
</td>
<td style="font-size:10px;padding-left:-70px;LINE-HEIGHT:2px;">${record.entity.entityid}</td>
</tr><tr><td style="font-size:10px;LINE-HEIGHT:2px;">PO Number
</td>
<td style="font-size:10px;padding-left:-70px;LINE-HEIGHT:2px;">${record.otherrefnum}</td>
</tr><tr><td style="font-size:10px;LINE-HEIGHT:2px;">Previous Balance
</td>
<td style="font-size:10px;padding-left:-70px;LINE-HEIGHT:2px;">${currency[record.currency]}${record.balance-record.total}</td>
</tr><tr><td style="font-size:10px;LINE-HEIGHT:2px;">Current Balance
</td>
<td style="font-size:10px;padding-left:-70px;LINE-HEIGHT:2px;"><p><strong>${currency[record.currency]}${record.balance}</strong></p></td>
</tr>
</table> </td>
<td><table><tr>
<td colspan="5" align="left" ><p style="padding-bottom:-10px;font-size:12px;"><b>AMOUNT DUE</b></p></td ><td colspan="5" align="right"><p style="padding-bottom:-10px;font-size:18px;"><b>${currency[record.currency]}${record.amountremaining}</b></p></td>
</tr>
<tr>
<td colspan="10" style="padding-top:-8px;" align="right"><hr/></td>
</tr>
<tr><td colspan="5" align="right"></td><td colspan="5" align="right"> <p style="padding-top:-18px;font-size:8px;"> <b><i>Due ${record.duedate}</i></b></p></td></tr>
<tr><td><p> </p></td></tr>
<tr><td colspan="10" style="padding-bottom:-16px;"><p align="left"><b>This bill is for the billing period</b> <b> ${record.startdate}-${record.enddate}</b></p> </td> </tr>
<tr><td colspan="10" style="padding-bottom:-10px;"><hr/></td></tr>
<tr><td colspan="5"><p style="font-size:10px;LINE-HEIGHT:2px;">INITIAL AMOUNT</p></td>
<td colspan="5" align="right"><p style="font-size:10px;LINE-HEIGHT:2px;">${currency[record.currency]}${initialamount} </p></td></tr>
<tr><td colspan="5"><p style="font-size:10px;LINE-HEIGHT:2px;">DISCOUNT</p></td>
<td colspan="5" align="right"><p style="font-size:10px;LINE-HEIGHT:2px;"> <#assign totdisc =0><#assign disctot = 0><#if record.discountitem?has_content><#assign disctot = record.discounttotal> <#assign totdisc = discountamount + disctot ><#else><#assign totdisc = discountamount ></#if><#if totdisc?contains("-")> ${currency[record.currency]}${totdisc?substring(1)}<#else>${currency[record.currency]}${totdisc}</#if></p></td></tr>
<tr><td colspan="5"><p style="font-size:10px;LINE-HEIGHT:2px;">CHARGES</p></td>
<td colspan="5" align="right"><p style="font-size:10px;LINE-HEIGHT:2px;">${currency[record.currency]}${linecharge} </p></td></tr>
<tr><td colspan="5"><p style="font-size:10px;LINE-HEIGHT:2px;">SUBTOTAL</p></td>
<td colspan="5" align="right"><p style="font-size:10px;LINE-HEIGHT:2px;">${currency[record.currency]}${subtotal} </p></td></tr>
<tr><td colspan="5"><p style="font-size:10px;LINE-HEIGHT:2px;">VAT TOTAL</p></td>
<td colspan="5" align="right"><p style="font-size:10px;LINE-HEIGHT:2px;">${currency[record.currency]}${record.taxtotal}<#assign vattax = record.taxtotal></p></td>
</tr>
<tr> <td colspan="10" align="right" style="padding-top:-10px;"><hr/></td></tr>
<tr><td colspan="5"><p style="font-size:10px;LINE-HEIGHT:2px;padding-top:-10px;"><b>TOTAL AMOUNT</b></p></td>
<td colspan="5" align="right"><p style="font-size:10px;LINE-HEIGHT:2px;padding-top:-10px;"><b>${currency[record.currency]}${record.total}</b> </p></td></tr>
<tr> <td colspan="10" align="right" style="padding-top:-18px;"><hr/></td></tr>
<tr> <td colspan="10" align="right"> </td></tr>
<tr> <td colspan="5" align="left" ><p style="font-size:10px;padding-top:-14px;"><b>Rate</b></p></td><td align="left" style="padding-left:-100px;padding-top:-10px;"> ${record.exchangerate}</td></tr>
</table></td>
</tr>
</table>
<#assign taxrate=0><#assign invattotal = 0>
<#if record.item?has_content>
<table class="itemtable" style="color:black;font-size:8px;LINE-HEIGHT:8px;margin-top:-200px;" width="100%" border="1" border-color="DimGray" ><!-- start items --><#list record.item as item><#if item_index==0>
<thead>
<tr>
<th colspan="5" ><p align="left" style="font-size:7px;" ><u>PLANT CODE</u></p></th>
<th colspan="9"><p align="left" style="font-size:7px;"><u>DESCRIPTION OF GOODS OR SERVICES</u></p></th>
<th colspan="5" style="align: ;" ><p align="center" style="font-size:7px;"><u> UNIT OF MEASUREMENT</u></p></th>
<th colspan="3" style="align: center;"><p align="center" style="font-size:7px;"><u>UNITS</u></p></th>
<th colspan="3" style="align: right;"><p align="center" style="font-size:7px;"><u>PRICE PER UNIT</u></p></th>
<th colspan="5" style="align: right;"><p align="center" style="font-size:7px;"><u>INITIAL AMOUNT</u></p></th>
<th colspan="5" style="align: right;"><p align="center" style="font-size:7px;"><u>VAT</u></p></th>
<th colspan="5" style="align: right;"><p align="center" style="font-size:7px;"><u>TOTAL AMOUNT</u></p></th>
</tr>
</thead>
</#if>
<tr style="padding-top:-8px;">
<td colspan="5" ><span style="align: center;padding-top:-12px;"><#if item.item?starts_with("SID")><p align="center" style="padding-top:-10px;">${item.item?substring(0,9)}</p><#else> </#if></span></td>
<td colspan="9"><span style="align: center;padding-top:-20px;"><p align="left" style="padding-top:-10px;">${item.description}</p></span></td>
<td colspan="5" style="align: center;"><span style="color:black;padding-top:-10px;"> <#if item.itemtype == 'Service'> ${item.itemtype}<#else> ${item.units}</#if></span></td>
<td colspan="3" style="align: center;"><span style="color:black;">${item.quantity}</span></td>
<td colspan="3" style="align: right;"><span style="color:black;">${currency[record.currency]}${item.rate}</span></td>
<td colspan="5" style="align: right;"><span style="color:black;">${currency[record.currency]}${item.amount}</span></td>
<td colspan="5" style="align:right;"><span style="color:black;"> ${currency[record.currency]}${item.tax1amt} <#assign taxtamt=taxrate+item.tax1amt></span></td>
<td colspan="5" style="align: right;"><span style="color:black;"><#assign invattotal = item.amount + item.tax1amt >${currency[record.currency]}${invattotal}</span></td>
</tr>
</#list><!-- end items -->
</table>
<#assign amount1 = 0 ><#assign amount2 = 0 ><#assign amount3 = 0 ><#assign subtotalamount1 = 0 > <#assign taxamount1 = 0 ><#assign totalamount1 = 0 >
<#list record.item as item>
<#if item.taxcode == 'GR_VAT_24_SERVICES:GR_VAT_24_SERVICES' || item.taxcode =='GR_VAT_24_FIXED ASSETS:GR_VAT_24_FIXED ASSETS' || item.taxcode =='GR_VAT_24_ITEMS PRODUCED BY 3RD PARTIES:GR_VAT_24_ITEMS_PRODUCED BY 3RD PARTIES' || item.taxcode =='GR_VAT_24_OWN USE_GUARANTEES:GR_VAT_24_OWN USE_GUARANTEES' || item.taxcode ==' GR_VAT_24_PRODUCED BY IAN:GR_VAT_24_PRODUCED BY IAN' || item.taxcode =='GR_VAT_24_RAW MATERIAL:GR_VAT_24_RAW_MATERIAL' >
<#if item.itemtype == 'OthCharge' || item.itemtype == 'Discount'> <#else>
<#assign amount1 = amount1 + item.amount > </#if>
<#if item.itemtype == 'Discount'><#assign amount2 = amount2 + item.amount ></#if>
<#if item.itemtype == 'OthCharge'><#assign amount3 = amount3 + item.amount > </#if>
<#assign subtotalamount1 = amount1 + amount2 + amount3 >
<#if item.itemtype == 'OthCharge' || item.itemtype == 'Discount'> <#else>
<!--<#assign taxamount1 = subtotalamount1 * 0.24>--> </#if>
<#assign totalamount1 = taxamount1 + subtotalamount1 >
</#if>
</#list>
<#assign amount11 = 0 ><#assign amount22 = 0 ><#assign amount33 = 0 ><#assign subtotalamount11 = 0 > <#assign taxamount11 = 0 ><#assign totalamount11 = 0><#assign index1 = 0>
<#list record.item as item>
<#if item.taxcode == 'GR_VAT_00:GR_VAT_00' || item.taxcode == 'GR_VAT_24_RAW MATERIAL:UNDEF-GR' >
<#if item.itemtype == 'OthCharge' || item.itemtype == 'Discount'> <#else>
<#assign amount11 = amount11 + item.amount > </#if>
<#if item.itemtype == 'Discount'><#assign amount22 = amount22 + item.amount ></#if>
<#if item.itemtype == 'OthCharge'><#assign amount33 = amount33 + item.amount > </#if>
<#assign subtotalamount11 = amount11 + amount22 + amount33>
<#if item.itemtype == 'OthCharge' || item.itemtype == 'Discount'> <#else>
<!--<#assign taxamount11 = subtotalamount11 * 0.00 >--> </#if>
<#assign totalamount11 = taxamount11 + subtotalamount11 >
</#if>
</#list>
<#assign amount111 = 0 ><#assign amount222 = 0 ><#assign amount333 = 0 ><#assign subtotalamount111 = 0 > <#assign taxamount111 = 0 ><#assign totalamount111 = 0>
<#list record.item as item>
<#if item.taxcode == 'GR_VAT_13_EXPENSES'>
<#if item.itemtype == 'OthCharge' || item.itemtype == 'Discount'> <#else>
<#assign amount111 = amount111 + item.amount > </#if>
<#if item.itemtype == 'Discount'><#assign amount222 = amount222 + item.amount ></#if>
<#if item.itemtype == 'OthCharge'><#assign amount333 = amount333 + item.amount > </#if>
<#assign subtotalamount111 = amount111 + amount222 + amount333>
<#if item.itemtype == 'OthCharge' || item.itemtype == 'Discount'> <#else>
<!--<#assign taxamount111 =subtotalamount111 * 0.13> --></#if>
<#assign totalamount111 = taxamount111 + subtotalamount111 >
</#if>
</#list>
<#assign amount1111 = amount1 + amount11 + amount111 ><#assign amount2222 = amount2 + amount22 + amount222 ><#assign amount3333 = amount3 + amount33 + amount333 ><#assign subtotalamount1111 = subtotalamount1 + subtotalamount11 + subtotalamount111> <#assign taxamount1111 = taxamount1 + taxamount11 + taxamount111 ><#assign totalamount1111 = totalamount1 + totalamount11 + totalamount111>
<table style="margin-top:-20px;padding-top:-4px;"><tr> <th colspan="5" ><p align="center" ></p></th>
<th colspan="10" style="align: right;font-size:8px;"><p align="center"><b>%VAT</b></p></th>
<th colspan="10" style="align: right;font-size:8px;"><p align="center"><b>INITIAL AMOUNT</b></p></th>
<th colspan="7" style="align: right;font-size:8px;"><p align="center"><b>DISCOUNT</b></p></th>
<th colspan="7" style="align: right;font-size:8px;"><p align="center"><b>CHARGES</b></p></th>
<th colspan="7" style="align: right;font-size:8px;"><p align="center"><b>SUBTOTAL</b></p></th>
<th colspan="7" style="align: right;font-size:8px;"><p align="center"><b>VAT</b></p></th>
<th colspan="7" style="align: right;font-size:8px;"><p align="center"><b>TOTAL AMOUNT</b></p></th></tr>
<tr><th colspan="5" ><p align="center" ></p></th> </tr><#if amount1 gt 0 > <tr> <th colspan="5" ><p align="center" ></p></th>
<th colspan="10" style="align: right;LINE-HEIGHT:2px;padding-top: -15px;"><p align="center">24.0%</p></th>
<th colspan="10" style="align: right;LINE-HEIGHT:2px;padding-top: -15px;"><p align="center">${currency[record.currency]}${amount1}</p></th>
<th colspan="7" style="align: right;LINE-HEIGHT:2px;padding-top: -15px;"><p align="center"><#if amount2?contains("-")> ${currency[record.currency]}${amount2?substring(1)}<#else>${currency[record.currency]}${amount2}</#if></p></th>
<th colspan="7" style="align: right;LINE-HEIGHT:2px;padding-top: -15px;"><p align="center">${currency[record.currency]}${amount3}</p></th>
<th colspan="7" style="align: right;LINE-HEIGHT:2px;padding-top: -15px;"><p align="center">${currency[record.currency]}${subtotalamount1}</p></th>
<th colspan="7" style="align: right;LINE-HEIGHT:2px;padding-top: -15px;"><p align="center"><#assign taxamount1 = subtotalamount1 *0.24 >${currency[record.currency]}${taxamount1}</p></th>
<th colspan="7" style="align: right;LINE-HEIGHT:2px;padding-top: -15px;"><p align="center"><#assign totalamount1 = taxamount1 + subtotalamount1 >${currency[record.currency]}${totalamount1}</p></th></tr></#if>
<#if amount11 gt 0> <tr> <th colspan="5" ><p align="center" ></p></th>
<th colspan="10" style="align: right;LINE-HEIGHT:2px;padding-top: -15px;"><p align="center">0.0%</p></th>
<th colspan="10" style="align: right;LINE-HEIGHT:2px;padding-top: -15px;"><p align="center">${currency[record.currency]}${amount11}</p></th>
<th colspan="7" style="align: right;LINE-HEIGHT:2px;padding-top: -15px;"><p align="center"><#if amount22?contains("-")> ${currency[record.currency]}${amount22?substring(1)}<#else>${currency[record.currency]}${amount22}</#if></p></th>
<th colspan="7" style="align: right;LINE-HEIGHT:2px;padding-top: -15px;"><p align="center">${currency[record.currency]}${amount33}</p></th>
<th colspan="7" style="align: right;LINE-HEIGHT:2px;padding-top: -15px;"><p align="center">${currency[record.currency]}${subtotalamount11}</p></th>
<th colspan="7" style="align: right;LINE-HEIGHT:2px;padding-top: -15px;"><p align="center"><#assign taxamount11 = subtotalamount11 *0.00 >${currency[record.currency]}${taxamount11}</p></th>
<th colspan="7" style="align: right;LINE-HEIGHT:2px;padding-top: -15px;"><p align="center"><#assign totalamount11 = taxamount11 + subtotalamount11 >${currency[record.currency]}${totalamount11}</p></th></tr>
</#if>
<#if amount111 gt 0 > <tr><th colspan="5" ><p align="center" ></p></th>
<th colspan="10" style="align: right;LINE-HEIGHT:2px;padding-top: -15px;"><p align="center">13.0%</p></th>
<th colspan="10" style="align: right;LINE-HEIGHT:2px;padding-top: -15px;"><p align="center">${currency[record.currency]}${amount111}</p></th>
<th colspan="7" style="align: right;LINE-HEIGHT:2px;padding-top: -15px;"><p align="center"><#if amount222?contains("-")> ${currency[record.currency]}${amount222?substring(1)}<#else>${currency[record.currency]}${amount222}</#if></p></th>
<th colspan="7" style="align: right;LINE-HEIGHT:2px;padding-top:15px;"><p align="center">${currency[record.currency]}${amount333}</p></th>
<th colspan="7" style="align: right;LINE-HEIGHT:2px;padding-top:15px;"><p align="center">${currency[record.currency]}${subtotalamount111}</p></th>
<th colspan="7" style="align: right;LINE-HEIGHT:2px;padding-top:15px;"><p align="center">${currency[record.currency]}<#assign taxamount111 = subtotalamount111 *0.13 >${taxamount111}</p></th>
<th colspan="7" style="align: right;LINE-HEIGHT:2px;padding-top:15px;"><p align="center"><#assign totalamount111 = taxamount111 + subtotalamount111 >${currency[record.currency]}${totalamount111}</p></th></tr></#if>
<tr> <th colspan="5" ><p align="center" ></p></th>
<th colspan="10" style="align: right;LINE-HEIGHT:5px;padding-top:15px;"><p align="center"><b></b></p></th>
<th colspan="10" style="align: right;LINE-HEIGHT:5px;padding-top:15px;"><p align="center"><b><u>${currency[record.currency]}${amount1111}</u></b></p></th>
<th colspan="7" style="align: right;LINE-HEIGHT:5px;padding-top:15px;"><p align="center"><b><u><#if amount2222?contains("-")> ${currency[record.currency]}${amount2222?substring(1)}<#else>${currency[record.currency]}${amount2222}</#if></u></b></p></th>
<th colspan="7" style="align: right;LINE-HEIGHT:5px;padding-top:15px;"><p align="center"><b><u>${currency[record.currency]}${amount3333}</u></b></p></th>
<th colspan="7" style="align: right;LINE-HEIGHT:5px;padding-top:15px;"><p align="center"><b><u>${currency[record.currency]}${subtotalamount1111}</u></b></p></th>
<th colspan="7" style="align: right;LINE-HEIGHT:5px;padding-top:15px;"><p align="center"><b><u> ${currency[record.currency]}<#assign taxamount1111 = taxamount111 + taxamount11 + taxamount1 >${taxamount1111}</u></b></p></th>
<th colspan="7" style="align: right;LINE-HEIGHT:5px;padding-top:15px;"><p align="center"><b><u><#assign totalamount1111 = totalamount111 + totalamount11 + totalamount1 >${currency[record.currency]}${totalamount1111}</u></b></p></th></tr>
</table>
</#if><table style="page-break-inside: avoid;"><tr><td><p font-size="6"><b> COMMENTS:</b></p></td></tr>
<tr><td> <table style="padding-top:7px;page-break-inside: avoid;"><tr><td>
<div align="left" id="textbox">
<p style="padding-left:5px;padding-right:5px;">${record.memo}</p>
</div></td></tr></table></td></tr></table>
</body>
</pdf>