#foreach($acco in $accommodationList) #set($intime = $acco.accommodation_checkintime ) #set($outtime = $acco.accommodation_checkouttime ) #end
#foreach( $bill in $groupedBillList ) #if($bill.bill_resource_type == "accommodationtype") #set($acco_total = $bill.bill_total ) #end #if($bill.bill_resource_type == "special") #set($acco_special = $bill.bill_type ) #set($acco_total_special = $bill.bill_total ) #set($chk = 1) #end #if($bill.bill_linetype == "70") #set($acco_all_total = $bill.bill_total) #end #end #foreach( $bill in $billList ) #if($bill.bill_linetype == "70") #set($all_total = $bill.bill_total) #end #end #* Bill total excluding resource type special *# #set($billtotal= 0) #foreach($bill in $billList ) #if($bill.bill_payer_type == "p") #if($bill.bill_linetype == "10") #if($bill.bill_resource_type !="special") #set($bill_total = $bill.bill_total.replaceAll(",", "")) #set($billtotal= $billtotal + $convert.toNumber($bill_total)) #end #end #end #end #set($billtotal = $billtotal + "") #set($final="") #set($leftpart="") #set($rightpart="") #if($billtotal.indexOf(',') != -1 || $billtotal.indexOf('.') != -1) #set($leftpart = $billtotal.substring(0,$billtotal.indexOf('.'))) #set($in = $billtotal.indexOf('.')+1) #set($rightpart = $billtotal.substring($in)) #else #set($leftpart = $billtotal) #end #if($leftpart.length() > 3) #set($end = $leftpart.length() - 4) #set($beg = 0) #set($range = [$end..$beg]) #foreach($i in $range) #set($j = $i + 1) #set($final = $leftpart.substring(0,$j)+","+$leftpart.substring($j)) #set($leftpart = $final) #set($i = $i - 3) #end #end #if($rightpart.length() == 0) #set($rightpart = "00") #elseif($rightpart.length()== 1) #set($rightpart = $rightpart + "0") #end #set($final = $leftpart + "." + $rightpart) #* Bill total excluding resource type special end *# #set($dueAmount= "") #foreach( $bill in $billList ) #if($bill.bill_payer_type == "p") #if ($bill.bill_linetype == "90") #set($billTotal= $convert.toNumber($bill.bill_total)) #if($billTotal > 0) #set($dueAmount= "true") #end #end #end #end
<html> <head> <title></title> </head> <body style="padding-left:25px"> #if($environment == "") #else <span style="font-size:16px"><b>TEST ENVIRONMENT INVOICE</b></span> #end #foreach ($doc in $documentTagList) #if($convert.toNumber($doc.printed_count) > 1) <br/><br/> <b>Duplicate </b> #end #end <table width="625" border="0" cellspacing="0" cellpadding="0"> <tbody style="font-family:Arial, Helvetica, sans-serif; font-size:13px; color:#3B3131; line-height:18px"> <tr> <td colspan="3" align="right" style="padding-right:10px"><img src="https://static.newyse.org/email/siblu/siblu-logo.jpg" /> </td> </tr> <tr> <td width="10" > </td> <td> <table width="595" border="0" cellspacing="0" cellpadding="0"> <tbody style="font-family:Arial, Helvetica, sans-serif; font-size:13px; color:#3B3131; line-height:18px"> <tr> <td colspan="3"> <table width="595" border="0" cellspacing="0" cellpadding="0"> <tbody style="font-family:Arial, Helvetica, sans-serif; font-size:13px; color:#3B3131; line-height:18px"> <tr> <td valign="top"> <b>#if( $!paying_customer_company_name) $paying_customer_company_name #end #if($!paying_customer_vat_number) / $paying_customer_vat_number #end</b><br/> $paying_customer_title $paying_customer_firstname $paying_customer_middlename $paying_customer_lastname<br/> #if($paying_customer_address1 !="" || $paying_customer_housenumber !="" || $paying_customer_housenumbersuffix != "") $paying_customer_address1 $paying_customer_housenumber $paying_customer_housenumbersuffix <br/> #end #if( $paying_customer_zipcode !="" || $paying_customer_city != "") $paying_customer_zipcode $paying_customer_city <br/> #end #if($paying_customer_country != "") $paying_customer_country<br/> #end<br/> #foreach ($doc in $documentTagList) #if( $doc.document_id != "") Invoice number: $doc.document_id<br/> #end #break #end Invoice Date: $current_date <br/> Reservation number: $reservation_reservationnumber<br/> </td> <td valign="top"> </td> </tr> </tbody> </table> </td> </tr> <tr> <td colspan="3"> </td> </tr> <tr> <td colspan="3"> </td> </tr> <tr> <td colspan="3" style="padding-bottom:8px"><b>YOUR HOLIDAY DETAILS:</b></td> </tr> <tr> <td colspan="3"> <hr style="border-bottom:1px solid #e5e5e5" /></td> </tr> <tr> <td width="160" height="25" valign="top"><b>Village Name:</b></td> <td valign="top">$reservation_resortname </td> <td> </td> </tr> <tr> <td width="250" valign="top"><b>Unit Type:</b></td> <td valign="top"> <table width="400" border="0" cellspacing="0" cellpadding="0"> <tbody> #foreach($acco in $accommodationList) #if (!$acco.accommodation_is_imply) <tr> <td valign="top" height="25"> $acco.accommodation_name#if($acco.object_preference == "1"), $acco.accommodation_object #end <br/> </td> </tr> #set( $prevAcco = $acco.accommodation_object_forced ) #end #end </tbody> </table> </td> <td> </td> </tr> <tr> <td width="160" height="25" valign="top"><b>Passenger Information:</b></td> <td valign="top"> $reservation_numberofpersons, #foreach( $subject in $travelList ) #if( $subject.firstname != "" || $subject.lastname != "") $subject.firstname $subject.lastname, #end #end </td> <td> </td> </tr> <tr> <td width="160" height="25" valign="top"><b>Arrival date: </b></td> <td valign="top">$reservation_arrivaldate </td> <td> </td> </tr> <tr> <td width="160" height="25" valign="top"><b>Departure Date: </b></td> <td valign="top">$reservation_departuredate </td> <td> </td> </tr> <tr> <td colspan="3"> </td> </tr> #foreach($res in $resourceList) <tr> <td colspan="3" style="padding-bottom:10px"> $res.infotext </td> </tr> #end #foreach( $memo in $memoList ) <tr> <td colspan="3" style="padding-bottom:10px"> <b>$memo.content</b></td> </tr> #end <tr> <td colspan="3" style="padding-bottom:8px"><b>Invoice details:</b></td> </tr> <tr> <td colspan="3"> <hr style="border-bottom:1px solid #e5e5e5" /></td> </tr> <tr> <td colspan="3"> </td> </tr> <tr> <td colspan="3"> ${templateTool.parseTemplate(1504003)} #*VAT Bill Paying Customer*# </td> </tr> <tr> <td colspan="3"> </td> </tr> <tr> <td colspan="3"> ${templateTool.parseTemplate(1504004)} #*VAT Calculation Paying Customer*# </td> </tr> <tr> <td colspan="3"> </td> </tr> <tr> <td colspan="3"> CLIENT on the behalf of </td> </tr> <tr> <td colspan="3"> <hr style="border-bottom:1px solid #e5e5e5" /></td> </tr> <tr> <td colspan="3"> CLIENT DETAILS </td> </tr> <tr> <td colspan="3"> </td> </tr> <tr> <td colspan="3" align="center"> #foreach ($doc in $documentTagList) $doc.document_type B525/0420-1 $doc.signature V1.1 #end </td> </tr> </tbody> </table> </td> <td width="10"> </td> </tr> </tbody> </table> </body> </html> |