brotherton-erpnext/portal/templates/sales_transactions.html

32 lines
957 B
HTML
Raw Normal View History

2013-09-10 08:16:15 +00:00
{% extends "app/portal/templates/includes/transactions.html" %}
{% block javascript -%}
2013-09-10 08:16:15 +00:00
<script>
2013-09-16 13:58:06 +00:00
$(document).ready(function() {
2013-09-10 08:16:15 +00:00
global_number_format = "{{ global_number_format }}";
currency = "{{ currency }}";
wn.currency_symbols = {{ currency_symbols }};
2013-09-16 13:58:06 +00:00
});
2013-09-10 08:16:15 +00:00
</script>
{{ super() }}
2013-09-10 08:16:15 +00:00
<script>
var render = function(doc) {
doc.grand_total_export = format_currency(doc.grand_total_export, doc.currency);
if(!doc.status) doc.status = "";
2013-09-10 08:16:15 +00:00
$(repl('<a href="{{ page }}?name=%(name)s" class="list-group-item">\
<div class="row">\
<div class="col-md-6">\
<div class="row col-md-12">%(name)s</div>\
<div class="row col-md-12 text-muted">%(items)s</div>\
<div class="row col-md-12">%(status)s</div>\
2013-09-10 08:16:15 +00:00
</div>\
<div class="col-md-3 text-right">%(grand_total_export)s</div>\
<div class="col-md-3 text-right text-muted">%(creation)s</div>\
</div>\
2013-09-10 08:16:15 +00:00
</a>', doc)).appendTo($list);
};
</script>
{%- endblock %}