Skip to content

Commit fc664fb

Browse files
authored
Merge pull request #886 from fproldan/backport-885-to-diamoerp-staging
[Backport diamoerp-staging] Nombre del Plan de suscripción en la Factura
2 parents 42ebb1b + 084533d commit fc664fb

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

erpnext/accounts/doctype/sales_invoice_item/sales_invoice_item.json

+9-1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
"so_detail",
9898
"sales_invoice_item",
9999
"subscription_plan",
100+
"subscription_plan_name",
100101
"column_break_74",
101102
"delivery_note",
102103
"dn_detail",
@@ -868,13 +869,20 @@
868869
"fieldtype": "Link",
869870
"label": "Subscription Plan",
870871
"options": "Subscription Plan",
872+
"print_hide": 1,
873+
"read_only": 1
874+
},
875+
{
876+
"fieldname": "subscription_plan_name",
877+
"fieldtype": "Data",
878+
"label": "Nombre del Plan de Suscripci\u00f3n",
871879
"read_only": 1
872880
}
873881
],
874882
"idx": 1,
875883
"istable": 1,
876884
"links": [],
877-
"modified": "2024-10-03 16:39:41.672280",
885+
"modified": "2024-10-21 09:41:57.759598",
878886
"modified_by": "Administrator",
879887
"module": "Accounts",
880888
"name": "Sales Invoice Item",

erpnext/accounts/doctype/subscription/subscription.py

+1
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,7 @@ def get_items_from_plans(self, plans, prorate=0):
491491

492492
if doctype == "Sales Invoice":
493493
item["subscription_plan"] = plan_doc.name
494+
item["subscription_plan_name"] = plan_doc.name
494495

495496
if deferred:
496497
item.update({

0 commit comments

Comments
 (0)