summaryrefslogtreecommitdiff
path: root/templates/spiff/invoice.html
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2008-12-02 17:04:49 +0100
committerJonas Smedegaard <dr@jones.dk>2008-12-02 17:11:56 +0100
commitc89d5ee9922cafa39f50b65080995bc51dda0536 (patch)
treeec92549b6fea41ffefca8bf99de268e1a1266753 /templates/spiff/invoice.html
parent3e8b794284b716e46d5ed59f5ae4425e8b764351 (diff)
Add custom templates.
Diffstat (limited to 'templates/spiff/invoice.html')
-rw-r--r--templates/spiff/invoice.html276
1 files changed, 276 insertions, 0 deletions
diff --git a/templates/spiff/invoice.html b/templates/spiff/invoice.html
new file mode 100644
index 00000000..d3f5f55a
--- /dev/null
+++ b/templates/spiff/invoice.html
@@ -0,0 +1,276 @@
+<body bgcolor="white">
+<table width="100%">
+<tr valign="bottom">
+<td width="10">&nbsp;</td>
+<td>
+<table width="100%" cellspacing="0" cellpadding="0">
+
+<tr>
+<td>
+<table width="100%">
+<tr>
+ <?lsmb if shiptoname ?>
+<td colspan="2">
+ <?lsmb end shiptoname ?>
+ <?lsmb if not shiptoname ?>
+<td>
+ <?lsmb end shiptoname ?>
+</td>
+<td align="right" rowspan="3">
+<table>
+<tr valign="bottom">
+<th align="left" colspan="3">
+<h2>FAKTURA</h2>
+</th>
+</tr>
+
+<tr>
+<th align="right">Fakturanummer:</th>
+<td>&nbsp;</td>
+<td><?lsmb invnumber ?></td>
+</tr>
+
+<?lsmb if businessnumber ?>
+<tr>
+<th align="right">CVR-nummer:</th>
+<td>&nbsp;</td>
+<td><?lsmb businessnumber ?></td>
+</tr>
+<?lsmb end businessnumber ?>
+
+<tr>
+<th align="right">Fakturadato:</th>
+<td width="10">&nbsp;</td>
+<td><?lsmb invdate ?></td>
+</tr>
+
+<tr>
+<th align="right">Forfaldsdato:</th>
+<td width="10">&nbsp;</td>
+<td><?lsmb duedate ?></td>
+</tr>
+
+<!--
+<tr>
+<th align="left">Ekspedient:</th><td>&nbsp;</td><td><?lsmb username ?></td>
+</tr>
+-->
+
+<tr>
+<td>&nbsp;</td>
+</tr>
+</table>
+</td>
+</tr>
+
+<tr valign="bottom">
+<th align="left">Faktureringsadresse:</th>
+ <?lsmb if shiptoname ?>
+<th align="left">Leveringsadresse:</th>
+ <?lsmb end shiptoname ?>
+</tr>
+
+<!--
+andre mulige variable: contact, shiptocontact, shiptophone, shiptofax
+-->
+
+<tr valign="top">
+<td><b><?lsmb name ?></b><br>
+<?lsmb addr1 ?><br>
+<?lsmb addr2 ?><br>
+<?lsmb addr3 ?><br>
+<?lsmb addr4 ?></td>
+ <?lsmb if shiptoname ?>
+<td><b><?lsmb shiptoname ?></b><br>
+<?lsmb shiptoaddr1 ?><br>
+<?lsmb shiptoaddr2 ?><br>
+<?lsmb shiptoaddr3 ?><br>
+<?lsmb shiptoaddr4 ?></td>
+ <?lsmb end shiptoname ?>
+</tr>
+</table>
+</td>
+</tr>
+
+<tr>
+<td>&nbsp;</td>
+</tr>
+
+<tr>
+<td>
+<table width="100%">
+<tr>
+<!-- <th align=right>Løbenr.</th> -->
+<th align="left">Varenr.</th>
+<th align="left">Beskrivelse</th>
+<th colspan="2">Antal</th>
+<th>Pris</th>
+<th>Rabat</th>
+<th>Beløb</th>
+</tr>
+
+<?lsmb foreach number ?>
+<tr valign="top">
+<!--
+<td align=right><?lsmb runningnumber ?>.</td>
+Justér "colspan" hvis du inkluderer løbenummeret, så subtotal flyttes et felt til højre
+-->
+<td><?lsmb number ?></td>
+<td><?lsmb description ?></td>
+<td align="right"><?lsmb qty ?></td>
+<td><?lsmb unit ?></td>
+<td align="right"><?lsmb sellprice ?></td>
+<td align="right"><?lsmb discount ?></td>
+<td align="right"><?lsmb linetotal ?></td>
+</tr>
+ <?lsmb end number ?>
+
+<!--
+Du kan også bruge "netprice" istedet for "sellprice" hvis du ikke
+vil vise rabatten: netprice = sellprice - discount
+-->
+<tr>
+<td colspan="7">
+<hr noshade>
+</td>
+</tr>
+
+<tr>
+<?lsmb if taxincluded ?>
+<th colspan="5" align="right">Total:</th>
+<td colspan="2" align="right"><?lsmb invtotal ?></td>
+<?lsmb end taxincluded ?>
+<?lsmb if not taxincluded ?>
+<th colspan="5" align="right">Subtotal:</th>
+<td colspan="2" align="right"><?lsmb subtotal ?></td>
+<?lsmb end taxincluded ?></tr>
+
+<?lsmb foreach tax ?>
+<tr>
+<th colspan="5" align="right"><?lsmb taxdescription ?> (<?lsmb taxrate ?>%) af
+<?lsmb taxbase ?>:</th>
+<td colspan="2" align="right"><?lsmb tax ?></td>
+</tr>
+<?lsmb end tax ?>
+<?lsmb if paid ?>
+<tr>
+<th colspan="5" align="right">Allerede betalt:</th>
+<td colspan="2" align="right">- <?lsmb paid ?></td>
+</tr>
+<?lsmb end paid ?>
+
+<tr>
+<td colspan="5">&nbsp;</td>
+<td colspan="2">
+<hr noshade>
+</td>
+</tr>
+
+<tr>
+<td colspan="3">Betalingsfrist <b><?lsmb terms ?></b> dage</td>
+<th colspan="2" align="right">At betale:</th>
+<th colspan="2" align="right"><?lsmb total ?></th>
+</tr>
+
+<tr>
+<td colspan="5">&nbsp;</td>
+<td colspan="2">
+<hr noshade>
+</td>
+</tr>
+
+<tr>
+<td>&nbsp;</td>
+</tr>
+</table>
+</td>
+</tr>
+
+<tr>
+<td>
+<table width="100%">
+<tr valign="top">
+<?lsmb if notes ?>
+<td>Bemærkninger:</td>
+<td><?lsmb notes ?></td>
+<?lsmb end notes ?>
+<td>
+<table width="100%">
+ <?lsmb if taxincluded ?>
+<tr valign="top">
+<td align="right">Alle beløb er <strong>inklusive moms</strong>.</td>
+</tr>
+ <?lsmb end taxincluded ?>
+<!-- afgifts- og momskoder
+ <?lsmb foreach tax ?>
+<tr valign="top">
+<td align="right"><?lsmb taxdescription ?> noteret som <?lsmb taxnumber ?></td>
+</tr>
+ <?lsmb end tax ?>
+-->
+<tr valign="top">
+</td>
+<td align="right">Alle priser i <strong><?lsmb currency ?></strong><br>
+<?lsmb shippingpoint ?></td>
+</tr>
+</table>
+</tr>
+</table>
+</td>
+</tr>
+
+<tr>
+<td>&nbsp;</td>
+</tr>
+
+<tr>
+<td>
+<p>
+<b>Tak for handelen!</b>
+<p>
+<?lsmb company ?><br>
+<?lsmb address ?><br>
+<?lsmb if tel ?>
+Telefon: <?lsmb tel ?><br>
+<?lsmb end tel ?>
+ <?lsmb if fax ?>
+Fax: <?lsmb fax ?><br>
+ <?lsmb end fax ?>
+<p align="center">
+Indbetaling bedes ske til Merkur Andelskasse på konto 8401-1028192.
+</td>
+</tr>
+
+<tr>
+<td colspan="7">
+<hr noshade>
+</td>
+</tr>
+
+<tr>
+<td>
+<table width="100%">
+<tr valign="top">
+<td><font size="-3">Betalingsfrist <?lsmb terms ?> dage fra fakturadato.
+Betaling herefter påregnes 1.5% per påbegyndt måned startende
+<?lsmb duedate ?> og indtil det fulde beløb er betalt. Returnerede varer
+modregnes 10% i ekspeditionsgebyr. Et returnummer skal tildeles af
+<?lsmb company ?> før varer returneres. Returvarer skal forsendes
+forudbetalt og forsvarligt forsikret. <?lsmb company ?> kan ikke drages
+til ansvar for skade under transport.</font></td>
+<!-- Linje til underskrift
+<td width=150>
+X <hr noshade>
+</td>
+-->
+</tr>
+</table>
+</td>
+</tr>
+
+</table>
+</td>
+</tr>
+</table>
+</body>
+</html>