Skip to content

Commit

Permalink
Nombre del Plan de suscripción en la Factura (#885)
Browse files Browse the repository at this point in the history
* feat: subscription plan

* feat: ocultar plan en impresion
  • Loading branch information
fproldan authored Oct 21, 2024
1 parent 40d2172 commit ef78eb3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
"so_detail",
"sales_invoice_item",
"subscription_plan",
"subscription_plan_name",
"column_break_74",
"delivery_note",
"dn_detail",
Expand Down Expand Up @@ -868,13 +869,20 @@
"fieldtype": "Link",
"label": "Subscription Plan",
"options": "Subscription Plan",
"print_hide": 1,
"read_only": 1
},
{
"fieldname": "subscription_plan_name",
"fieldtype": "Data",
"label": "Nombre del Plan de Suscripci\u00f3n",
"read_only": 1
}
],
"idx": 1,
"istable": 1,
"links": [],
"modified": "2024-10-03 16:39:41.672280",
"modified": "2024-10-21 09:41:57.759598",
"modified_by": "Administrator",
"module": "Accounts",
"name": "Sales Invoice Item",
Expand Down
1 change: 1 addition & 0 deletions erpnext/accounts/doctype/subscription/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ def get_items_from_plans(self, plans, prorate=0):

if doctype == "Sales Invoice":
item["subscription_plan"] = plan_doc.name
item["subscription_plan_name"] = plan_doc.name

if deferred:
item.update({
Expand Down

0 comments on commit ef78eb3

Please sign in to comment.