chore: Ingnore issues
This commit is contained in:
parent
8ccb8e3c5b
commit
0d70ae2a21
@ -30,7 +30,8 @@ repos:
|
|||||||
.*node_modules.*|
|
.*node_modules.*|
|
||||||
.*boilerplate.*|
|
.*boilerplate.*|
|
||||||
erpnext/public/js/controllers/.*|
|
erpnext/public/js/controllers/.*|
|
||||||
erpnext/templates/pages/order.js
|
erpnext/templates/pages/order.js|
|
||||||
|
erpnext/templates/includes/.*
|
||||||
)$
|
)$
|
||||||
|
|
||||||
- repo: https://github.com/PyCQA/flake8
|
- repo: https://github.com/PyCQA/flake8
|
||||||
|
@ -102,7 +102,7 @@ erpnext.integrations.refreshPlaidLink = class refreshPlaidLink {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onScriptLoaded(me) {
|
onScriptLoaded(me) {
|
||||||
me.linkHandler = Plaid.create({
|
me.linkHandler = Plaid.create({ // eslint-disable-line no-undef
|
||||||
env: me.plaid_env,
|
env: me.plaid_env,
|
||||||
token: me.token,
|
token: me.token,
|
||||||
onSuccess: me.plaid_success
|
onSuccess: me.plaid_success
|
||||||
|
@ -96,7 +96,7 @@ erpnext.integrations.plaidLink = class plaidLink {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onScriptLoaded(me) {
|
onScriptLoaded(me) {
|
||||||
me.linkHandler = Plaid.create({
|
me.linkHandler = Plaid.create({ // eslint-disable-line no-undef
|
||||||
clientName: me.client_name,
|
clientName: me.client_name,
|
||||||
product: me.product,
|
product: me.product,
|
||||||
env: me.plaid_env,
|
env: me.plaid_env,
|
||||||
|
@ -344,6 +344,28 @@ frappe.ui.form.on('Job Card', {
|
|||||||
if(frm.doc.__islocal)
|
if(frm.doc.__islocal)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
function setCurrentIncrement() {
|
||||||
|
currentIncrement += 1;
|
||||||
|
return currentIncrement;
|
||||||
|
}
|
||||||
|
|
||||||
|
function updateStopwatch(increment) {
|
||||||
|
var hours = Math.floor(increment / 3600);
|
||||||
|
var minutes = Math.floor((increment - (hours * 3600)) / 60);
|
||||||
|
var seconds = increment - (hours * 3600) - (minutes * 60);
|
||||||
|
|
||||||
|
$(section).find(".hours").text(hours < 10 ? ("0" + hours.toString()) : hours.toString());
|
||||||
|
$(section).find(".minutes").text(minutes < 10 ? ("0" + minutes.toString()) : minutes.toString());
|
||||||
|
$(section).find(".seconds").text(seconds < 10 ? ("0" + seconds.toString()) : seconds.toString());
|
||||||
|
}
|
||||||
|
|
||||||
|
function initialiseTimer() {
|
||||||
|
const interval = setInterval(function() {
|
||||||
|
var current = setCurrentIncrement();
|
||||||
|
updateStopwatch(current);
|
||||||
|
}, 1000);
|
||||||
|
}
|
||||||
|
|
||||||
frm.dashboard.refresh();
|
frm.dashboard.refresh();
|
||||||
const timer = `
|
const timer = `
|
||||||
<div class="stopwatch" style="font-weight:bold;margin:0px 13px 0px 2px;
|
<div class="stopwatch" style="font-weight:bold;margin:0px 13px 0px 2px;
|
||||||
@ -365,28 +387,6 @@ frappe.ui.form.on('Job Card', {
|
|||||||
currentIncrement += moment(frappe.datetime.now_datetime()).diff(moment(frm.doc.started_time),"seconds");
|
currentIncrement += moment(frappe.datetime.now_datetime()).diff(moment(frm.doc.started_time),"seconds");
|
||||||
initialiseTimer();
|
initialiseTimer();
|
||||||
}
|
}
|
||||||
|
|
||||||
function initialiseTimer() {
|
|
||||||
const interval = setInterval(function() {
|
|
||||||
var current = setCurrentIncrement();
|
|
||||||
updateStopwatch(current);
|
|
||||||
}, 1000);
|
|
||||||
}
|
|
||||||
|
|
||||||
function updateStopwatch(increment) {
|
|
||||||
var hours = Math.floor(increment / 3600);
|
|
||||||
var minutes = Math.floor((increment - (hours * 3600)) / 60);
|
|
||||||
var seconds = increment - (hours * 3600) - (minutes * 60);
|
|
||||||
|
|
||||||
$(section).find(".hours").text(hours < 10 ? ("0" + hours.toString()) : hours.toString());
|
|
||||||
$(section).find(".minutes").text(minutes < 10 ? ("0" + minutes.toString()) : minutes.toString());
|
|
||||||
$(section).find(".seconds").text(seconds < 10 ? ("0" + seconds.toString()) : seconds.toString());
|
|
||||||
}
|
|
||||||
|
|
||||||
function setCurrentIncrement() {
|
|
||||||
currentIncrement += 1;
|
|
||||||
return currentIncrement;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -579,7 +579,7 @@ erpnext.PointOfSale.Controller = class {
|
|||||||
console.log(error);
|
console.log(error);
|
||||||
} finally {
|
} finally {
|
||||||
frappe.dom.unfreeze();
|
frappe.dom.unfreeze();
|
||||||
return item_row;
|
return item_row; // eslint-disable-line no-unsafe-finally
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user