[fix] [cleanup]
This commit is contained in:
parent
88655890be
commit
beb7c346ea
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user