Openbravo Issue Tracking System - Retail Modules
View Issue Details
0048436Retail ModulesRetail APIpublic2022-01-19 16:362022-01-19 16:44
dmiguelez 
Triage Platform Conn 
normalminoralways
acknowledgedopen 
5
 
 
No
0048436: Add detail of lines information in WS that returns Request Status
There is a webservice that returns information about the requests: org.openbravo.retail.api.StatusService

With it, it is possible to know the status of a particular request.
However, it does not return information about the details of the lines.
An example of the actual call to the WS:
{
   "data":{
      "id":"7AE017D44F7248BAAF6C2C968F5C78C1",
      "status":"Error",
      "creationDate":"2021-11-30 18:11:02.378",
      "executionDate":"2021-11-30 18:11:02.398"
   },
   "links":null
}

What is required would look like:
{
   "data":{
      "id":"7AE017D44F7248BAAF6C2C968F5C78C1",
      "status":"Error",
      "creationDate":"2021-11-30 18:11:02.378",
      "executionDate":"2021-11-30 18:11:02.398",
      "errorLines":[
         {
            "message":"Error while importing an item: Value of property organization is null but it does not accept null values",
            "data":"[{\"client\":\"Mobivia\",\"searchKey\":\"7881\",\"name\":\"Test SMA\",\"description\":\"7881\",\"upcEAN\":\"7881\",\"uom\":\"SM\",\"productCategory\":\"Article\",\"taxCategory\":\"TVA normale\",\"active\":true,\"productType\":\"Item\",\"generic\":false,\"stocked\":true,\"purchased\":true,\"sold\":true,\"showCharactDesc\":true,\"scale\":false,\"showStock\":false,\"allowAnonymousSale\":true,\"multiSelectable\":false,\"groupedProduct\":true,\"printServices\":true,\"allowDeferredSell\":false,\"linkedToProduct\":false,\"uniquePerDocument\":false,\"priceRuleBased\":false,\"printDescription\":false,\"returnable\":true,\"summaryLevel\":false,\"billOfMaterials\":false,\"printDetailsOnInvoice\":false,\"printDetailsOnPickList\":false,\"verified\":false,\"calculated\":false,\"production\":false,\"quantityVariable\":false,\"discontinued\":false,\"volume\":0,\"weight\":0,\"characteristicValues\":{}}]"
         }
      ]
   },
   "links":null
}
No tags attached.
diff proposal.diff (2,393) 2022-01-19 16:36
https://issues.openbravo.com/file_download.php?file_id=16523&type=bug
Issue History
2022-01-19 16:36dmiguelezNew Issue
2022-01-19 16:36dmiguelezAssigned To => Triage Platform Conn
2022-01-19 16:36dmiguelezFile Added: proposal.diff
2022-01-19 16:36dmiguelezTriggers an Emergency Pack => No
2022-01-19 16:44caristuStatusnew => acknowledged

There are no notes attached to this issue.