Skip to content

Commit

Permalink
feat: subscription plan in sales invoice item
Browse files Browse the repository at this point in the history
  • Loading branch information
fproldan committed Oct 3, 2024
1 parent ed3c505 commit 362427f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erpnext/accounts/doctype/subscription/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,8 @@ def get_items_from_plans(self, plans, prorate=0):
item = {'item_code': item_code, 'qty': plan.qty, 'rate': get_plan_rate(plan.plan, plan.qty, party,
self.current_invoice_start, self.current_invoice_end, prorate_factor, doctype, company), 'cost_center': plan_doc.cost_center}

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

if deferred:
item.update({
Expand Down

0 comments on commit 362427f

Please sign in to comment.