-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: position of register information
- Loading branch information
1 parent
559b1ea
commit ee8a1b7
Showing
3 changed files
with
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
execute:from erpnext_germany.install import after_install; after_install() # 7 | ||
erpnext_germany.patches.add_tax_exemption_reason_fields | ||
execute:from erpnext_germany.install import insert_custom_records; insert_custom_records() | ||
erpnext_germany.patches.change_position_of_register_info |
11 changes: 11 additions & 0 deletions
11
erpnext_germany/patches/change_position_of_register_info.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,11 @@ | ||
import frappe | ||
|
||
|
||
def execute(): | ||
"""Update the position of the Register Information section in Customer and Supplier.""" | ||
for dt in ("Customer", "Supplier"): | ||
cf = frappe.db.exists("Custom Field", {"fieldname": "register_sb_1", "dt": dt}) | ||
if not cf: | ||
continue | ||
|
||
frappe.db.set_value("Custom Field", cf, "insert_after", "companies") |