Guest User

Untitled

a guest
Apr 10th, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.96 KB | None | 0 0
  1. <!--// $Id: invoice.html,v 1.64 2007/10/16 07:04:23 alec Exp $ //-->
  2. <DIV{if !$invoice.last} STYLE="page-break-after: always"{/if}>
  3. <TABLE WIDTH="100%" CELLSPACING="3">
  4. <TR>
  5. <TD WIDTH="98%" CLASS="hdf" VALIGN="TOP">
  6. {number number=$invoice.number template=$invoice.template time=$invoice.cdate assign=number}
  7. {if $invoice.invoice}
  8. {number number=$invoice.invoice.number template=$invoice.invoice.template time=$invoice.invoice.cdate assign=number_ref}
  9. <B>{t 0=$number}Credit Note No. $0{/t}</B><BR>
  10. <B class="mdf">{t 0=$number_ref}for Invoice No. $0{/t}</B><BR>
  11. {else}
  12. <B>{t 0=$number}Invoice No. $0{/t}</B><BR>
  13. {/if}
  14. <B>{$type}</B>
  15. {if $duplicate}
  16. <BR><font class="sdr">{t}Duplicate draw-up date:{/t} {$smarty.now|date_format:"%Y/%m/%d"}</font>
  17. {/if}
  18. </TD>
  19. <TD WIDTH="1%" NOWRAP ALIGN="RIGHT" VALIGN="TOP" CLASS="sdr">
  20. {t}Data wystawienia:{/t}<BR>
  21. {t}Miejsce wystawienia:{/t}<BR>
  22. {t}Data dostawy towarów lub wykonania usługi:{/t}<BR>
  23. {t}Deadline:{/t}<BR>
  24. {t}Payment type:{/t}
  25. </TD>
  26. <TD WIDTH="1%" NOWRAP ALIGN="LEFT" VALIGN="TOP" CLASS="sdr">
  27. {$invoice.cdate|date_format:"%Y/%m/%d"}<BR>
  28. {if $_config.invoices.cplace neq ""} {$_config.invoices.cplace}{/if}<BR>
  29. {$invoice.sdate|date_format:"%Y/%m/%d"}<BR>
  30. {$invoice.pdate|date_format:"%Y/%m/%d"}<BR>
  31. {$invoice.paytypename}
  32. </TD>
  33. </TR>
  34. <TR>
  35. <TD COLSPAN="3" ALIGN="CENTER" WIDTH="100%">
  36. &nbsp;
  37. </TD>
  38. </TR>
  39. </TABLE>
  40. <TABLE WIDTH="100%" CELLSPACING="3">
  41. <TR>
  42. <TD WIDTH="66%" VALIGN="TOP">
  43. <B>{t}Seller:{/t}</B><BR>
  44. <BR>
  45. {$_config.invoices.header|replace:"\\n":"<BR>"}
  46. <BR><BR>
  47. <B>{t}Purchaser:{/t}</B><BR>
  48. <BR>
  49. {$invoice.name}<BR>
  50. {$invoice.address}<BR>
  51. {$invoice.zip} {$invoice.city}<BR>
  52. {if $invoice.ten neq ""}{t}TEN:{/t} {$invoice.ten}<BR>{/if}
  53. <BR>
  54. </TD>
  55. <TD WIDTH="34%" VALIGN="TOP" CLASS="sdr">
  56. <BR>
  57. <BR>
  58. <BR>
  59. <B>{$invoice.name}<BR>
  60. {if $invoice.serviceaddr neq ""}
  61. {$invoice.serviceaddr|replace:"\n":"<BR>"}<BR>
  62. {else}
  63. {$invoice.address}<BR>
  64. {$invoice.zip} {$invoice.city}<BR>
  65. {/if}</B>
  66. </TD>
  67. </TR>
  68. <TR>
  69. <TD WIDTH="100%" COLSPAN="2">
  70. &nbsp;<BR>
  71. &nbsp;
  72. </TD>
  73. </TR>
  74. </TABLE>
  75. <TABLE WIDTH="100%" CELLPADDING="3">
  76. <TR CLASS="FALL">
  77. <TD WIDTH="1%" CLASS="head" ALIGN="CENTER">
  78. <B>{t}No.{/t}</B>
  79. </TD>
  80. <TD WIDTH="{if $invoice.discount}90{else}91{/if}%" CLASS="head" ALIGN="CENTER">
  81. <B>{t}Name of Product, Commodity or Service:{/t}</B>
  82. </TD>
  83. <TD WIDTH="1%" CLASS="head" ALIGN="CENTER">
  84. <B>{t}Product ID:{/t}</B>
  85. </TD>
  86. <TD WIDTH="1%" CLASS="head" ALIGN="CENTER">
  87. <B>{t}Unit:{/t}</B>
  88. </TD>
  89. <TD WIDTH="1%" CLASS="head" ALIGN="CENTER">
  90. <B>{t}Amount:{/t}</B>
  91. </TD>
  92. {if $invoice.discount}
  93. <TD WIDTH="1%" CLASS="head" ALIGN="CENTER">
  94. <B>{t}Discount:{/t}</B>
  95. </TD>
  96. {/if}
  97. <TD WIDTH="1%" CLASS="head" ALIGN="CENTER">
  98. <B>{t}Unitary Net Value:{/t}</B>
  99. </TD>
  100. <TD WIDTH="1%" CLASS="head" ALIGN="CENTER">
  101. <B>{t}Net Value:{/t}</B>
  102. </TD>
  103. <TD WIDTH="1%" CLASS="head" ALIGN="CENTER">
  104. <B>{t}Tax Rate:{/t}</B>
  105. </TD>
  106. <TD WIDTH="1%" CLASS="head" ALIGN="CENTER">
  107. <B>{t}Tax Value:{/t}</B>
  108. </TD>
  109. <TD WIDTH="1%" CLASS="head" ALIGN="CENTER">
  110. <B>{t}Gross Value:{/t}</B>
  111. </TD>
  112. </TR>
  113. {if $invoice.invoice}
  114. <TR>
  115. <TD COLSPAN="{if $invoice.discount}11{else}10{/if}" CLASS="fbottom">
  116. <B>{t}Was:{/t}</B>
  117. </TD>
  118. </TR>
  119. {cycle values="grey,white" print=false}
  120. {counter start=0 print=false}
  121. {foreach from=$invoice.invoice.content item=item}
  122. <TR class="{cycle}">
  123. <TD WIDTH="1%" CLASS="FLR" ALIGN="RIGHT">{counter}.</TD>
  124. <TD WIDTH="{if $invoice.discount}90{else}91{/if}%" CLASS="FLR">
  125. {$item.description}
  126. </TD>
  127. <TD WIDTH="1%" CLASS="FLR">
  128. {$item.prodid}
  129. </TD>
  130. <TD WIDTH="1%" CLASS="FLR" ALIGN="CENTER">
  131. {$item.content}
  132. </TD>
  133. <TD WIDTH="1%" CLASS="FLR" ALIGN="CENTER">
  134. {$item.count|string_format:"%.2f"}
  135. </TD>
  136. {if $invoice.discount}
  137. <TD WIDTH="1%" CLASS="FLR" ALIGN="RIGHT" NOWRAP>
  138. {$item.discount|string_format:"%.2f"} %
  139. </TD>
  140. {/if}
  141. <TD WIDTH="1%" CLASS="FLR" ALIGN="RIGHT" NOWRAP>
  142. {$item.basevalue|money_format}
  143. </TD>
  144. <TD WIDTH="1%" CLASS="FLR" ALIGN="RIGHT" NOWRAP>
  145. {$item.totalbase|money_format}
  146. </TD>
  147. <TD WIDTH="1%" CLASS="FLR" ALIGN="RIGHT" NOWRAP>
  148. {$item.taxlabel}
  149. </TD>
  150. <TD WIDTH="1%" CLASS="FLR" ALIGN="RIGHT" NOWRAP>
  151. {$item.totaltax|money_format}
  152. </TD>
  153. <TD WIDTH="1%" CLASS="FLR" ALIGN="RIGHT" NOWRAP>
  154. {$item.total|money_format}
  155. </TD>
  156. </TR>
  157. {/foreach}
  158. <TR>
  159. <TD COLSPAN="{if $invoice.discount}7{else}6{/if}" ALIGN="RIGHT" CLASS="ftop" STYLE="text-align: right">
  160. <P ALIGN="RIGHT"><B>{t}Total:{/t}</B></P>
  161. </TD>
  162. <TD WIDTH="1%" ALIGN="RIGHT" CLASS="fall" NOWRAP>
  163. {$invoice.invoice.totalbase|money_format}
  164. </TD>
  165. <TD WIDTH="1%" CLASS="fall" ALIGN="RIGHT">
  166. <B>x</B>
  167. </TD>
  168. <TD WIDTH="1%" CLASS="fall" ALIGN="RIGHT" NOWRAP>
  169. {$invoice.invoice.totaltax|money_format}
  170. </TD>
  171. <TD WIDTH="1%" CLASS="fall" ALIGN="RIGHT" NOWRAP>
  172. {$invoice.invoice.total|money_format}
  173. </TD>
  174. </TR>
  175. <TR>
  176. <TD COLSPAN="{if $invoice.discount}7{else}6{/if}" ALIGN="RIGHT">
  177. &nbsp;
  178. </TD>
  179. <TD COLSPAN="4" WIDTH="4%" ALIGN="CENTER">
  180. <B>{t}in it:{/t}</B>
  181. </TD>
  182. </TR>
  183. {foreach from=$invoice.invoice.taxest item=item}
  184. <TR>
  185. <TD COLSPAN="{if $invoice.discount}7{else}6{/if}" ALIGN="RIGHT">
  186. &nbsp;
  187. </TD>
  188. <TD WIDTH="1%" ALIGN="RIGHT" CLASS="fall" NOWRAP>
  189. {$item.base|money_format}
  190. </TD>
  191. <TD WIDTH="1%" CLASS="fall" ALIGN="RIGHT">
  192. {$item.taxlabel}
  193. </TD>
  194. <TD WIDTH="1%" CLASS="fall" ALIGN="RIGHT" NOWRAP>
  195. {$item.tax|money_format}
  196. </TD>
  197. <TD WIDTH="1%" CLASS="fall" ALIGN="RIGHT" NOWRAP>
  198. {$item.total|money_format}
  199. </TD>
  200. </TR>
  201. {/foreach}
  202. <TR>
  203. <TD COLSPAN="{if $invoice.discount}11{else}10{/if}" CLASS="fbottom">
  204. <B>{t}Corrected to:{/t}</B>
  205. </TD>
  206. </TR>
  207. {/if}
  208. {cycle values="grey,white" print=false name=cycle2}
  209. {counter start=0 print=false}
  210. {foreach from=$invoice.content item=item}
  211. <TR class="{cycle name=cycle2}">
  212. <TD WIDTH="1%" CLASS="FLR" ALIGN="RIGHT">{counter}.</TD>
  213. <TD WIDTH="{if $invoice.discount}90{else}91{/if}%" CLASS="FLR">
  214. {$item.description}
  215. </TD>
  216. <TD WIDTH="1%" CLASS="FLR">
  217. {$item.prodid}
  218. </TD>
  219. <TD WIDTH="1%" CLASS="FLR" ALIGN="CENTER">
  220. {$item.content}
  221. </TD>
  222. <TD WIDTH="1%" CLASS="FLR" ALIGN="CENTER">
  223. {$item.count|string_format:"%.2f"}
  224. </TD>
  225. {if $invoice.discount}
  226. <TD WIDTH="1%" CLASS="FLR" ALIGN="RIGHT" NOWRAP>
  227. {$item.discount|string_format:"%.2f"} %
  228. </TD>
  229. {/if}
  230. <TD WIDTH="1%" CLASS="FLR" ALIGN="RIGHT" NOWRAP>
  231. {$item.basevalue|money_format}
  232. </TD>
  233. <TD WIDTH="1%" CLASS="FLR" ALIGN="RIGHT" NOWRAP>
  234. {$item.totalbase|money_format}
  235. </TD>
  236. <TD WIDTH="1%" CLASS="FLR" ALIGN="RIGHT" NOWRAP>
  237. {$item.taxlabel}
  238. </TD>
  239. <TD WIDTH="1%" CLASS="FLR" ALIGN="RIGHT" NOWRAP>
  240. {$item.totaltax|money_format}
  241. </TD>
  242. <TD WIDTH="1%" CLASS="FLR" ALIGN="RIGHT" NOWRAP>
  243. {$item.total|money_format}
  244. </TD>
  245. </TR>
  246. {/foreach}
  247. <TR>
  248. <TD COLSPAN="{if $invoice.discount}7{else}6{/if}" ALIGN="RIGHT" CLASS="ftop" STYLE="text-align: right">
  249. <P ALIGN="RIGHT"><B>{t}Total:{/t}</B></P>
  250. </TD>
  251. <TD WIDTH="1%" ALIGN="RIGHT" CLASS="fall" NOWRAP>
  252. {$invoice.totalbase|money_format}
  253. </TD>
  254. <TD WIDTH="1%" CLASS="fall" ALIGN="RIGHT">
  255. <B>x</B>
  256. </TD>
  257. <TD WIDTH="1%" CLASS="fall" ALIGN="RIGHT" NOWRAP>
  258. {$invoice.totaltax|money_format}
  259. </TD>
  260. <TD WIDTH="1%" CLASS="fall" ALIGN="RIGHT" NOWRAP>
  261. {$invoice.total|money_format}
  262. </TD>
  263. </TR>
  264. <TR>
  265. <TD COLSPAN="{if $invoice.discount}7{else}6{/if}" ALIGN="RIGHT">
  266. &nbsp;
  267. </TD>
  268. <TD COLSPAN="4" WIDTH="4%" ALIGN="CENTER">
  269. <B>{t}in it:{/t}</B>
  270. </TD>
  271. </TR>
  272. {foreach from=$invoice.taxest item=item}
  273. <TR>
  274. <TD COLSPAN="{if $invoice.discount}7{else}6{/if}" ALIGN="RIGHT">
  275. &nbsp;
  276. </TD>
  277. <TD WIDTH="1%" ALIGN="RIGHT" CLASS="fall" NOWRAP>
  278. {$item.base|money_format}
  279. </TD>
  280. <TD WIDTH="1%" CLASS="fall" ALIGN="RIGHT">
  281. {$item.taxlabel}
  282. </TD>
  283. <TD WIDTH="1%" CLASS="fall" ALIGN="RIGHT" NOWRAP>
  284. {$item.tax|money_format}
  285. </TD>
  286. <TD WIDTH="1%" CLASS="fall" ALIGN="RIGHT" NOWRAP>
  287. {$item.total|money_format}
  288. </TD>
  289. </TR>
  290. {/foreach}
  291. {if $invoice.invoice}
  292. {math assign=totalbase equation="x-y" x=$invoice.totalbase y=$invoice.invoice.totalbase}
  293. {math assign=totaltax equation="x-y" x=$invoice.totaltax y=$invoice.invoice.totaltax}
  294. {math assign=total equation="x-y" x=$invoice.total y=$invoice.invoice.total}
  295. <TR>
  296. <TD COLSPAN="{if $invoice.discount}11{else}10{/if}"></TD>
  297. </TR>
  298. <TR>
  299. <TD COLSPAN="{if $invoice.discount}7{else}6{/if}" ALIGN="RIGHT">
  300. <B>{t}Difference value:{/t}</B>
  301. </TD>
  302. <TD WIDTH="1%" ALIGN="RIGHT" CLASS="fall" NOWRAP>
  303. {if $totalbase > 0}+{/if}{$totalbase|money_format}
  304. </TD>
  305. <TD WIDTH="1%" CLASS="fall" ALIGN="RIGHT">
  306. <B>x</B>
  307. </TD>
  308. <TD WIDTH="1%" CLASS="fall" ALIGN="RIGHT" NOWRAP>
  309. {if $totaltax > 0}+{/if}{$totaltax|money_format}
  310. </TD>
  311. <TD WIDTH="1%" CLASS="fall" ALIGN="RIGHT" NOWRAP>
  312. {if $total > 0}+{/if}{$total|money_format}
  313. </TD>
  314. </TR>
  315. {/if}
  316. {if $invoice.reason}
  317. <TR>
  318. <TD COLSPAN="{if $invoice.reason}11{else}10{/if}">
  319. <B>{t}Reason:{/t}</B> {$invoice.reason}
  320. </TD>
  321. </TR>
  322. {/if}
  323. </TABLE>
  324. <TABLE WIDTH="100%" CELLPADDING="3">
  325. <TR>
  326. <TD WIDTH="100%" COLSPAN="2">
  327. &nbsp;
  328. </TD>
  329. </TR>
  330. <TR>
  331. <TD WIDTH="50%" ALIGN="CENTER" ROWSPAN="2">
  332. {t}Expositor:{/t} {if $invoice.user}{$invoice.user}{else}{$_config.invoices.default_author}{/if}
  333. </TD>
  334. <TD WIDTH="50%" ALIGN="RIGHT" CLASS="hdf">
  335. {if $invoice.rebate}
  336. {t}To repay:{/t} {$invoice.value|money_format}
  337. {else}
  338. {t}To pay:{/t} {$invoice.value|money_format}
  339. {/if}
  340. </TD>
  341. </TR>
  342. <TR>
  343. <TD WIDTH="50%" ALIGN="RIGHT" CLASS="SDR">
  344. {t}In words:{/t}
  345. {if $_config.phpui.to_words_short_version|chkconfig}
  346. {$invoice.value|string_format:"%d"|to_words:0:"":1} {$invoice.valuep|string_format:"%02d"}/100
  347. {else}
  348. {t 0=$invoice.value|string_format:"%d"|to_words 1=$invoice.valuep|to_words}$0 dollars $1 cents{/t}
  349. {/if}
  350. </TD>
  351. </TR>
  352. <TR>
  353. <TD WIDTH="100%" COLSPAN="2">
  354. &nbsp;
  355. </TD>
  356. </TR>
  357. <TR>
  358. <TD WIDTH="100%" COLSPAN="2" ALIGN="CENTER">
  359. <B>
  360. <BLOCKQUOTE>
  361. Biuro Obsługi Klienta:<BR>
  362. ul. Jasnogórska 12<BR>
  363. tel. 012-653-12-12, 509-022-236<BR>
  364. email: [email protected]<BR><BR>
  365. Konto bankowe: {$kontobankowe}
  366. {if $invoice.cdate|date_format:"%Y/%m/%d" < "2011/12/01"}
  367. 99102065581111109800901121 <BR><BR>
  368. {else}
  369. {$account_}
  370. {/if}
  371. </BLOCKQUOTE>
  372. </B>
  373. </TD>
  374. </TR>
  375. </TABLE>
  376. </TD>
  377. </TR>
  378. <TABLE WIDTH="100%" CELLPADDING="3">
  379. <TR>
  380. <TD WIDTH="100%" ALIGN="CENTER" COLSPAN="2" CLASS="hd1">
  381. <B>{t}Thanks for using our services!{/t}</B>
  382. </TD>
  383. </TR>
  384. </TABLE>
  385.  
  386. <!-- The Other Page of Invoice customerbalancelist + customerpin -->
  387. <!-- insert page break here and buy auto-duplex printer :p -->
  388.  
  389. {if $invoice.customerpin}
  390. <BR><BR>
  391. <B>{t}Customer ID:{/t} {$invoice.customerid|string_format:"%04d"}</B><BR>
  392. PIN: <CODE>{$invoice.customerpin|string_format:"%04d"}</CODE>
  393. <BR><BR>
  394. {/if}
  395.  
  396. {*
  397. customer's balance: {$invoice.customerbalancelist.balance}
  398. *}
  399.  
  400. {if $invoice.customerbalancelist}
  401. <TABLE cellpadding="5" cellspacing="0" width="100%">
  402. <TR>
  403. <TD width="1%" class="fleftu">{t}Date:{/t}</TD>
  404. <TD width="1%" class="fbt" align="right">{t}Value:{/t}</TD>
  405. <TD width="1%" class="fbt" align="right">{t}Tax:{/t}</TD>
  406. <TD width="1%" class="fbt" align="center">&raquo;</TD>
  407. <TD width="1%" class="fbt" align="right">{t}After:{/t}</TD>
  408. <TD width="93%" class="frightu">{t}Description:{/t}</TD>
  409. </TR>
  410. {if $invoice.customerbalancelistlimit >= $invoice.customerbalancelist.total}
  411. {assign var="startloop" value="0"}
  412. {else}
  413. {math assign="startloop" equation="x-y" x=$invoice.customerbalancelist.total y=$invoice.customerbalancelistlimit}
  414. {/if}
  415. {section name=balancelist loop=$invoice.customerbalancelist.id start=$startloop max=$invoice.customerbalancelistlimit}
  416. {* section name=balancelist loop=$invoice.customerbalancelist.id start=$invoice.customerbalancelistlimit step=-1 *}
  417. <TR>
  418. <TD width="1%"><nobr>{$invoice.customerbalancelist.date[balancelist]}</nobr></TD>
  419. <TD width="1%" align="right"><nobr>{if $invoice.customerbalancelist.value[balancelist] > 0}+{/if}{$invoice.customerbalancelist.value[balancelist]|money_format}</nobr>
  420. </TD>
  421. <TD width="1%" align="right">
  422. <nobr>{$invoice.customerbalancelist.tax[balancelist]}</nobr>
  423. </TD>
  424. <TD width="1%" align="center">&raquo;</TD>
  425. <TD width="1%" align="right"><nobr>
  426. {if $invoice.customerbalancelist.after[balancelist] < 0}<STRONG>{/if}
  427. {$invoice.customerbalancelist.after[balancelist]|money_format}
  428. {if $invoice.customerbalancelist.after[balancelist] < 0}</STRONG>{/if}</nobr>
  429. </TD>
  430. <TD width="93%">{$invoice.customerbalancelist.comment[balancelist]}</TD>
  431. </TR>
  432. {/section}
  433. </TABLE>
  434. {/if}
  435.  
  436. </DIV>
Advertisement
Add Comment
Please, Sign In to add comment