Merge pull request #5801 from netchampfaris/ui-fixes

fix pos layout #5780
This commit is contained in:
Rushabh Mehta 2016-07-20 14:50:25 +05:30 committed by GitHub
commit f65b50ea6c

View File

@ -683,7 +683,7 @@ erpnext.pos.PointOfSale = erpnext.taxes_and_totals.extend({
me.validate() me.validate()
me.create_invoice(); me.create_invoice();
me.make_payment(); me.make_payment();
}); }, "octicon octicon-credit-card");
}else if(this.frm.doc.docstatus == 0 && this.frm.doc.items.length){ }else if(this.frm.doc.docstatus == 0 && this.frm.doc.items.length){
this.page.set_primary_action(__("Submit"), function() { this.page.set_primary_action(__("Submit"), function() {
me.validate() me.validate()
@ -702,7 +702,7 @@ erpnext.pos.PointOfSale = erpnext.taxes_and_totals.extend({
this.page.set_secondary_action(__("New"), function() { this.page.set_secondary_action(__("New"), function() {
me.save_previous_entry(); me.save_previous_entry();
me.create_new(); me.create_new();
}).addClass("btn-primary"); }, "octicon octicon-plus").addClass("btn-primary");
}, },
print_document: function(html){ print_document: function(html){