mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-20 13:39:18 +00:00
fix codacy
This commit is contained in:
@@ -2,7 +2,5 @@
|
|||||||
// For license information, please see license.txt
|
// For license information, please see license.txt
|
||||||
|
|
||||||
frappe.ui.form.on('POS Profile User', {
|
frappe.ui.form.on('POS Profile User', {
|
||||||
refresh: function(frm) {
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import frappe
|
|
||||||
from frappe.model.document import Document
|
from frappe.model.document import Document
|
||||||
|
|
||||||
class POSProfileUser(Document):
|
class POSProfileUser(Document):
|
||||||
|
|||||||
@@ -290,21 +290,19 @@ erpnext.pos.PointOfSale = class PointOfSale {
|
|||||||
this.pos_profile = doc;
|
this.pos_profile = doc;
|
||||||
|
|
||||||
if (!this.pos_profile) {
|
if (!this.pos_profile) {
|
||||||
this.pos_profile = {
|
this.pos_profile = {
|
||||||
company: this.company,
|
company: this.company,
|
||||||
currency: frappe.defaults.get_default('currency'),
|
currency: frappe.defaults.get_default('currency'),
|
||||||
selling_price_list: frappe.defaults.get_default('selling_price_list')
|
selling_price_list: frappe.defaults.get_default('selling_price_list')
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
resolve();
|
resolve();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
frappe.call({
|
frappe.call({
|
||||||
method: 'erpnext.accounts.doctype.pos_profile.pos_profile.get_pos_profiles_for_user'
|
method: 'erpnext.accounts.doctype.pos_profile.pos_profile.get_pos_profiles_for_user'
|
||||||
})
|
}).then((r) => {
|
||||||
.then((r) => {
|
|
||||||
if (r && r.message) {
|
if (r && r.message) {
|
||||||
const pos_profiles = r.message;
|
const pos_profiles = r.message;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user