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

Costs on bom lines get set to 0 after editing a bom line #15388

Closed
ToniTen opened this issue Nov 13, 2020 · 1 comment
Closed

Costs on bom lines get set to 0 after editing a bom line #15388

ToniTen opened this issue Nov 13, 2020 · 1 comment
Labels
Bug This is a bug (something does not work as expected)

Comments

@ToniTen
Copy link

ToniTen commented Nov 13, 2020

Bug

When editing lines in a bom, cost per bom line gets set to 0 after each line is edited, Prices are updated when reloading the page.

Environment

  • Version: 12.0.3 from demo.dolibarr.org
  • OS: from demo.dolibarr.org
  • Web server: from demo.dolibarr.org
  • PHP: from demo.dolibarr.org
  • Database: from demo.dolibarr.org
  • URL(s): /bom/bom_card.php

Expected and actual behavior

Actual behaviour

Editing a line in a bom will set all costs for all lines to 0. This is a display bug. Prices are updated when reloading the page by clicking on the bom tab, or by trying to delete a line, but not by adding new lines

Expected behaviour

Cost per line should remain at the values it pulls from the database as you edit the lines

Steps to reproduce the behavior

  • Create a BOM
  • Add at least one product
  • Cost price for the line appears to be 0
  • click on the BOM to reload
  • BOM price gets updated with values pulled from the database
  • Edit the line and chance quantity. Cost price for the line (and all other lines) gets reset to 0
@ToniTen ToniTen added the Bug This is a bug (something does not work as expected) label Nov 13, 2020
@atm-quentin
Copy link
Contributor

atm-quentin commented Jan 6, 2021

Hello,

Thanks for reporting i'll have a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug (something does not work as expected)
Projects
None yet
Development

No branches or pull requests

2 participants