fix codacy

This commit is contained in:
Faris Ansari 2017-10-30 17:12:50 +05:30
parent 2c8a309106
commit 895aa7b7ac
3 changed files with 7 additions and 12 deletions

View File

@ -2,7 +2,5 @@
// For license information, please see license.txt
frappe.ui.form.on('POS Profile User', {
refresh: function(frm) {
}
});

View File

@ -3,7 +3,6 @@
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class POSProfileUser(Document):

View File

@ -290,21 +290,19 @@ erpnext.pos.PointOfSale = class PointOfSale {
this.pos_profile = doc;
if (!this.pos_profile) {
this.pos_profile = {
company: this.company,
currency: frappe.defaults.get_default('currency'),
selling_price_list: frappe.defaults.get_default('selling_price_list')
};
}
this.pos_profile = {
company: this.company,
currency: frappe.defaults.get_default('currency'),
selling_price_list: frappe.defaults.get_default('selling_price_list')
};
}
resolve();
});
}
frappe.call({
method: 'erpnext.accounts.doctype.pos_profile.pos_profile.get_pos_profiles_for_user'
})
.then((r) => {
}).then((r) => {
if (r && r.message) {
const pos_profiles = r.message;