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

Cannot clear dropdown fields #1352

Closed
teosarca opened this issue Nov 17, 2017 · 2 comments
Closed

Cannot clear dropdown fields #1352

teosarca opened this issue Nov 17, 2017 · 2 comments

Comments

@teosarca
Copy link
Member

teosarca commented Nov 17, 2017

Is this a bug or feature request?

Bug

What is the current behavior?

Which are the steps to reproduce?

  • create a sales order
  • add a sales order line
  • advanced edit that order line
  • try setting Packing Item field to "none".
    => ERROR because frontend is sending wrong patch value:
[{"op":"replace","path":"M_HU_PI_Item_Product_ID","value":{"key":"empty","caption":"none"}}]

Btw, for checking u can use any other draft order, or any other document where u have drop down which is not mandatory.

image

What is the expected or desired behavior?

it should be

[{"op":"replace","path":"M_HU_PI_Item_Product_ID","value":null}]
@teosarca
Copy link
Member Author

issue introduced by #1327

metas-mk added a commit to metasfresh/metasfresh that referenced this issue Nov 18, 2017
Adding a new Issue to the Release Notes of next week
metasfresh/metasfresh-webui-frontend-legacy#1352
Cannot clear dropdown fields
@pablosichert pablosichert removed their assignment Nov 24, 2017
metas-ts pushed a commit that referenced this issue Nov 24, 2017
@metas-dh
Copy link
Member

metas-dh commented Nov 27, 2017

Results of IT1
tested in mf15

  • no error when setting Packing Item field to "none": OK

  • after setting the Packing Item field to "none": in purchase order, you cannot select the original packing item again (works fine in sales order): => When filtering a view please use the newly introduced "/documentView/{windowId}/{viewId}/filter" endpoint #740
    => in sales order, after selecting the product in quick entry, you have to click tab to get to the quantity field, confirming the packing item too, whereas in purchase order, you get to the quantity field directly after selecting the product, no need to confirm the packing item there; might be related?

@metas-dh metas-dh self-assigned this Nov 27, 2017
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