From 551f89f14b9f4e02dc164ce346a09c0a58c2ce07 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Thu, 13 Mar 2025 13:38:54 +0530 Subject: [PATCH] fix: dashboard link for QC from PR --- erpnext/public/js/controllers/transaction.js | 2 +- .../doctype/purchase_receipt/purchase_receipt_dashboard.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index a2454f31f8f..061da4dac84 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -335,7 +335,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe let d = locals[cdt][cdn]; return { filters: { - docstatus: 1, + docstatus: ("<", 2), inspection_type: inspection_type, reference_name: doc.name, item_code: d.item_code diff --git a/erpnext/stock/doctype/purchase_receipt/purchase_receipt_dashboard.py b/erpnext/stock/doctype/purchase_receipt/purchase_receipt_dashboard.py index 71489fbb494..b1b0a962246 100644 --- a/erpnext/stock/doctype/purchase_receipt/purchase_receipt_dashboard.py +++ b/erpnext/stock/doctype/purchase_receipt/purchase_receipt_dashboard.py @@ -11,12 +11,12 @@ def get_data(): "Auto Repeat": "reference_document", "Purchase Receipt": "return_against", "Stock Reservation Entry": "from_voucher_no", + "Quality Inspection": "reference_name", }, "internal_links": { "Material Request": ["items", "material_request"], "Purchase Order": ["items", "purchase_order"], "Project": ["items", "project"], - "Quality Inspection": ["items", "quality_inspection"], }, "transactions": [ {