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

[fix] add round off difference to last row in landed cost voucher #8989

Merged
merged 6 commits into from
May 26, 2017
Merged

[fix] add round off difference to last row in landed cost voucher #8989

merged 6 commits into from
May 26, 2017

Conversation

sagarvora
Copy link
Collaborator

No description provided.

pr.submit()

submit_landed_cost_voucher("Purchase Receipt", pr.name, 123.22)

Copy link
Member

Choose a reason for hiding this comment

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

Add a assertEqual statement as well, to compare the distributed charges value.

lcv = submit_landed_cost_voucher("Purchase Receipt", pr.name, 123.22)

self.assertEquals(lcv.items[0].applicable_charges, 41.07)
self.assertEquals(lcv.items[2].applicable_charges, 41.07999999999999)
Copy link
Member

Choose a reason for hiding this comment

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

It should be 42.08. What is the precision of the applicable_charges field?

@nabinhait nabinhait merged commit 7b0c682 into frappe:hotfix May 26, 2017
ashwinisave35 added a commit to ashwinisave35/erpnext that referenced this pull request May 29, 2017
…t_issue

* 'develop' of https://github.com/frappe/erpnext:
  bumped to version 8.0.40
  [fix] uppercase filter frappe#8996 (frappe#9026)
  Financial Statements Button translateabled (frappe#9032)
  [minor] added get_terms methods to erpnext.utils so that it can be used in non transactional documents (frappe#9037)
  Party Dashboard: Consider any random company if default company not set (frappe#9046)
  [fix] add round off difference to last row in landed cost voucher (frappe#8989)
  Update code to fix issue #erpnext WN-SUP25349 : ValueError: max() arg is an empty sequence. (frappe#9025)
  add milestone field
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants