Skip to content

Commit

Permalink
fix: Time button not working in the job card
Browse files Browse the repository at this point in the history
(cherry picked from commit 34c190b)
  • Loading branch information
rohitwaghchaure authored and mergify[bot] committed Mar 23, 2023
1 parent 90ddc4a commit 8fed33b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/manufacturing/doctype/job_card/job_card.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ frappe.ui.form.on('Job Card', {
// and if stock mvt for WIP is required
if (frm.doc.work_order) {
frappe.db.get_value('Work Order', frm.doc.work_order, ['skip_transfer', 'status'], (result) => {
if (result.skip_transfer === 1 || result.status == 'In Process') {
if (result.skip_transfer === 1 || result.status == 'In Process' || frm.doc.transferred_qty > 0) {
frm.trigger("prepare_timer_buttons");
}
});
Expand Down

0 comments on commit 8fed33b

Please sign in to comment.