Get supplier organization from order item
This commit is contained in:
@@ -100,10 +100,7 @@ class Wiaas_Delivery_Process_Step_Assignee {
|
|||||||
|
|
||||||
$item = $order->get_item($item_id);
|
$item = $order->get_item($item_id);
|
||||||
|
|
||||||
$product_id = $item['product_id'];
|
$organization_id = $item['wiaas_supplier_organization_id'];
|
||||||
|
|
||||||
//TODO: Get this value from order since product can get changed or deleted later
|
|
||||||
$organization_id = Wiaas_Product_Supplier::get_supplier_organisation_id_from_product($product_id);
|
|
||||||
|
|
||||||
$user_ids = wiaas_get_organization_user_ids($organization_id);
|
$user_ids = wiaas_get_organization_user_ids($organization_id);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user