metasfresh / metasfresh-webui-api-legacy

metasfresh webui API server
GNU General Public License v3.0
30 stars 32 forks source link

Problems on invalid entries saving #614

Open metas-rc opened 6 years ago

metas-rc commented 6 years ago

Is this a bug or feature request?

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?

1)

image

image

image

{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

2) Example

What is the expected or desired behavior?

1)

teosarca commented 6 years ago

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

metas-lc commented 6 years ago

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"