-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
|nirjay_customization|Added connection on multi purchase order for sa…
…les invoice|
- Loading branch information
1 parent
1dfee0a
commit 23870be
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
nirjay_customization/override/multi_purchase_order_dashboard.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import frappe | ||
from frappe import _ | ||
#connection Shipment in sales order | ||
def get_dashboard_data(data): | ||
data["non_standard_fieldnames"]["Sales Invoice"] = "multi_purchase_order" | ||
|
||
|
||
for transaction in data.get("transactions", []): | ||
if transaction.get("label") == _("Fulfillment"): | ||
transaction["items"].append("Sales Invoice") | ||
break | ||
else: | ||
data["transactions"].append({ | ||
"label": _("Fulfillment"), | ||
"items": ["Sales Invoice"], | ||
}) | ||
|
||
return data |