Anand Doshi | 330dae9 | 2013-09-10 13:46:15 +0530 | [diff] [blame] | 1 | {% extends base_template %} |
Rushabh Mehta | da512ba | 2013-03-22 12:45:44 +0530 | [diff] [blame] | 2 | |
| 3 | {% set title=doc.name %} |
| 4 | |
| 5 | {% block content %} |
Anand Doshi | 0c8fd34 | 2013-11-21 14:55:45 +0530 | [diff] [blame^] | 6 | <div class="container content"> |
Rushabh Mehta | da512ba | 2013-03-22 12:45:44 +0530 | [diff] [blame] | 7 | <ul class="breadcrumb"> |
Anand Doshi | edbf3e1 | 2013-07-02 11:40:16 +0530 | [diff] [blame] | 8 | <li><a href="index">Home</a></li> |
Anand Doshi | 85ef502 | 2013-09-04 16:46:08 +0530 | [diff] [blame] | 9 | <li><a href="{{ parent_link }}">{{ parent_title }}</a></li> |
Anand Doshi | f7e5648 | 2013-08-29 17:46:40 +0530 | [diff] [blame] | 10 | <li class="active"><i class="icon-file icon-fixed-width"></i> {{ doc.name }}</li> |
Rushabh Mehta | da512ba | 2013-03-22 12:45:44 +0530 | [diff] [blame] | 11 | </ul> |
Anand Doshi | f7e5648 | 2013-08-29 17:46:40 +0530 | [diff] [blame] | 12 | <h3><i class="icon-file icon-fixed-width"></i> {{ doc.name }}</h3> |
Anand Doshi | a9c0f5d | 2013-09-05 12:19:00 +0530 | [diff] [blame] | 13 | {% if doc.name == "Not Allowed" -%} |
| 14 | <script>ask_to_login();</script> |
| 15 | {% else %} |
Rushabh Mehta | da512ba | 2013-03-22 12:45:44 +0530 | [diff] [blame] | 16 | <hr> |
Anand Doshi | 85ef502 | 2013-09-04 16:46:08 +0530 | [diff] [blame] | 17 | <div> |
Rushabh Mehta | da512ba | 2013-03-22 12:45:44 +0530 | [diff] [blame] | 18 | <div class="row"> |
Anand Doshi | 85ef502 | 2013-09-04 16:46:08 +0530 | [diff] [blame] | 19 | <div class="col-xs-6"> |
Anand Doshi | 1be5bb7 | 2013-09-12 15:25:38 +0530 | [diff] [blame] | 20 | {% block status -%}{%- endblock %} |
Rushabh Mehta | da512ba | 2013-03-22 12:45:44 +0530 | [diff] [blame] | 21 | </div> |
Anand Doshi | 85ef502 | 2013-09-04 16:46:08 +0530 | [diff] [blame] | 22 | <div class="col-xs-6"> |
| 23 | <span class="pull-right">{{ utils.formatdate(doc.posting_date or doc.transaction_date) }}</span> |
Rushabh Mehta | da512ba | 2013-03-22 12:45:44 +0530 | [diff] [blame] | 24 | </div> |
| 25 | </div> |
| 26 | <br> |
| 27 | <div class="row"> |
Rushabh Mehta | cce21d1 | 2013-08-21 17:48:08 +0530 | [diff] [blame] | 28 | <div class="col-md-12"> |
Rushabh Mehta | da512ba | 2013-03-22 12:45:44 +0530 | [diff] [blame] | 29 | <table class="table table-bordered"> |
| 30 | <tbody> |
| 31 | <tr> |
| 32 | <th>Sr</th> |
| 33 | <th>Item Name</th> |
| 34 | <th>Description</th> |
| 35 | <th>Qty</th> |
| 36 | <th>UoM</th> |
| 37 | <th>Basic Rate</th> |
| 38 | <th>Amount</th> |
| 39 | </tr> |
Anand Doshi | 85ef502 | 2013-09-04 16:46:08 +0530 | [diff] [blame] | 40 | {%- for row in doclist.get({"doctype": doc.doctype + " Item"}) %} |
Rushabh Mehta | da512ba | 2013-03-22 12:45:44 +0530 | [diff] [blame] | 41 | <tr> |
| 42 | <td style="width: 3%;">{{ row.idx }}</td> |
| 43 | <td style="width: 20%;">{{ row.item_name }}</td> |
| 44 | <td style="width: 37%;">{{ row.description }}</td> |
| 45 | <td style="width: 5%; text-align: right;">{{ row.qty }}</td> |
| 46 | <td style="width: 5%;">{{ row.stock_uom }}</td> |
| 47 | <td style="width: 15%; text-align: right;">{{ utils.fmt_money(row.export_rate, currency=doc.currency) }}</td> |
| 48 | <td style="width: 15%; text-align: right;">{{ utils.fmt_money(row.export_amount, currency=doc.currency) }}</td> |
| 49 | </tr> |
| 50 | {% endfor -%} |
| 51 | </tbody> |
| 52 | </table> |
| 53 | </div> |
| 54 | </div> |
| 55 | <div class="row"> |
Rushabh Mehta | cce21d1 | 2013-08-21 17:48:08 +0530 | [diff] [blame] | 56 | <div class="col-md-6"></div> |
| 57 | <div class="col-md-6"> |
Rushabh Mehta | da512ba | 2013-03-22 12:45:44 +0530 | [diff] [blame] | 58 | <table cellspacing=0 width=100%> |
| 59 | <tbody> |
| 60 | <tr> |
| 61 | <td>Net Total</td> |
| 62 | <td width=40% style="text-align: right;">{{ |
| 63 | utils.fmt_money(doc.net_total/doc.conversion_rate, currency=doc.currency) |
| 64 | }}</td> |
| 65 | </tr> |
| 66 | {%- for charge in doclist.get({"doctype":"Sales Taxes and Charges"}) -%} |
| 67 | {%- if not charge.included_in_print_rate -%} |
| 68 | <tr> |
| 69 | <td>{{ charge.description }}</td> |
| 70 | <td style="text-align: right;">{{ utils.fmt_money(charge.tax_amount / doc.conversion_rate, currency=doc.currency) }}</td> |
| 71 | </tr> |
| 72 | {%- endif -%} |
| 73 | {%- endfor -%} |
| 74 | <tr> |
| 75 | <td>Grand Total</td> |
| 76 | <td style="text-align: right;">{{ utils.fmt_money(doc.grand_total_export, currency=doc.currency) }}</td> |
| 77 | </tr> |
| 78 | <tr style='font-weight: bold'> |
| 79 | <td>Rounded Total</td> |
| 80 | <td style="text-align: right;">{{ utils.fmt_money(doc.rounded_total_export, currency=doc.currency) }}</td> |
| 81 | </tr> |
| 82 | </tbody> |
| 83 | </table> |
| 84 | </div> |
| 85 | </div> |
| 86 | </div> |
Anand Doshi | a9c0f5d | 2013-09-05 12:19:00 +0530 | [diff] [blame] | 87 | {%- endif %} |
Rushabh Mehta | da512ba | 2013-03-22 12:45:44 +0530 | [diff] [blame] | 88 | </div> |
| 89 | {% endblock %} |