fix codacy
This commit is contained in:
parent
2c8a309106
commit
895aa7b7ac
@ -2,7 +2,5 @@
|
||||
// For license information, please see license.txt
|
||||
|
||||
frappe.ui.form.on('POS Profile User', {
|
||||
refresh: function(frm) {
|
||||
|
||||
}
|
||||
});
|
||||
|
@ -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):
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user