Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Revisions: Issue #56349 Back to Issue ]
Summary 0056349: [Distribution Order API]: IsAutomaticallyIssueStock parameter is kept between sessions
Revision 2024-09-03 12:31 by vmromanos
Steps To Reproduce 1.- Create a distribution order receipt using the back-end
2.- Book it
3.- Using Postman or any REST testing tool send to the Distribution Order API (https://livebuilds.openbravo.com/context/retail_modules_pgsql_pi/api?urls.primaryName=Business%20API%20-%20Transactional%20Data#/DistributionOrder/Import_DistributionOrder [^]) an update for the previously created distribution order issue
Example JSON:
[
  {
    "organization": "The White Valley Group",
    "documentNo": "1000112",
    "isIssue": true,
    "description": "test",
    "IsAutomaticallyIssueStock": true,
    "lines": [
      {
        "lineNo": 10,
        "product": "DX58ORT-F9913",
        "qtyConfirmed": 3
      }
    ]
  }
]
4.- Create another distribution order issue and book it
5.- Update the distribution order issue using the API:
[
  {
    "organization": "The White Valley Group",
    "documentNo": "1000114",
    "isIssue": true,
    "description": "test",
    "lines": [
      {
        "lineNo": 10,
        "product": "DX58ORT-F9913",
        "qtyConfirmed": 3
      }
    ]
  }
]

RESULT: The system is trying to automatically issue the distribution order regardless the IsAutomaticallyIssueStock property is not passed in the request. Note that this might be randomly reproduced.
Revision 2024-09-03 12:20 by vmromanos
Steps To Reproduce 1.- Create a distribution order receipt using the back-end
2.- Book it
3.- Using Postman or any REST testing tool send to the Distribution Order API (https://livebuilds.openbravo.com/context/retail_modules_pgsql_pi/api?urls.primaryName=Business%20API%20-%20Transactional%20Data#/DistributionOrder/Import_DistributionOrder [^]) an update for the previously created distribution order issue
Example JSON:
[
  {
    "organization": "The White Valley Group",
    "documentNo": "1000112",
    "isIssue": true,
    "description": "test",
    "IsAutomaticallyIssueStock": true,
    "lines": [
      {
        "lineNo": 10,
        "product": "DX58ORT-F9913",
        "qtyConfirmed": 3
      }
    ]
  }
]
4.- Create another distribution order receipt and book it
5.- Update the distribution order issue using the API:
[
  {
    "organization": "The White Valley Group",
    "documentNo": "1000114",
    "isIssue": true,
    "description": "test",
    "isAuto"
    "lines": [
      {
        "lineNo": 10,
        "product": "DX58ORT-F9913",
        "qtyConfirmed": 3
      }
    ]
  }
]

RESULT: The update will fail because the system is trying to move the distribution order before confirm the issue


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker