hygorchristian / test-board

0 stars 0 forks source link

The user needs to be able to move topical bulk products into a retail lot #2

Open hygorchristian opened 1 year ago

hygorchristian commented 1 year ago

Description

The user needs the ability to move topical bulk product into a retail lot. We are going to build out one command that can be used to move topical bulk product units and topical bulk product weight.

The command will be called Move Topical Bulk Product to Retail Lot.

Requirements

This command should appear within a Topical Bulk Lot when there is Topical Bulk Product in the lot. This command should only be available when the topicals and edibles module and the processing module are enabled.

Command Info

Please select the retail lot you would like to transfer the topical bulk product to. retail lot dropdown (ideally only the retail lots for topicals)

If the topical bulk product is tracked by units, how many units were moved? integer

How much weight was moved? (If the topical bulk product is tracked by units that always divide equally into the total mass, you don't have to answer this) Weight

Where will this topical bulk product be located? Active location dropdown

Command Payload
type MoveTopicalBulkProductToRetailLot = {
  batchOrLotKey: BatchOrLotKey;
  destinationLotId: string;
  destinationLocationId: string;
  weightMoved: Weight  // Let's cache this so it is always present
  unitsMoved?: number
}
Command Validation
Expected Behaviour
hygorchristian commented 1 year ago

I found a bug