[pos] POS Invoice print format done

This commit is contained in:
Akhilesh Darjee
2013-08-29 19:21:03 +05:30
parent d2714310ed
commit cf0b6d579f
3 changed files with 4 additions and 7 deletions

View File

@@ -181,7 +181,7 @@ erpnext.POS = Class.extend({
$.each(r.message, function(index, obj) {
if (obj.image)
image = '<img src="' + obj.image + '" class="img-responsive" \
style="border:1px solid #eee;height:140px;width:122px;">';
style="border:1px solid #eee;height:140px;width:100%;">';
else
image = '<div class="missing-image"><i class="icon-camera"></i></div>';

View File

@@ -26,7 +26,7 @@ erpnext.accounts.SalesInvoiceController = erpnext.selling.SellingController.exte
}
}
if(this.frm.doc.is_pos && this.frm.doc.docstatus===0) {
if(this.frm.doc.is_pos) {
cur_frm.cscript.toggle_pos(true);
}
},
@@ -93,9 +93,6 @@ erpnext.accounts.SalesInvoiceController = erpnext.selling.SellingController.exte
}
});
});
} else {
// hide shown pos for submitted records
if(cur_frm.pos_active) cur_frm.cscript.toggle_pos(false);
}
if(cint(sys_defaults.fs_pos_view)===1)