Merge pull request #15853 from rohitwaghchaure/delete_button_not_working_for_print_in_mobile

[Fix] Delete button not working in POS for mobile
This commit is contained in:
rohitwaghchaure 2018-10-29 16:52:34 +05:30 committed by GitHub
commit dca4b294bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1573,15 +1573,16 @@ erpnext.pos.PointOfSale = erpnext.taxes_and_totals.extend({
style="margin-right: 5px;">${__('Print')}</a>
<a class="btn btn-default new_doc">${__('New')}</a>`);
$('.print_doc').click(function () {
var html = frappe.render(me.print_template_data, me.frm.doc)
me.print_document(html)
this.msgprint.msg_area.find('.print_doc').on('click', function() {
var html = frappe.render(me.print_template_data, me.frm.doc);
me.print_document(html);
})
$('.new_doc').click(function () {
me.msgprint.hide()
me.make_new_cart()
this.msgprint.msg_area.find('.new_doc').on('click', function() {
me.msgprint.hide();
me.make_new_cart();
})
},
print_document: function (html) {