Advertisement
Guest User

Untitled

a guest
May 29th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.72 KB | None | 0 0
  1. <p>Sales Order {{ doc.name }} has been Created<br>
  2. <br>
  3. Please click on the link<br>
  4. <br>
  5. <br>
  6. Customer: {{ doc.customer_name }}<br>
  7. Doc Handling by: {{ doc.owner }}<br>
  8. &nbsp;</p>
  9.  
  10. ------------------------------------
  11. {%- macro add_header(page_num, max_pages, doc, letter_head, no_letterhead) -%}
  12. {% if letter_head and not no_letterhead %}
  13. <div class="letter-head">{{ letter_head }}</div>
  14. {% endif %}
  15. {%- if doc.meta.is_submittable and doc.docstatus==0-%}
  16. <div class="alert alert-info text-center">
  17. <h4 style="margin: 0px;">{{ _("DRAFT") }}</h4></div>
  18. {%- endif -%}
  19. {%- if doc.meta.is_submittable and doc.docstatus==2-%}
  20. <div class="alert alert-danger text-center">
  21. <h4 style="margin: 0px;">{{ _("CANCELLED") }}</h4></div>
  22. {%- endif -%}
  23. {% if max_pages > 1 %}
  24. <p class="text-right">{{ _("Page #{0} of {1}").format(page_num, max_pages) }}</p>
  25. {% endif %}
  26. {%- endmacro -%}
  27.  
  28. <style>
  29. .table-hover>tbody>tr:hover>td, .table-hover>tbody>tr:hover>th {
  30. background-color: #B7CCF2;
  31. color:#000000;
  32. font-size:18px;
  33. }
  34. .print-format table, .print-format tr,
  35. .print-format td, .print-format div, .print-format p {
  36. font-family: sans-serif;
  37. line-height: 90%;
  38. vertical-align: middle;
  39. }
  40. @media screen {
  41. .print-format {
  42. width: 150mm;
  43. padding: 10mm;
  44. min-height: 297mm;
  45. footer {page-break-after: always;}
  46. }
  47. }
  48. </style>
  49.  
  50. <small>
  51. {{ add_header(0,1,doc,letter_head, no_letterhead) }}
  52. </small>
  53. <small>
  54. <table class="table table-condensed table-bordered" width="690">
  55. <tr>
  56. <td colspan="2" width="308">
  57. <b>
  58. <font size="4" face="Verdana">Sales Order Acknowledgment</font></b></td>
  59. <td style="width:272">
  60. <p align="center"><font face="Verdana" size="2">
  61. <b style="text-align:left; vertical-align:middle">{{ _("#") }}{{ doc.name }}</b></font><br>
  62. </td>
  63. </tr>
  64. </table>
  65.  
  66. <table class = "table table-condensed table-bordered" width="696">
  67. <tr>
  68. <td style="width: 227;">
  69. <b>{{ _("InvTo") }}:</b> {{ doc.customer_name }}<br>
  70. <b>{{ _("Inv Address") }}:</b> {{ doc.address_display }}
  71. </td>
  72. <td style="width: 271;">
  73. <b>{{ _("Desp To") }}:</b> {{ doc.shipping_address_name}}<br>
  74. <b>{{ _("Desp Address") }}:</b> {{ doc.shipping_address }}
  75. </td>
  76. <td style="width: 384;">
  77. <b>{{ _("Date") }}:</b> {{ doc.get_formatted("transaction_date") }}<br>
  78. <b>{{ _("PO #") }}:</b> {{ doc.po_no }} <br>
  79. <b>{{ _("PO Date") }}:</b> {{ doc.get_formatted("po_date") }}<small><br>
  80. </small>
  81. <b>{{ _("Buyer VAT") }}:</b> {{ doc.get_formatted("vat_tin") }}<small><br>
  82. </small>
  83. <b>{{ _("Buyer CST") }}:</b> {{ doc.get_formatted("cst_tin") }}
  84.  
  85. </td>
  86. </tr>
  87. </table>
  88.  
  89. <table class="table table-condensed table-hover table-bordered" width="893">
  90. <tr>
  91. <th width="46">Sr</th>
  92. <th width="149">Cat No</th>
  93. <th width="433">
  94.  
  95. <small>
  96. Description</small></th>
  97. <th class="text-right" width="128">Qty</th>
  98. <th class="text-right" width="160">Rate</th>
  99. <th class="text-right" width="160">Discount</th>
  100. <th class="text-right" width="188">Amount</th>
  101. </tr>
  102. {%- for row in doc.sales_order_details -%}
  103. <tr>
  104. <td style="width: 46;">{{ row.idx }}</td>
  105. <td style="width: 149;">{{ row.item_code }}<br>
  106. &nbsp;</td>
  107. <td style="width: 433;">
  108.  
  109. <small>
  110. {{ row.description }}</small></td>
  111. <td style="width: 128; text-align: right">{{ row.qty }} {{ row.uom or row.stock_uom }}</td>
  112. <td style="width: 160; text-align: right">{{row.get_formatted("rate", doc) }}</td>
  113. <td style="width: 160; text-align: right">{{row.get_formatted("discount_percentage", doc) }}</td>
  114. <td style="width: 188; text-align: right">{{
  115. row.get_formatted("amount", doc) }}</td>
  116. </tr>
  117. {%- endfor -%}
  118. </tbody>
  119. </table>
  120. <table class="table table-condensed table-bordered" width="893" height="300">
  121. <tr>
  122. <td width="427" height="296">
  123.  
  124. &nbsp;</td>
  125. <td width="456" height="296">
  126. <table class="table table-condensed">
  127. <tr>
  128. <td class="text-right" style="width: 30%">
  129. {{ _("Net Total") }}
  130. </td>
  131. <td class="text-right">
  132. {{ doc.get_formatted("net_total_export") }}
  133. </td>
  134. </tr>
  135. {%- for row in doc.other_charges -%}
  136. {%- if not row.included_in_print_rate -%}
  137. <tr height:100%>
  138. <td class="text-right" style="width: 70%">
  139. {{ row.description }}
  140. </td>
  141. <td class="text-right">
  142. {{ row.get_formatted("tax_amount", doc) }}
  143. </td>
  144. </tr>
  145. {%- endif -%}
  146. {%- endfor -%}
  147. {%- if doc.discount_amount -%}
  148. <tr>
  149. <td class="text-right" style="width: 70%">
  150. {{ _("Discount") }}
  151. </td>
  152. <td class="text-right">
  153. {{ doc.get_formatted("discount_amount") }}
  154. </td>
  155. </tr>
  156. {%- endif -%}
  157. <tr>
  158. <td class="text-right" style="width: 70%">
  159. <big><b>{{ _("Grand Total") }}</b></big>
  160. </td>
  161. <td class="text-right">
  162. <big><b>{{ doc.get_formatted("rounded_total") }}</b></big>
  163. </td>
  164. </tr>
  165. </td>
  166.  
  167. <tr>
  168. <td class="text-right" style="width: 70%" colspan="2">
  169.  
  170. <p dir="ltr">&nbsp;</td>
  171. </tr>
  172.  
  173. </table>
  174.  
  175. </td>
  176. </tr>
  177. </table>
  178. </small>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement