moqui / mantle-usl

Mantle Universal Service Library
http://www.moqui.org/mantle.html
Other
30 stars 61 forks source link

Added statusId as a condition for assets when updating inventory. If … #130

Closed danieltaylor-nz closed 5 years ago

danieltaylor-nz commented 5 years ago

…passed, only assets with the matching status will be updated

I have assets in Defective or Deactivated status, and when calling this service with inbound asset in 'Available' status, the defective assets are having their QOHT being updated.

This change means that while calling record#PhysicalInventoryQuantity, you can pass the status of your Inventory, and the relevant Assets will be updated/created.

I tested this by setting Assets to various statuses and then receiving inventory in same or different statuses.