Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscription currency #29036

Conversation

MohammedAlNazili
Copy link

#29029 (comment)

Base on issue we have created ...

After creating a subscription plan based on different company default currency and adding a subscription for customer and price base one price list.
when creating invoices it passes the default currency and the balance show not correct

Subscription Plan
1
Item Price
2
Sales Invoices
3

Module

accounts

Version

ERPNext: v13.17.0 (version-13)

Frappe Framework: v13.17.1 (version-13)

Installation method

manual install

Relevant log output / Stack trace / Full Error Message.

No response

for item in items_list:
item['cost_center'] = self.cost_center
invoice.append('items', item)
# currency
invoice.currency = temp_currency
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MohammedAlNazili this doesn't look like a correct fix to me. One subscription could have multiple subscription plans and by this logic, the invoice will be made in the currency of the last subscription plan in the child table.
The invoice current should be the party account currency and independent of the subscription plan

I have tried to resolve this in the following PR. Please update your site and check if this helps
#28916

For now closing this PR

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to make subscriptions accept subscription plans in one currency in entry and by accepting one currency I can take first or last.
but with Customer currency, I think it is better.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants