mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 04:59:18 +00:00
fix: Attempt to fix status updater 1
This commit is contained in:
@@ -559,7 +559,7 @@ class PurchaseOrder(BuyingController):
|
|||||||
"source_dt": "Purchase Order Item",
|
"source_dt": "Purchase Order Item",
|
||||||
"target_dt": "Production Plan Sub Assembly Item",
|
"target_dt": "Production Plan Sub Assembly Item",
|
||||||
"join_field": "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_dt": "Production Plan",
|
||||||
"target_parent_field": "",
|
"target_parent_field": "",
|
||||||
"target_ref_field": "qty",
|
"target_ref_field": "qty",
|
||||||
|
|||||||
@@ -201,19 +201,19 @@ class StatusUpdater(Document):
|
|||||||
Get the status of the document.
|
Get the status of the document.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
dict: A dictionary containing the status. This allows callers to receive
|
dict: A dictionary containing the status. This allows callers to receive
|
||||||
a dictionary for efficient bulk updates, for example when `per_billed`
|
a dictionary for efficient bulk updates, for example when `per_billed`
|
||||||
and other status fields also need to be updated.
|
and other status fields also need to be updated.
|
||||||
|
|
||||||
Note:
|
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:
|
Example:
|
||||||
{
|
{
|
||||||
"status": "Draft",
|
"status": "Draft",
|
||||||
"per_billed": 50,
|
"per_billed": 50,
|
||||||
"billing_status": "Partly Billed"
|
"billing_status": "Partly Billed"
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
if self.doctype not in status_map:
|
if self.doctype not in status_map:
|
||||||
return {"status": self.status}
|
return {"status": self.status}
|
||||||
|
|||||||
Reference in New Issue
Block a user