Skip to content

Commit

Permalink
fix: make e-Invoice log extensible
Browse files Browse the repository at this point in the history
(cherry picked from commit 279d596)

# Conflicts:
#	india_compliance/gst_india/doctype/e_invoice_log/e_invoice_log.json
  • Loading branch information
Sanket322 authored and mergify[bot] committed Sep 20, 2024
1 parent db81eb8 commit 67df6c6
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"engine": "InnoDB",
"field_order": [
"irn",
"sales_invoice",
"reference_doctype",
"reference_name",
"is_generated_in_sandbox_mode",
"column_break_1",
"acknowledgement_number",
Expand Down Expand Up @@ -73,13 +74,6 @@
"label": "Is Cancelled",
"read_only": 1
},
{
"fieldname": "sales_invoice",
"fieldtype": "Link",
"label": "Sales Invoice",
"options": "Sales Invoice",
"read_only": 1
},
{
"fieldname": "column_break_1",
"fieldtype": "Column Break"
Expand Down Expand Up @@ -120,6 +114,22 @@
"fieldname": "is_generated_in_sandbox_mode",
"fieldtype": "Check",
"label": "Is Generated in Sandbox Mode"
},
{
"fieldname": "reference_doctype",
"fieldtype": "Link",
"in_standard_filter": 1,
"label": "Reference Document Type",
"options": "DocType",
"read_only": 1
},
{
"fieldname": "reference_name",
"fieldtype": "Dynamic Link",
"in_standard_filter": 1,
"label": "Reference Document Name",
"options": "reference_doctype",
"read_only": 1
}
],
"in_create": 1,
Expand All @@ -129,7 +139,11 @@
"link_fieldname": "irn"
}
],
<<<<<<< HEAD
"modified": "2023-07-27 15:04:26.931722",
=======
"modified": "2024-09-17 15:15:35.720311",
>>>>>>> 279d5966 (fix: make e-Invoice log extensible)
"modified_by": "Administrator",
"module": "GST India",
"name": "e-Invoice Log",
Expand Down Expand Up @@ -160,5 +174,5 @@
"sort_field": "modified",
"sort_order": "DESC",
"states": [],
"title_field": "sales_invoice"
"title_field": "reference_name"
}
3 changes: 2 additions & 1 deletion india_compliance/patches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,5 @@ india_compliance.patches.v14.enable_sales_through_ecommerce_operator
execute:from india_compliance.gst_india.setup import set_default_print_settings; set_default_print_settings()
india_compliance.patches.v15.migrate_gstr1_log_to_returns_log
india_compliance.patches.v15.update_action_for_gst_inward_supply
india_compliance.patches.v15.set_default_for_new_gst_category_notification
india_compliance.patches.v15.set_default_for_new_gst_category_notification
india_compliance.patches.v14.make_e_invoice_log_extensible
9 changes: 9 additions & 0 deletions india_compliance/patches/v14/make_e_invoice_log_extensible.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import frappe


def execute():
e_invoice_log = frappe.qb.DocType("e-Invoice Log")

frappe.qb.update(e_invoice_log).set(
e_invoice_log.reference_name, e_invoice_log.sales_invoice
).set(e_invoice_log.reference_doctype, "Sales Invoice").run()

0 comments on commit 67df6c6

Please sign in to comment.