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

Manufacturing order: Prevent issuing VHUs which are not top level #340

Closed
metas-lc opened this issue May 3, 2017 · 2 comments
Closed

Manufacturing order: Prevent issuing VHUs which are not top level #340

metas-lc opened this issue May 3, 2017 · 2 comments

Comments

@metas-lc
Copy link

metas-lc commented May 3, 2017

Is this a bug or feature request?

bug

What is the current behavior?

after you select a subHU (e.g. VHU) to issue, it remains there to be selected again

Which are the steps to reproduce?

  1. go to Manufacturing order and select one or create a new one
  2. select issue/receipt
  3. select the CO product
  4. select issue
  5. select a VHU (so not the parent, but the child HU) and issue it
    => the VHU appears as issued on the left side (under co product) OK
    => the VHU still remains on right side to be issued NOK
  6. issue it again
    => Error: org.postgresql.util.PSQLException: ERROR: duplicate key...
    Server error
    org.postgresql.util.PSQLException:
    ERROR: duplicate key value violates unique constraint "pp_order_qty_uq"
    Detail: Key (pp_order_id, m_hu_id)=(1000015, 1008815) already exists.
    SQL: INSERT INTO PP_Order_Qty
    NOK
    => it gets you out from issue
  7. select the CO product and press on Issue again
    => the VHU is not only under the parent but it appears a new line with it (same error if you try to select it) NOK
    => you can also issue the parent so you can double the qty - i think NOK

What is the expected or desired behavior?

  • when you issue a child, it shall disappear from the issue. I guess the parent shall also disappear if the qty is 0 (or qty cu to be updated?)
  • VHU shall not get back to issues when you close it and open it again

issue

@teosarca
Copy link
Member

teosarca commented May 3, 2017

i think we shall disallow issuing VHUs.

@teosarca teosarca changed the title issue a child error Manufacturing order: Prevent issuing VHUs which are not top level May 3, 2017
@metas-lc metas-lc self-assigned this May 4, 2017
@metas-lc
Copy link
Author

metas-lc commented May 4, 2017

IT

  1. go to manufacturing order, select one and press on issue/receipt
  2. select the co product and press on issue
  3. select a vhu which is a child, issue it
    =>
    Error: Issuing VHUs is not...
    Server error
    Issuing VHUs is not allowed
    OK
  4. as regression select both TU and VHU => works fine: both are issued and they are still parent+child OK
  5. select a TU only
    => both TU and VHU are issued OK

@metas-lc metas-lc closed this as completed May 4, 2017
@metas-lc metas-lc modified the milestones: 2017-18, 2017-19 May 4, 2017
metas-ts added a commit to metasfresh/metasfresh that referenced this issue May 5, 2017
[#702](metasfresh/metasfresh-webui-frontend-legacy#702) Running a process from menu does not work, again
[#342](metasfresh/metasfresh-webui-api-legacy#342) Exception in WebUI when opening initial Doc Outbound window
[#886](#866) Make payment callouts work in webui
[#341](metasfresh/metasfresh-webui-api-legacy#341) Apply role permissions when browsing/editing data
[#340](metasfresh/metasfresh-webui-api-legacy#340) Manufacturing order: Prevent issuing VHUs which are not top level
[#700](metasfresh/metasfresh-webui-frontend-legacy#700) Typeahead not working in lookup filter parameters
[#1435](#1435) Add method for Escaping '@' char, by replacing one @ with double @@
[#330](metasfresh/metasfresh-webui-api-legacy#330) Implement webui HUEditor support for massive amount of HUs
[#1315](#1315) 2D Barcode wit ad_table_id/ record_id on bestellkontrolle
[#675](metasfresh/metasfresh-webui-frontend-legacy#675) Icons for manufacturing components
[#334](metasfresh/metasfresh-webui-api-legacy#334) switch filters to primary layout
[#697](metasfresh/metasfresh-webui-frontend-legacy#697) New Businesspartner modal overlay cancel
[#257](metasfresh/metasfresh-webui-api-legacy#257) BPartner contact cannot be saved because mandatory field Name is not set

me-45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants