Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Set qty to purchase to 0 when removed #1867

Closed
metas-lc opened this issue Jul 3, 2018 · 1 comment
Closed

Set qty to purchase to 0 when removed #1867

metas-lc opened this issue Jul 3, 2018 · 1 comment

Comments

@metas-lc
Copy link

metas-lc commented Jul 3, 2018

Is this a bug or feature request?

bug
found white testing #1462

What is the current behavior?

when you remove qty to purchase in "create purchase orders", you get an error

Which are the steps to reproduce?

  1. create a new sales order, add a line

  2. make sure that product has bpartner product and that bpartner has a discount schema set for purchase side
    image
    image

  3. select the line, go to actions, start "create purchase orders"

  4. update Bestellte menge (qty to purchase) then remove it and press enter
    => error:
    Ihr Test hat einen bisher unentdeckten Fehler offengelegt.
    ↵Bitte leiten Sie diese Meldung an metas weiter:↵↵Assumption failure: Parameter qtyToPurchase is not null for JSONDocumentChangedEvent(operation=replace, path=qtyToPurchase, value=)"

What is the expected or desired behavior?

no errors, qty shall be set to 0 if you remove it

@metas-lc metas-lc added this to the Backlog milestone Jul 3, 2018
@siemiatj siemiatj self-assigned this Jul 3, 2018
metas-mk added a commit to metasfresh/metasfresh that referenced this issue Jul 16, 2018
Adds new Issue
metasfresh/metasfresh-webui-frontend-legacy#1867
Set qty to purchase to 0 when removed
@metas-lc metas-lc self-assigned this Jul 17, 2018
@metas-lc
Copy link
Author

IT

  1. create a new sales order, add a line
  2. select the line, actions -> create purchase orders
  3. set qty to purchase, remove the qty
  4. press enter
    => qty becomes 0, no errors OK
  5. remove the qty, press tab / select another field / select somewhere outside the fields
    => qty becomes 0, no errors OK

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

No branches or pull requests

4 participants