mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 03:29:16 +00:00
Merge pull request #19900 from rohitwaghchaure/not_able_to_cancel_landed_cost_voucher_v12_hotfix
fix: not able to cancel the landed cost voucher
This commit is contained in:
@@ -611,7 +611,7 @@ def make_stock_entry(source_name,target_doc=None):
|
|||||||
|
|
||||||
def get_item_account_wise_additional_cost(purchase_document):
|
def get_item_account_wise_additional_cost(purchase_document):
|
||||||
landed_cost_voucher = frappe.get_value("Landed Cost Purchase Receipt",
|
landed_cost_voucher = frappe.get_value("Landed Cost Purchase Receipt",
|
||||||
{"receipt_document": purchase_document}, "parent")
|
{"receipt_document": purchase_document, "docstatus": 1}, "parent")
|
||||||
|
|
||||||
if not landed_cost_voucher:
|
if not landed_cost_voucher:
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user