-
Notifications
You must be signed in to change notification settings - Fork 743
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #853 from frappe/version-14-hotfix
- Loading branch information
Showing
5 changed files
with
56 additions
and
2 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
16 changes: 16 additions & 0 deletions
16
hrms/patches/v14_0/update_repay_from_salary_and_payroll_payable_account_fields.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,16 @@ | ||
import frappe | ||
|
||
|
||
def execute(): | ||
if frappe.db.exists("Custom Field", {"name": "Loan Repayment-repay_from_salary"}): | ||
frappe.db.set_value( | ||
"Custom Field", {"name": "Loan Repayment-repay_from_salary"}, "fetch_if_empty", 1 | ||
) | ||
|
||
if frappe.db.exists("Custom Field", {"name": "Loan Repayment-payroll_payable_account"}): | ||
frappe.db.set_value( | ||
"Custom Field", | ||
{"name": "Loan Repayment-payroll_payable_account"}, | ||
"insert_after", | ||
"payment_account", | ||
) |
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