-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add company field to lower deduction certificate (#34914)
* fix: Add company field to lower deduction certificate (#34914) (cherry picked from commit b545e3d) # Conflicts: # erpnext/patches.txt * chore: resolve conflicts --------- Co-authored-by: Deepesh Garg <[email protected]>
- Loading branch information
1 parent
693007a
commit d732083
Showing
4 changed files
with
28 additions
and
3 deletions.
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
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
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,14 @@ | ||
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and Contributors | ||
# License: MIT. See LICENSE | ||
|
||
|
||
import frappe | ||
|
||
from erpnext import get_default_company | ||
|
||
|
||
def execute(): | ||
company = get_default_company() | ||
if company: | ||
for d in frappe.get_all("Lower Deduction Certificate", pluck="name"): | ||
frappe.db.set_value("Lower Deduction Certificate", d, "company", company, update_modified=False) |
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