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

Problems on invalid entries saving #614

Open
metas-rc opened this issue Oct 2, 2017 · 2 comments
Open

Problems on invalid entries saving #614

metas-rc opened this issue Oct 2, 2017 · 2 comments
Labels
Milestone

Comments

@metas-rc
Copy link
Member

metas-rc commented Oct 2, 2017

Is this a bug or feature request?

  • Bug

What is the current behavior?

There are several problems with invalid data in webui

  1. I cannot create a manual invoice line without setting ASI ( on webui)
  2. When an invalid entry is saved, I don't always see the error message in webui, even if I see it in swing

Which are the steps to reproduce?

  • Create a manual Sales Invoice, set a partner and doc type.
  • Create a line using Add New
    **Directly when I press add new, the line looks like saved:

image

  • Add a product and qty to the line:
  • Check the inspection: The product looks saved

image

  • The valid status for the line is false because of the mandatory attribute set instance

image

  • Check the database

  • the product is not saved there

  • The attributesetinstance has value 0 ( as in swing)

  • Do not set anything in ASI

  • Press Done

  • NOK: No error about the asi missing, no red line

  • NOK: The rows look valid now

  • Press complete;

  • NOK: Now I get an error about the line not being the mandatory value set:

{timestamp: 1506943353892, status: 500, error: "Internal Server Error",…}
error
:
"Internal Server Error"
exception
:
"de.metas.document.exceptions.DocumentProcessingException"
message
:
"Not all changes could be saved↵document: Document{tableName=C_Invoice, id=1000011, windowNo=18, writable=true, valid=Invalid('M_AttributeSetInstance_ID is mandatory.'), validOnCheckout=Invalid('M_AttributeSetInstance_ID is mandatory.'), saveStatus=DocumentSaveStatus{saved=false, hasChangesToBeSaved=true, error=true, reason=M_AttributeSetInstance_ID is mandatory.}, saveStatusOnCheckout=DocumentSaveStatus{saved=false, hasChangesToBeSaved=true, error=true, reason=M_AttributeSetInstance_ID is mandatory.}}↵Belegverarbeitung: null"
path
:
"/rest/api/window/167/1000011"
status
:
500
timestamp
:
1506943353892

  1. Example
  • GO to product price, try to create one that is similar with another product price ( with no attributes or handling units)
    ** OK: On swing I get an error:

Zum Produkt [Product Value] und der Preislistenversion Testpreise Kunden (Deutschland) darf es nur einen Haupt-Preisdatensatz geben.
** NOK: On webui I see nothing. If I want to move to another window, or press back etc, I am only asked if I want to leave the faulty entry, with no other information.

What is the expected or desired behavior?

  • The ASI shall be set to 0 if I don't change it
  • The Product must be set when I set it
  • I want to know why an entry is not correct without checking the logs and the console.
@metas-rc metas-rc added this to the 2017-40 milestone Oct 2, 2017
@metas-rc metas-rc changed the title Problems with Invoice Line saving Problems on invalid entries saving Oct 3, 2017
@teosarca teosarca self-assigned this Oct 4, 2017
@teosarca
Copy link
Member

tried but i cannot reproduce it on w101.
Is this bug gone?

@teosarca teosarca removed their assignment Oct 18, 2017
@metas-lc metas-lc self-assigned this Oct 20, 2017
@metas-lc
Copy link

metas-lc commented Oct 20, 2017

i get different error but mostly the problems are like above
check: https://w101.metasfresh.com:8443/window/167/1000008
document is not saved because

hasChanges:true
reason:"M_AttributeSetInstance_ID is mandatory."

the product line is not red!
and if you want to complete you get:

error:"Internal Server Error"
exception:"de.metas.document.exceptions.DocumentProcessingException"
message:"Not all changes could be saved↵document: 145819↵Belegverarbeitung: null"

@metas-lc metas-lc removed their assignment Mar 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants