Inventory

using DirectScale.Disco.Extension.Hooks.Inventory;

Receive

Define logic for when inventory is being received into the warehouse (Purchase Orders, Transfers, or Return Merchandise Authorization (RMA). The default calls to the correct service to receive the product and updates the INV_ tables.

public class Receive : IHook<ReceiveHookRequest, ReceiveHookResponse>
{
  public Receive() { }
  
  public ReceiveHookResponse Invoke(ReceiveHookRequest request, Func<ReceiveHookRequest, ReceiveHookResponse> func)
  {
    return func(request);
  }
}
services.AddTransient<IHook<ReceiveHookRequest, ReceiveHookResponse>, Receive>();
{
  "Id": 0,
  "Type": 0,
  "Items": [
    {
      "ItemId": 0,
      "QtyReceived": 0,
      "QtyDamaged": 0
    }
  ]
}
{}

Did this page help you?