mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 19:59:12 +00:00
@@ -562,7 +562,7 @@ def get_unallocated_repair_cost(
|
|||||||
if not purchase_invoice or not expense_account:
|
if not purchase_invoice or not expense_account:
|
||||||
return 0.0
|
return 0.0
|
||||||
|
|
||||||
frappe.has_permission("Purchase Invoice","read", purchase_invoice, throw=True)
|
frappe.has_permission("Purchase Invoice", "read", purchase_invoice, throw=True)
|
||||||
|
|
||||||
used_amount = get_allocated_repair_cost(purchase_invoice, expense_account, exclude_asset_repair)
|
used_amount = get_allocated_repair_cost(purchase_invoice, expense_account, exclude_asset_repair)
|
||||||
total_amount = get_total_expense_amount(purchase_invoice, expense_account)
|
total_amount = get_total_expense_amount(purchase_invoice, expense_account)
|
||||||
|
|||||||
Reference in New Issue
Block a user