Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/Ecombricks/InventoryInventorySales/etc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/Ecombricks/InventoryInventorySales/etc/di.xml
<?xml version="1.0"?>
<!--
/**
 * Copyright © eComBricks. All rights reserved.
 * See LICENSE.txt for license details.
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Ecombricks\InventoryCatalogInventory\Api\StockStateInterface">
        <plugin name="check_quote_item_qty" type="Ecombricks\InventoryInventorySales\Plugin\StockState\CheckQuoteItemQtyPlugin"/>
        <plugin name="suggest_qty" type="Ecombricks\InventoryInventorySales\Plugin\StockState\SuggestQtyPlugin"/>
    </type>
    <type name="Magento\InventoryReservationsApi\Model\AppendReservationsInterface">
        <plugin name="prevent_append_reservation_on_not_manage_items_in_stock" type="Ecombricks\InventoryInventorySales\Plugin\InventoryReservationsApi\PreventAppendReservationOnNotManageItemsInStockPlugin"/>
    </type>
    <type name="Magento\CatalogInventory\Api\RegisterProductSaleInterface">
        <plugin name="process_register_products_sale" type="Ecombricks\InventoryInventorySales\Plugin\CatalogInventory\StockManagement\ProcessRegisterProductsSalePlugin"/>
    </type>
    <type name="Ecombricks\CatalogInventory\Model\StockManagement">
        <plugin name="process_back_item_qty" type="Ecombricks\InventoryInventorySales\Plugin\CatalogInventory\StockManagement\ProcessBackItemQtyPlugin"/>
        <plugin name="process_revert_products_sale" type="Ecombricks\InventoryInventorySales\Plugin\CatalogInventory\StockManagement\ProcessRevertProductsSalePlugin"/>
    </type>
    <type name="Magento\Sales\Api\OrderManagementInterface">
        <plugin name="inventory_reservations_placement" type="Ecombricks\InventoryInventorySales\Plugin\Sales\OrderManagement\AppendReservationsAfterOrderPlacementPlugin"/>
    </type>
    <type name="Magento\SalesInventory\Model\Order\ReturnProcessor">
        <plugin name="process_return_product_qty_on_credit_memo" type="Ecombricks\InventoryInventorySales\Plugin\SalesInventory\ProcessReturnQtyOnCreditMemoPlugin" />
    </type>
    <type name="Magento\InventorySales\Model\GetItemsToCancelFromOrderItem">
        <plugin name="ecombricksInventoryInventorySalesPluginModelGetItemsToCancelFromOrderItem" type="Ecombricks\InventoryInventorySales\Plugin\Model\GetItemsToCancelFromOrderItem" sortOrder="-999" />
    </type>
    <type name="Magento\InventorySales\Model\PlaceReservationsForSalesEvent">
        <plugin name="ecombricksInventoryInventorySalesPluginModelPlaceReservationsForSalesEvent" type="Ecombricks\InventoryInventorySales\Plugin\Model\PlaceReservationsForSalesEvent" sortOrder="-999" />
    </type>
    <type name="Magento\InventorySalesApi\Model\ReturnProcessor\GetSourceDeductedOrderItemsChain">
        <arguments>
            <argument name="sourceDeductedItemsSelector" xsi:type="array">
                <item name="source_deducted__virtual_invoice_items" xsi:type="object">Ecombricks\InventoryInventorySales\Model\ReturnProcessor\GetInvoicedItemsPerSource</item>
            </argument>
        </arguments>
    </type>
    
    <preference for="Ecombricks\InventoryInventorySales\Api\GetProductSalableQtyInterface" type="Ecombricks\InventoryInventorySales\Model\GetProductSalableQty"/>
    <preference for="Ecombricks\InventoryInventorySales\Model\SourceItemInterface" type="Ecombricks\InventoryInventorySales\Model\SourceItem"/>
    <preference for="Ecombricks\InventoryInventorySales\Model\ReturnProcessor\Request\ItemsToRefundInterface" type="Ecombricks\InventoryInventorySales\Model\ReturnProcessor\Request\ItemsToRefund" />
    <preference for="Ecombricks\InventoryInventorySales\Model\ReturnProcessor\ProcessRefundItemsInterface" type="Ecombricks\InventoryInventorySales\Model\ReturnProcessor\ProcessRefundItems" />
    
    <preference for="Ecombricks\InventoryInventorySales\Api\IsProductSalableForRequestedQtyInterface" type="Ecombricks\InventoryInventorySales\Model\IsProductSalableForRequestedQtyCondition\IsProductSalableForRequestedQtyConditionChainOnAddToCart"/>
    <virtualType name="Ecombricks\InventoryInventorySales\Model\IsProductSalableForRequestedQtyCondition\IsProductSalableForRequestedQtyConditionChainOnAddToCart" type="Ecombricks\InventoryInventorySales\Model\IsProductSalableForRequestedQtyCondition\IsProductSalableForRequestedQtyConditionChain">
        <arguments>
            <argument name="conditions" xsi:type="array">
                <item name="is_correct_qty" xsi:type="array">
                    <item name="required" xsi:type="boolean">true</item>
                    <item name="object" xsi:type="object">Magento\InventorySales\Model\IsProductSalableForRequestedQtyCondition\IsCorrectQtyCondition</item>
                </item>
                <item name="back_order" xsi:type="array">
                    <item name="sort_order" xsi:type="number">10</item>
                    <item name="object" xsi:type="object">Magento\InventorySales\Model\IsProductSalableForRequestedQtyCondition\BackOrderCondition</item>
                </item>
                <item name="manage_stock" xsi:type="array">
                    <item name="sort_order" xsi:type="number">20</item>
                    <item name="object" xsi:type="object">Magento\InventorySales\Model\IsProductSalableForRequestedQtyCondition\ManageStockCondition</item>
                </item>
                <item name="is_salable_with_reservations" xsi:type="array">
                    <item name="sort_order" xsi:type="number">30</item>
                    <item name="object" xsi:type="object">Ecombricks\InventoryInventorySales\Model\IsProductSalableForRequestedQtyCondition\IsSalableWithReservationsCondition</item>
                </item>
            </argument>
        </arguments>
    </virtualType>
    <virtualType name="Ecombricks\InventoryInventorySales\Model\IsProductSalableForRequestedQtyCondition\IsProductSalableForRequestedQtyConditionChainOnPlaceOrder" type="Ecombricks\InventoryInventorySales\Model\IsProductSalableForRequestedQtyCondition\IsProductSalableForRequestedQtyConditionChain">
        <arguments>
            <argument name="conditions" xsi:type="array">
                <item name="back_order" xsi:type="array">
                    <item name="sort_order" xsi:type="number">10</item>
                    <item name="object" xsi:type="object">Magento\InventorySales\Model\IsProductSalableForRequestedQtyCondition\BackOrderCondition</item>
                </item>
                <item name="manage_stock" xsi:type="array">
                    <item name="sort_order" xsi:type="number">20</item>
                    <item name="object" xsi:type="object">Magento\InventorySales\Model\IsProductSalableForRequestedQtyCondition\ManageStockCondition</item>
                </item>
                <item name="is_salable_with_reservations" xsi:type="array">
                    <item name="sort_order" xsi:type="number">30</item>
                    <item name="object" xsi:type="object">Ecombricks\InventoryInventorySales\Model\IsProductSalableForRequestedQtyCondition\IsSalableWithReservationsCondition</item>
                </item>
            </argument>
        </arguments>
    </virtualType>
    <type name="Ecombricks\InventoryInventorySales\Model\CheckItemsQuantity">
        <arguments>
            <argument name="isProductSalableForRequestedQty" xsi:type="object">Ecombricks\InventoryInventorySales\Model\IsProductSalableForRequestedQtyCondition\IsProductSalableForRequestedQtyConditionChainOnPlaceOrder</argument>
        </arguments>
    </type>
</config>

Spamworldpro Mini