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

Lookup Workflow for Batch Entry not correct #1140

Closed
metas-mk opened this issue Aug 15, 2017 · 11 comments
Closed

Lookup Workflow for Batch Entry not correct #1140

metas-mk opened this issue Aug 15, 2017 · 11 comments

Comments

@metas-mk
Copy link
Member

Type of issue

Bug

Current behavior

Currently, when using the Batch Entry [ctrl]+space in Documents (i.e. Sales Order) then the Workflow is not correct. After selecting the Product via autocomplete Dropdown [enter] the cursor remains in the Product section.

Expected behavior

The cursor shall be in the next included Lookup segment after [enter] selection.

image

@metas-mk metas-mk added this to the Backlog milestone Aug 15, 2017
@wiadev wiadev assigned wiadev and unassigned wiadev Aug 16, 2017
@metas-mk
Copy link
Member Author

This one works like wanted:
image

This one does not work like wanted. Take "Krake AG" as Businesspartner. Then open Batchentry via [ctrl]+space. Then Type "conv" as product. Select w/ [enter]. Error happens. (does not happen when using [ctrl]+q):
image

@metas-mk
Copy link
Member Author

@wiadev Checked the example from above again. There is no difference between [ctrl]+q and [ctrl]+space. It just looked like it, because the cursor is not visible in [ctrl]+q for the "conv" case,, because the name content is longer as the field and the cursor is outside the visible area.

About the issue: Let's have a screen session and I can show whats happening/ shall happen.

@wiadev wiadev self-assigned this Aug 17, 2017
@wiadev
Copy link
Contributor

wiadev commented Aug 21, 2017

screenshot2

This is PATCH request sent when parent field gets changed. Dependent field gets default value from this response

so UI changes ONE specific field (and all request parameters are correct):
[{op: "replace", path: "M_Product_ID", value: {2005577: "Convenience salad 250g_123456789_P002737"}}]

For some reason server response returns "M_HU_PI_Item_Product_ID" field with newly set value. That's perfectly fine, when items are available and selectable. But in this case returned data seems to be incorrect.

It seems like bug on backend, I didn't found any signs that something wrong on UI end
I've applied some additional checks to cover potentially wrong cases, but reported test case doesn' t look like UI related issue

@teosarca
Copy link
Member

If the M_HU_PI_Item_Product_ID value that was set is not present in the dropdown/typeahead values provided by backend for that field.... then, yes, it's a bug. It might be metasfresh/metasfresh-webui-api-legacy#128

@wiadev wiadev removed their assignment Aug 21, 2017
teosarca added a commit that referenced this issue Aug 21, 2017
WIP: Adjusts field switch logic for composite lookup controls #1140
@teosarca
Copy link
Member

update: quick tested now and have follow issue: in case the dropdown has only one item, the dropdown shall not be shown

image

teosarca added a commit that referenced this issue Aug 23, 2017
Hotfixes for dropdown appearance logic #1140
@metas-lc
Copy link

IT
tested with a product having 1 TU and with a product having 2 TUs (using both ctrl + q and ctrl+space)
=> after you set the product, the HU is added, or a dropdown appears to select it in case of multiple HUs.
after selecting the hu, press tab and it gets you to qty OK

metas-ts added a commit to metasfresh/metasfresh that referenced this issue Aug 27, 2017
[#1021](metasfresh/metasfresh-webui-frontend-legacy#1021)
Combined Filter Functionality
[1140](metasfresh/metasfresh-webui-frontend-legacy#1140)
Lookup Workflow for Batch Entry not correct
[#1150](metasfresh/metasfresh-webui-frontend-legacy#1150)
error reappears after you changed window
[#546](metasfresh/metasfresh-webui-api-legacy#546)
Notification Deleting
[#2231](#2231) Add Import
Partner and Product Processes Available in Import Windows
[#2136](#2136) add
history to B2C window
[#2109](#2109) Move
Currency Records from System to Client level so user can edit them
[#2103](#2103) Create and
implement the usage of a pdf printer
[#2116](#2116) Use
handler when matching partner in ESR import
[#2036](#2036) Picking
Slot Label
[#2142](#2142) Customer
Returns error w/ create from Shipment in WebUI

me-45
@teosarca
Copy link
Member

@metas-lc Note to IT:

  • please make sure we have the lookup testing documented in our test catalog
  • from now on, each time the lookup code is touched we need to perform full regression testing on lookups will all cases

@metas-mk
Copy link
Member Author

Tested quickly in Sales Order https://w101.metasfresh.com:8443/window/143/1005914
Lookups are broken:
a) The Workflow in BusinessPartner entry does not work anymore (no dropdown lists when entering the BusinessPartner -> Location -> User ...)
b) Batchentry w/ product "Holz" (no Packing Material/ Gebinde) Cursor stays in Product after enter instead of beeing in empty next field (Gebinde).

@metas-mk metas-mk reopened this Aug 31, 2017
@metas-mk
Copy link
Member Author

metas-mk commented Sep 2, 2017

Quick Test done on w101. Works nicely now in Sales Order Business Partner AND in Batch Entry Mode. Further Tests needed.

metas-ts pushed a commit that referenced this issue Sep 2, 2017
metas-ts pushed a commit that referenced this issue Sep 2, 2017
metas-ts pushed a commit that referenced this issue Sep 2, 2017
(cherry picked from commit 051d766)
(cherry picked from commit 1855a96)
metas-ts pushed a commit that referenced this issue Sep 2, 2017
(cherry picked from commit c474340)
(cherry picked from commit 2c90efb)
@metas-ts
Copy link
Member

metas-ts commented Sep 2, 2017

Cherry-picked into branches release (i.e. RC for 5.25) and into r5-24.
See https://jenkins.metasfresh.com/job/ops/job/cherry-pick-issue-script/221/ and https://jenkins.metasfresh.com/job/ops/job/cherry-pick-issue-script/222/

@metas-rc
Copy link
Member

Results of IT

@metas-rc metas-rc self-assigned this Oct 12, 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

6 participants