Advertisement
Guest User

Untitled

a guest
Mar 14th, 2012
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.30 KB | None | 0 0
  1. {% extends "base.html" %}
  2. {% block title %}Digital Cake Studios | Invoice# {{print_id}}{% endblock %}
  3.  
  4. {% block css %}
  5. <link rel="stylesheet" href="{{ STATIC_URL }}/css/invoice.css"/>
  6. <link rel="stylesheet" href="{{ STATIC_URL }}/css/print.css"media="print"/>
  7. {% endblock %}
  8.  
  9. {% block content %}
  10.  
  11.  
  12.  
  13. {% include 'navigation.html' with is_page="account_dash" %}
  14.  
  15. {% with item_object=invoice.item_objects%}
  16. {{item_object}} <!--hits db -->
  17. {{item_object}} <!--hits db -->
  18. {{item_object}} <!--hits db -->
  19. {{item_object}} <!--hits db -->
  20. {{item_object}} <!--hits db -->
  21. {{item_object}} <!--hits db -->
  22. {{item_object}} <!--hits db -->
  23. {% endwith %}
  24.  
  25. <section id="content" class="clearfix">
  26.  
  27. <div class="container clearfix">
  28.  
  29. <header class="page-header">
  30.  
  31. <h1 class="page-title">Invoice# {{print_id}} - {{invoice.name}}</h1>
  32.  
  33. </header><!-- end .page-header -->
  34.  
  35. </div><!-- end .container -->
  36.  
  37.  
  38. <div class="container clearfix">
  39.  
  40. {% ifequal invoice.status "7" %}
  41. <p class="success"><strong>Paid In Full</strong> - Thank you </p>
  42. {% endifequal %}
  43.  
  44. {% ifequal invoice.status "5"%}
  45. <p class="info"><strong>Payment Pending</strong></p>
  46. {% endifequal %}
  47.  
  48.  
  49.  
  50. {% ifnotequal invoice.total 0.00 %}
  51. <div class="paypal">
  52. <div class="paypal_info">Pay this invoice (${{invoice.total}} <span class="currency-code">&nbsp;USD</span>) online:{{ form.sandbox }}</div>
  53. </div>
  54.  
  55. {% endifnotequal %}
  56. {% ifequal invoice.status "6" %}
  57. <p class="error"><strong>Payment Failded</strong></p>
  58. {% endifequal %}
  59. {% ifequal invoice.status "3" %}
  60. <p class="error"><strong>Past Due</strong></p>
  61. {% endifequal %}
  62. {% ifequal invoice.status "4" %}
  63. <p class="notice"><strong>Partial Payment</strong> - A balance is still due. </p>
  64. {% endifequal %}
  65.  
  66. <div class="invoice-container">
  67.  
  68.  
  69. <div class="invheader">
  70.  
  71. <div class="invheader-upper">
  72. <div class="invheader-address-account">
  73. Digital Cake Studios<br />
  74. 750 Fountain view Dr #B<br>
  75. Mascoutah IL&nbsp;&nbsp;62258<br>
  76. United States
  77. </div>
  78. <div class="invheader-logo-container">
  79. <div class="invheader-logo">
  80. <img src="{{STATIC_URL}}/img/account/logo.png" width="135" alt=""><br>
  81. </div>
  82. </div>
  83. </div> <!-- invheader-upper -->
  84.  
  85. <div class="invheader-lower">
  86.  
  87. <div class="invheader-address-client">
  88. {{invoice.company.name}}<br />
  89. {{invoice.company.street}}<br />
  90. {{invoice.company.city}}, {{invoice.company.state}}, {{invoice.company.zip}}<br />
  91. {{invoice.company.phone}}<br />
  92. </div>
  93.  
  94. <div class="invheader-invoicedetails">
  95. <table cellspacing="0">
  96. <tbody>
  97. <tr>
  98. <th>INVOICE #</th>
  99. <td>{{print_id}}</td>
  100. </tr>
  101. <tr>
  102. <th>INVOICE Date</th>
  103. <td>{{ invoice.issued|date:"M d, Y" }}</td>
  104. </tr>
  105. <tr class="invheader-invoicedetails-balance">
  106. <th>
  107. <div>Amount Due</div>
  108. </th>
  109. <td><div>${{invoice.total}} USD</div></td>
  110.  
  111. </tr>
  112. </tbody>
  113. </table>
  114.  
  115.  
  116. </div><!-- invheader-invoicedetails -->
  117. </div><!-- invheader-lower -->
  118. </div><!-- invheader -->
  119.  
  120. <div class="invbody">
  121.  
  122.  
  123. {% if task_objects_cached %}
  124. <!-- Tasks -->
  125. <table class="invbody-items" cellspacing="0">
  126. <thead>
  127. <tr>
  128. <th class="first"><div class="item">Task</div></th>
  129. <th><div class="description">Time Entry Notes</div></th>
  130. <th><div class="unitcost">Rate</div></th>
  131. <th><div class="quantity">Hours</div></th>
  132. <th class="last"><div class="linetotal">Line Total</div></th>
  133. </tr>
  134. </thead>
  135. <tbody>
  136.  
  137.  
  138. {% for task in task_objects_cached %}
  139. <!--- Item -->
  140. <tr>
  141. <td style="width: 120px;"><div class="item">{{task.name}}</div></td>
  142. <td><div class="description">{{task.description}}</div></td>
  143. <td style="width: 85px;"><div class="unitcost">{{task.rate}}</div></td>
  144. <td style="width: 80px;"><div class="quantity">{{task.quantity}}</div></td>
  145. <td style="width: 90px;"><div class="linetotal">{{task.line_total}}</div></td>
  146. </tr><!--- EO Item -->
  147. {% endfor %}
  148.  
  149.  
  150. </tbody>
  151. </table><!-- EO tasks /-->
  152. {% endif %}
  153.  
  154.  
  155.  
  156. {% if item_objects_cached %}
  157. <!-- Items -->
  158. <table class="invbody-items" cellspacing="0">
  159.  
  160. <thead>
  161. <tr>
  162. <th class="first"><div class="item">Item</div></th>
  163. <th><div class="description">Description</div></th>
  164. <th><div class="unitcost">Unit Cost</div></th>
  165. <th><div class="quantity">Quantity</div></th>
  166. <th class="last"><div class="linetotal">Line Total</div></th>
  167. </tr>
  168. </thead>
  169.  
  170. <tbody>
  171.  
  172. {% for item in item_objects_cached %}
  173. <!--- Item -->
  174. <tr>
  175. <td style="width: 120px;"><div class="item">{{item.name}}</div></td>
  176. <td><div class="description">{{item.description}}</div></td>
  177. <td style="width: 85px;"><div class="unitcost">{{item.rate}}</div></td>
  178. <td style="width: 80px;"><div class="quantity">{{item.quantity}}</div></td>
  179. <td style="width: 90px;"><div class="linetotal">{{item.line_total}}</div></td>
  180. </tr><!--- EO Item -->
  181. {% endfor %}
  182.  
  183. </tbody>
  184. </table><!-- EO Items -->
  185. {% endif %}
  186.  
  187.  
  188. <table class="invbody-summary" cellspacing="0">
  189. <tbody>
  190.  
  191. {% if invoice.tax %}
  192. <tr>
  193. <td class="invbody-summary-clean">&nbsp;</td>
  194. <th style="width: 150px;">IL 0%</th>
  195. <td style="width: 120px;">0.00</td>
  196. </tr>
  197. {% endif%}
  198.  
  199. <tr>
  200. <td class="invbody-summary-clean">&nbsp;</td>
  201. <th style="width: 150px;"><strong>Total</strong></th>
  202. <td style="width: 120px;"><strong>{{invoice.total_items}}</strong></td>
  203. </tr>
  204.  
  205.  
  206. <tr class="invbody-summary-paid">
  207. <td class="invbody-summary-clean">&nbsp;</td>
  208. <th style="width: 150px;">Amount Paid</th>
  209. <td style="width: 120px;">-{{invoice.total_paid}}</td>
  210. </tr>
  211.  
  212.  
  213. <tr class="invbody-summary-total">
  214. <td class="invbody-summary-clean">&nbsp;</td>
  215. <th style="width: 150px;"><div><strong>Amount Due</strong></div></th>
  216. <td style="width: 120px;"><div><strong>${{invoice.total}} USD</strong></div></td>
  217. </tr>
  218.  
  219. </tbody>
  220. </table>
  221.  
  222. <div class=".clearfix" style="height: 1px; overflow: hidden;"></div>
  223.  
  224. <div class="invbody-notes">
  225.  
  226. <div>
  227. <h2>Notes</h2>
  228. {{invoice.note|safe}}
  229. </div>
  230.  
  231. </div> <!-- EO invbody-notes -->
  232.  
  233. </div><!-- EO invbody -->
  234. <div class="invbody-terms">
  235. <h2>Terms</h2>
  236. {{invoice.terms|safe}}
  237. </div><!-- invbody-terms -->
  238.  
  239.  
  240.  
  241.  
  242. <div class=".clearfix"></div>
  243.  
  244. </div> <!-- end .invoice-container -->
  245. {% ifnotequal invoice.total 0.00 %}
  246. <div class="paypal">
  247. <div class="paypal_info">Pay this invoice (${{invoice.total}} <span class="currency-code">&nbsp;USD</span>) online:{{ form.sandbox }}</div>
  248. </div>
  249. {% endifnotequal %}
  250. </div> <!-- end .container -->
  251. </section> <!-- end #content -->
  252.  
  253. {% include 'footer.html' %}
  254.  
  255.  
  256. {% endblock %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement