marellocommerce / marello

Marello
Other
51 stars 18 forks source link

Semantic definitions #6

Open gplanchat opened 8 years ago

gplanchat commented 8 years ago

Hello,

I would need a hand to understand the semantics used in the code (class names and methods). @jakubbabiak and @24198 should have the answer(s).

What is an inventory allocation, and the difference between the quantity, the allocated quantity and the virtual quantity ?

Thanks

brainOut commented 6 years ago

@gplanchat AFAIK,

In the actual marello's workflow :

i.e: Item A Inventory: Inventory Quantity (IQ): 10 Allocated Quantity (AQ): 0 Virtual Quantity (VQ) : 10 (IQ - AQ)

Order #001 [Pending Order] Item A x 5

==>

Order #001 set in PickAndPack state Item A Inventory: IQ : 10 AQ: 5 VQ: 5

This action is provided by a workflow post_action :marello_pick_pack_order, defined in workflow_actions.yml

Order #001 set in Shipped state Item A Inventory: IQ : 5 AQ: 0 VQ: 5

This action is provided by a workflow post_action :marello_ship_order, defined in workflow_actions.yml

Hope that helps :)