MT#7843 change svg template to new vat variables

new ones are: customer.vat_rate and customer.add_vat
gjungwirth/voicemail_number
Gerhard Jungwirth 11 years ago
parent 54810af842
commit 41416d2d10

@ -193,6 +193,8 @@ sub get_dummy_data {
customer => { customer => {
id => int(rand(10000))+10000, id => int(rand(10000))+10000,
external_id => 'Resext1234567890', external_id => 'Resext1234567890',
vat_rate => 20,
add_vat => 0,
}, },
custcontact => { custcontact => {
gender => 'male', gender => 'male',
@ -232,8 +234,6 @@ sub get_dummy_data {
interval_unit => 'month', interval_unit => 'month',
interval_count => 1, interval_count => 1,
currency => 'EUR', currency => 'EUR',
vat_rate => 20,
vat_included => 0,
}, },
invoice => { invoice => {
period_start => NGCP::Panel::Utils::DateTime::current_local()->truncate(to => 'month'), period_start => NGCP::Panel::Utils::DateTime::current_local()->truncate(to => 'month'),

@ -119,7 +119,7 @@
<line x1="22mm" y1="199mm" x2="190mm" y2="199mm" style="stroke:#000000;stroke-width:0.2mm;" /> <line x1="22mm" y1="199mm" x2="190mm" y2="199mm" style="stroke:#000000;stroke-width:0.2mm;" />
<text x="22mm" y="203mm" font-family="Verdana" font-size="8pt" font-weight="bold">Total Summary</text> <text x="22mm" y="203mm" font-family="Verdana" font-size="8pt" font-weight="bold">Total Summary</text>
<text text-anchor="end" x="190mm" y="203mm" font-family="Verdana" font-size="8pt" font-weight="bold">[% netfee %]</text> <text text-anchor="end" x="190mm" y="203mm" font-family="Verdana" font-size="8pt" font-weight="bold">[% netfee %]</text>
<text x="22mm" y="207mm" font-family="Verdana" font-size="8pt" font-weight="bold">VAT ([% billprof.vat_rate %]%)</text> <text x="22mm" y="207mm" font-family="Verdana" font-size="8pt" font-weight="bold">VAT ([% customer.vat_rate %]%)</text>
<text text-anchor="end" x="190mm" y="207mm" font-family="Verdana" font-size="8pt" font-weight="bold">[% vatfee %]</text> <text text-anchor="end" x="190mm" y="207mm" font-family="Verdana" font-size="8pt" font-weight="bold">[% vatfee %]</text>
<line x1="22mm" y1="209mm" x2="190mm" y2="209mm" style="stroke:#000000;stroke-width:0.2mm;" /> <line x1="22mm" y1="209mm" x2="190mm" y2="209mm" style="stroke:#000000;stroke-width:0.2mm;" />
<text x="22mm" y="213mm" font-family="Verdana" font-size="8pt" font-weight="bold">Amount Due</text> <text x="22mm" y="213mm" font-family="Verdana" font-size="8pt" font-weight="bold">Amount Due</text>

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Loading…
Cancel
Save