ltsecurityinc安防产品在线商城代码

This commit is contained in:
2026-09-14 17:47:10 +08:00
parent 57d8444c15
commit 6a3c9c5bd8
14539 changed files with 1775310 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
<?xml version="1.0" ?>
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
<table name="inventory_source_customer" resource="default" engine="innodb" comment="customer preferred inventory source Table">
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" identity="true" nullable="false" comment="Entity Id"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="entity_id"/>
</constraint>
<column name="source_code" nullable="false" xsi:type="varchar" length="255" comment="Inventory Source Code" />
<column name="customer_id" nullable="false" xsi:type="int" comment="customer_id" unsigned="true"/>
<index referenceId="inventory_source_customer_id" indexType="btree">
<column name="customer_id"/>
</index>
<constraint xsi:type="foreign" referenceId="CUSTOMER_ENTITY_ID" table="inventory_source_customer"
column="customer_id" referenceTable="customer_entity" referenceColumn="entity_id" onDelete="CASCADE"/>
</table>
<table name="inventory_source">
<column xsi:type="varchar" name="netsuite_id" nullable="true" length="255"/>
</table>
</schema>
+15
View File
@@ -0,0 +1,15 @@
<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<preference for="Lts\Inventory\Api\SourceCustomerRepositoryInterface" type="Lts\Inventory\Model\SourceCustomerRepository"/>
<preference for="Lts\Inventory\Api\Data\SourceCustomerInterface" type="Lts\Inventory\Model\SourceCustomer"/>
<preference for="Lts\Inventory\Api\Data\SourceCustomerSearchResultsInterface" type="Magento\Framework\Api\SearchResults"/>
<preference for="Magento\InventoryInStorePickupApi\Api\GetPickupLocationsInterface" type="Lts\Inventory\Model\GetPickupLocations" />
<type name="Magento\InventoryApi\Api\SourceRepositoryInterface">
<plugin name="save_netsuite_id" type="Lts\Inventory\Plugin\InventoryApi\SourceRepository\SaveInNetsuiteIdPlugin"/>
</type>
<type name="Magento\InventoryAdminUi\Ui\DataProvider\SourceDataProvider">
<plugin name="get_netsuite_id" type="Lts\Inventory\Plugin\InventoryApi\SourceRepository\GetNetsuiteIdPlugin" />
</type>
</config>
@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Api/etc/extension_attributes.xsd">
<extension_attributes for="Magento\InventoryApi\Api\Data\SourceInterface">
<attribute code="netsuite_id" type="string"/>
</extension_attributes>
</config>
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
<router id="standard">
<route id="lts_inventory" frontName="lts_inventory">
<module name="Lts_Inventory" />
</route>
</router>
</config>
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Lts_Inventory">
<sequence>
<module name="Magento_Inventory" />
<module name="Magento_InventoryInStorePickupApi" />
<module name="Magento_InventoryCatalogApi"/>
<module name="Magento_InventoryApi" />
<module name="Magento_InventoryAdminUi" />
<module name="Magento_Ui" />
</sequence>
</module>
</config>