[fix] [cleanup]

This commit is contained in:
Rushabh Mehta 2015-05-28 11:12:29 +05:30
parent 88655890be
commit beb7c346ea

View File

@ -463,7 +463,6 @@ erpnext.pos.PointOfSale = Class.extend({
var me = this;
dialog.set_primary_action(__("Pay"), function() {
var values = dialog.get_values();
console.log(values);
var is_cash = values.mode_of_payment === __("Cash");
if (!is_cash) {
values.write_off_amount = values.change = 0.0;
@ -514,8 +513,6 @@ erpnext.pos.toggle = function(frm, show) {
}
}
console.log(frm.page.current_view_name);
if(frm.page.current_view_name!=="pos") {
// before switching, ask for pos name
if(!price_list) {