77-->
88<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:module:Magento_QueryXml:etc/query.xsd" >
99 <query name =" stockStatus" >
10- <source name =" cataloginventory_stock_item " >
11- <attribute name =" item_id " alias =" id" />
12- <attribute name =" stock_id " alias =" stockId " />
13- <attribute name =" qty " alias =" qty " />
14- <attribute name =" is_in_stock " alias =" isSalable" />
10+ <source name =" inventory_source_item " >
11+ <attribute name =" source_item_id " alias =" id" />
12+ <attribute name =" source_code " alias =" sourceCode " />
13+ <attribute name =" sku " alias =" sku " />
14+ <attribute name =" status " alias =" isSalable" />
1515 <filter glue =" and" >
16- <condition attribute =" item_id " operator =" in" type =" placeholder" >itemIds </condition >
16+ <condition attribute =" source_item_id " operator =" in" type =" placeholder" >sourceItemIds </condition >
1717 </filter >
18+ <link-source name =" inventory_source_stock_link" link-type =" inner" >
19+ <attribute name =" stock_id" alias =" stockId" />
20+ <using glue =" and" >
21+ <condition attribute =" source_code" operator =" eq" type =" identifier" >source_code</condition >
22+ </using >
23+ </link-source >
24+ <link-source name =" inventory_low_stock_notification_configuration" link-type =" inner" >
25+ <attribute name =" notify_stock_qty" alias =" notifyStockQty" />
26+ <using glue =" and" >
27+ <condition attribute =" source_code" operator =" eq" type =" identifier" >source_code</condition >
28+ </using >
29+ <using glue =" and" >
30+ <condition attribute =" sku" operator =" eq" type =" identifier" >sku</condition >
31+ </using >
32+ </link-source >
33+ <link-source name =" catalog_product_entity" link-type =" inner" >
34+ <attribute name =" entity_id" alias =" productId" />
35+ <using glue =" and" >
36+ <condition attribute =" sku" operator =" eq" type =" identifier" >sku</condition >
37+ </using >
38+ </link-source >
39+ <link-source name =" cataloginventory_stock_item" link-type =" inner" >
40+ <attribute name =" min_sale_qty" alias =" minSaleQty" />
41+ <using glue =" and" >
42+ <condition attribute =" product_id" operator =" eq" type =" identifier" >catalog_product_entity.entity_id</condition >
43+ </using >
44+ </link-source >
45+ <link-source name =" inventory_reservation" link-type =" left" >
46+ <attribute name =" quantity" alias =" reservedQty" />
47+ <using glue =" and" >
48+ <condition attribute =" sku" operator =" eq" type =" identifier" >sku</condition >
49+ </using >
50+ <using glue =" and" >
51+ <condition attribute =" stock_id" operator =" eq" type =" identifier" >inventory_source_stock_link.stock_id</condition >
52+ </using >
53+ </link-source >
1854 </source >
1955 </query >
2056</config >
0 commit comments