<!--NET value--> #*VAT13%*# #set($VAT13 = 0) #foreach( $bill_excl_vat in $billList_excl_vat ) #if($bill_excl_vat.bill_payer_type == "c") #if(($bill_excl_vat.bill_linetype == "10") && ($bill_excl_vat.bill_vat_rate == "13.0")) #set($VAT13 = $VAT13 + $convert.toNumber( $bill_excl_vat.bill_total_excl_vat_without_format )) #set($NET13= $math.roundTo(2,$VAT13)) #set($val13 = "$NET13") #set($comma = ",") #set($net13 = $val13 ) #end #end #end #*VAT5%*# #set($VAT5 = 0) #foreach( $bill_excl_vat in $billList_excl_vat ) #if($bill_excl_vat.bill_payer_type == "c") #if(($bill_excl_vat.bill_linetype == "10") && ($bill_excl_vat.bill_vat_rate == "5.5")) #* #set($VAT5 = $VAT5 + $convert.toNumber($bill_excl_vat.bill_total)) *# #set($VAT5 = $VAT5 + $convert.toNumber( $bill_excl_vat.bill_total_excl_vat_without_format )) #set($NET5= $math.roundTo(2,$VAT5)) #set($val5 = "$NET5") #set($comma = ",") #set($net5 = $val5 ) #end #end #end #*VAT10%*# #set($VAT10 = 0) #foreach( $bill_excl_vat in $billList_excl_vat ) #if($bill_excl_vat.bill_payer_type == "c") #if(($bill_excl_vat.bill_linetype == "10") && ($bill_excl_vat.bill_vat_rate == "10.0")) #* #set($VAT10 = $VAT10 + $convert.toNumber($bill_excl_vat.bill_total)) *# #set($VAT10 = $VAT10 + $convert.toNumber( $bill_excl_vat.bill_total_excl_vat_without_format )) #set($NET10= $math.roundTo(2,$VAT10)) #set($val10 = "$NET10") #set($comma = ",") #set($net10 = $val10 ) #end #end #end #*VAT20%*# #set($VAT20 = 0) #foreach( $bill_excl_vat in $billList_excl_vat ) #if($bill_excl_vat.bill_payer_type == "c") #if(($bill_excl_vat.bill_linetype == "10") && ($bill_excl_vat.bill_vat_rate == "20.0")) #* #set($VAT20 = $VAT20 + $convert.toNumber($bill_excl_vat.bill_total)) *# #set($VAT20 = $VAT20 + $convert.toNumber( $bill_excl_vat.bill_total_excl_vat_without_format )) #set($NET20= $math.roundTo(2,$VAT20)) #set($val20 = "$NET20") #set($comma = ",") #set($net20 = $val20) #end #end #end #*VAT0%*# #set($VAT0 = 0) #foreach( $bill_excl_vat in $billList_excl_vat ) #if($bill_excl_vat.bill_payer_type == "c") #if(($bill_excl_vat.bill_linetype == "10") && ($bill_excl_vat.bill_vat_rate == "0.0")) #* #set($VAT0 = $VAT0 + $convert.toNumber($bill_excl_vat.bill_total)) *# #set($VAT0 = $VAT0 + $convert.toNumber( $bill_excl_vat.bill_total_excl_vat_without_format )) #set($NET0= $math.roundTo(2,$VAT0)) #set($val0 = "$NET0") #set($comma = ",") #set($net0 = $val0 ) #end #end #end <!-- End of NET value --> <!-- Gross value--> #set($gross0 = 0) #foreach( $bill_excl_vat in $billList_excl_vat ) #if($bill_excl_vat.bill_payer_type == "c") #if(($bill_excl_vat.bill_linetype == "10") && ($bill_excl_vat.bill_vat_rate == "0.0")) #set($gross0 = $gross0 + $convert.toNumber($bill_excl_vat.bill_total_without_format)) #set($gross-value0= $math.roundTo(2,$gross0)) #set($grossrate0 = "$gross-value0") #set($comma = ",") #set($grossamt0 = $grossrate0 ) #end #end #end #set($gross5= 0) #foreach( $bill_excl_vat in $billList_excl_vat ) #if($bill_excl_vat.bill_payer_type == "c") #if(($bill_excl_vat.bill_linetype == "10") && ($bill_excl_vat.bill_vat_rate == "5.5")) #set($gross5 = $gross5 + $convert.toNumber($bill_excl_vat.bill_total_without_format)) #set($gross-value5= $math.roundTo(2,$gross5)) #set($grossrate5 = "$gross-value5") #set($comma = ",") #set($grossamt5 = $grossrate5 ) #end #end #end #set($gross10= 0) #foreach( $bill_excl_vat in $billList_excl_vat ) #if($bill_excl_vat.bill_payer_type == "c") #if(($bill_excl_vat.bill_linetype == "10") && ($bill_excl_vat.bill_vat_rate == "10.0")) #set($gross10 = $gross10 + $convert.toNumber($bill_excl_vat.bill_total_without_format)) #set($gross-value10= $math.roundTo(2,$gross10)) #set($grossrate10 = "$gross-value10") #set($comma = ",") #set($grossamt10 = $grossrate10) #end #end #end #set($gross13= 0) #foreach( $bill_excl_vat in $billList_excl_vat ) #if($bill_excl_vat.bill_payer_type == "c") #if(($bill_excl_vat.bill_linetype == "10") && ($bill_excl_vat.bill_vat_rate == "13.0")) #set($gross13 = $gross13 + $convert.toNumber($bill_excl_vat.bill_total_without_format)) #set($gross-value13= $math.roundTo(2,$gross13)) #set($grossrate13 = "$gross-value13") #set($comma = ",") #set($grossamt13 = $grossrate13 ) #end #end #end #set($gross20= 0) #foreach( $bill_excl_vat in $billList_excl_vat ) #if($bill_excl_vat.bill_payer_type == "c") #if(($bill_excl_vat.bill_linetype == "10") && ($bill_excl_vat.bill_vat_rate == "20.0")) #set($gross20 = $gross20 + $convert.toNumber($bill_excl_vat.bill_total_without_format)) #set($gross-value20= $math.roundTo(2,$gross20)) #set($grossrate20 = "$gross-value20") #set($comma = ",") #set($grossamt20 = $grossrate20) #end #end #end <!-- End of Gross value-->
<!-- VAT value--> #set($VATrate-value5 = 0) #set($VATrate5 = $convert.toNumber($grossrate5)-$convert.toNumber($NET5)) #set($VATrate-value5 = $math.roundTo(2,$VATrate5)) #set($rate5 = "$VATrate-value5") #set($comma = ",") #set($vatrate5 = $rate5 ) #set($VATrate-value10 = 0) #set($VATrate10 = $convert.toNumber($grossrate10)-$convert.toNumber($NET10)) #set($VATrate-value10 = $math.roundTo(2,$VATrate10)) #set($rate10 = "$VATrate-value10") #set($comma = ",") #set($vatrate10 = $rate10 ) #set($VATrate-value13 = 0) #set($VATrate13 = $convert.toNumber($grossrate13)-$convert.toNumber($NET13)) #set($VATrate-value13 = $math.roundTo(2,$VATrate13)) #set($rate13 = "$VATrate-value13") #set($comma = ",") #set($vatrate13 = $rate13) #set($VATrate-value20 = 0) #set($VATrate20 = $convert.toNumber($grossrate20)-$convert.toNumber($NET20)) #set($VATrate-value20 = $math.roundTo(2,$VATrate20)) #set($rate20 = "$VATrate-value20") #set($comma = ",") #set($vatrate20 = $rate20) <!--End of VAT value--> #set($NETtotal = $convert.toNumber($VAT0) + $convert.toNumber($VAT5) + $convert.toNumber($VAT10) + $convert.toNumber($VAT13) + $convert.toNumber($VAT20)) #set($NETtotal-value= $math.roundTo(2,$NETtotal)) #set($nettotal = "$NETtotal-value") #set($comma = ",") #set($netfinal = $nettotal )
#set($VATtotal = $convert.toNumber($rate5) + $convert.toNumber($rate10) + $convert.toNumber($rate13) + $convert.toNumber($rate20)) #set($VATtotal-value= $math.roundTo(2,$VATtotal)) #set($vattotal = "$VATtotal-value") #set($comma = ",") #set($vatfinal = $vattotal) #set($GROSStotal = $convert.toNumber($gross0) + $convert.toNumber($gross5) + $convert.toNumber($gross10) + $convert.toNumber($gross13) + $convert.toNumber($gross20)) #set($GROSStotal-value= $math.roundTo(3,$GROSStotal)) #set($grosstotal = "$GROSStotal-value") #set($comma = ",") #set($grossfinal = $grosstotal ) <table width="700" border="0" cellspacing="0" cellpadding="0" style="padding-top:10px"> <tbody style="font-family:Arial, Helvetica, sans-serif; font-size:13px; color:#3B3131; line-height:18px"> <tr> <td width="400"> <table border="0" cellspacing="0" cellpadding="0"> <tbody style="font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#3B3131; line-height:14px"> <tr> <td width="100">VAT rate </td> <td width="100">Net</td> <td width="100">VAT</td> <td width="100">Gross</td> </tr> <tr> <td colspan="4"><hr /></td> </tr> <tr> <td width="100">0%</td> <td width="100">#if(!$net0) $reservation_dc_currency_symbol 0.00 #else $reservation_dc_currency_symbol $number.currency($net0).replace("$", "") #end </td> <td width="100">$reservation_dc_currency_symbol 0.00 </td> <td width="100">#if(!$grossamt0 )$reservation_dc_currency_symbol 0.00 #else $reservation_dc_currency_symbol $number.currency($grossamt0).replace("$", "") #end </td> </tr> <tr> <td width="100">5.5%</td> <td width="100">#if(!$net5) $reservation_dc_currency_symbol 0.00 #else $reservation_dc_currency_symbol $number.currency($vatrate5).replace("$", "") #end </td> <td width="100">#if($VATrate-value5 == "0") $reservation_dc_currency_symbol 0.00 #else $reservation_dc_currency_symbol $number.currency($vatrate5).replace("$", "") #end </td> <td width="100">#if(!$grossamt5 ) $reservation_dc_currency_symbol 0.00 #else $reservation_dc_currency_symbol $number.currency($grossamt5).replace("$", "") #end </td> </tr> <tr> <td width="100">10%</td> <td width="100">#if(!$net10) $reservation_dc_currency_symbol 0.00 #else $reservation_dc_currency_symbol $number.currency($net10).replace("$", "") #end </td> <td width="100">#if($VATrate-value10 == "0") $reservation_dc_currency_symbol 0.00 #else $reservation_dc_currency_symbol $number.currency($vatrate10).replace("$", "") #end </td> <td width="100">#if(!$grossamt10 ) $reservation_dc_currency_symbol 0.00 #else $reservation_dc_currency_symbol $number.currency($grossamt10).replace("$", "") #end </td> </tr> #* <tr> <td width="100">13%</td> <td width="100">#if(!$net13) $reservation_dc_currency_symbol 0.00 #else $reservation_dc_currency_symbol $number.currency($net13).replace("$", "") #end </td> <td width="100">#if($VATrate-value13 == "0") $reservation_dc_currency_symbol 0.00 #else $reservation_dc_currency_symbol $number.currency($vatrate13).replace("$", "") #end </td> <td width="100">#if(!$grossamt13) $reservation_dc_currency_symbol 0.00 #else $reservation_dc_currency_symbol $number.currency($grossamt13).replace("$", "") #end </td> </tr> *# <tr> <td width="100">20%</td> <td width="100">#if(!$net20) $reservation_dc_currency_symbol 0.00 #else $reservation_dc_currency_symbol $number.currency($net20).replace("$", "") #end </td> <td width="100">#if($VATrate-value20 == "0") $reservation_dc_currency_symbol 0.00 #else $reservation_dc_currency_symbol $number.currency($vatrate20).replace("$", "") #end </td> <td width="100">#if(!$grossamt20 ) $reservation_dc_currency_symbol 0.00 #else $reservation_dc_currency_symbol $number.currency($grossamt20).replace("$", "") #end </td> </tr> <tr> <td> </td> <td colspan="3"><hr /></td> </tr> <tr> <td width="100"> </td> <td width="100">$reservation_dc_currency_symbol $number.currency($netfinal).replace("$", "") </td> <td width="100">#if(!$vatfinal)$reservation_dc_currency_symbol 0.00 #else $reservation_dc_currency_symbol $number.currency($vatfinal).replace("$", "") #end </td> <td width="100"> $reservation_dc_currency_symbol $number.currency($grossfinal).replace("$", "") </td> </tr> <tr> <td> </td> <td colspan="3"><hr /></td> </tr> </tbody> </table> </td> </tr> </tbody> </table>
|