mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-18 09:47:14 +00:00
[fix] [cleanup]
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user