Skip to content

Commit

Permalink
fix: Attempt to fix status updater 1
Browse files Browse the repository at this point in the history
  • Loading branch information
mihir-kandoi committed Jan 6, 2025
1 parent 5dacfd5 commit 87f1f6e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion erpnext/buying/doctype/purchase_order/purchase_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ def update_status_updater_if_from_pp(self):
"source_dt": "Purchase Order Item",
"target_dt": "Production Plan Sub Assembly Item",
"join_field": "production_plan_sub_assembly_item",
"target_field": "ordered_qty",
"target_field": "received_qty",
"target_parent_dt": "Production Plan",
"target_parent_field": "",
"target_ref_field": "qty",
Expand Down
18 changes: 9 additions & 9 deletions erpnext/controllers/status_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,19 +201,19 @@ def get_status(self):
Get the status of the document.
Returns:
dict: A dictionary containing the status. This allows callers to receive
a dictionary for efficient bulk updates, for example when `per_billed`
and other status fields also need to be updated.
dict: A dictionary containing the status. This allows callers to receive
a dictionary for efficient bulk updates, for example when `per_billed`
and other status fields also need to be updated.
Note:
Can be overriden on a doctype to implement more localized status updater logic.
Can be overriden on a doctype to implement more localized status updater logic.
Example:
{
"status": "Draft",
"per_billed": 50,
"billing_status": "Partly Billed"
}
{
"status": "Draft",
"per_billed": 50,
"billing_status": "Partly Billed"
}
"""
if self.doctype not in status_map:
return {"status": self.status}
Expand Down

0 comments on commit 87f1f6e

Please sign in to comment.