Inital commit
This commit is contained in:
20
local/modules/RibClient/Config/config.xml
Normal file
20
local/modules/RibClient/Config/config.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<config xmlns="http://thelia.net/schema/dic/config"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://thelia.net/schema/dic/config http://thelia.net/schema/dic/config/thelia-1.0.xsd">
|
||||
|
||||
<forms>
|
||||
<form name="rib_client.form.configure_customer" class="RibClient\Form\CustomerConfigurationForm" />
|
||||
</forms>
|
||||
|
||||
<loops>
|
||||
<loop name="rib-client" class="RibClient\Loop\RibClient" />
|
||||
</loops>
|
||||
|
||||
<hooks>
|
||||
<hook id="rib_client.customer_edit" class="RibClient\Hook\HookManager">
|
||||
<tag name="hook.event_listener" event="customer.edit" type="back" method="onCustomerEdit" />
|
||||
</hook>
|
||||
</hooks>
|
||||
</config>
|
||||
26
local/modules/RibClient/Config/module.xml
Normal file
26
local/modules/RibClient/Config/module.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module xmlns="http://thelia.net/schema/dic/module"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://thelia.net/schema/dic/module http://thelia.net/schema/dic/module/module-2_2.xsd">
|
||||
<fullnamespace>RibClient\RibClient</fullnamespace>
|
||||
<descriptive locale="fr_FR">
|
||||
<title>Ajout du RIB des clients</title>
|
||||
</descriptive>
|
||||
<!-- <logo></logo> -->
|
||||
<!--<images-folder>images</images-folder>-->
|
||||
<languages>
|
||||
<language>fr_FR</language>
|
||||
</languages>
|
||||
<version>1.0.0</version>
|
||||
<authors>
|
||||
<author>
|
||||
<name>Franck Allimant</name>
|
||||
<company>CQFDev</company>
|
||||
<email>thelia@cqfdev.fr</email>
|
||||
<website>www.cqfdev.fr</website>
|
||||
</author>
|
||||
</authors>
|
||||
<type>classic</type>
|
||||
<thelia>2.3.0</thelia>
|
||||
<stability>prod</stability>
|
||||
</module>
|
||||
11
local/modules/RibClient/Config/routing.xml
Normal file
11
local/modules/RibClient/Config/routing.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<routes xmlns="http://symfony.com/schema/routing"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">
|
||||
|
||||
<route id="rib-client.customer" path="/admin/rib-client/configure-customer/{customerId}" methods="post">
|
||||
<default key="_controller">RibClient\Controller\ConfigurationController::configureCustomer</default>
|
||||
<requirement key="customerId">\d+</requirement>
|
||||
</route>
|
||||
</routes>
|
||||
22
local/modules/RibClient/Config/schema.xml
Normal file
22
local/modules/RibClient/Config/schema.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<database defaultIdMethod="native" name="thelia"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="../../../../core/vendor/propel/propel/resources/xsd/database.xsd" >
|
||||
|
||||
<table name="rib_client" namespace="RibClient\Model">
|
||||
<column autoIncrement="true" name="id" primaryKey="true" required="true" type="INTEGER" />
|
||||
<column name="customer_id" type="INTEGER"/>
|
||||
<column name="iban" type="varchar" size="255"/>
|
||||
<column name="bic" type="varchar" size="255"/>
|
||||
<column name="remarques" type="CLOB"/>
|
||||
<column name="mode_de_reglement" type="varchar" size="255"/>
|
||||
<column name="echeance" type="integer" size="3"/>
|
||||
<column name="net_ou_fdm" type="varchar" size="255"/>
|
||||
|
||||
<foreign-key foreignTable="customer" onDelete="CASCADE" onUpdate="RESTRICT">
|
||||
<reference foreign="id" local="customer_id" />
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<external-schema filename="local/config/schema.xml" referenceOnly="true" />
|
||||
</database>
|
||||
32
local/modules/RibClient/Config/thelia.sql
Normal file
32
local/modules/RibClient/Config/thelia.sql
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
# This is a fix for InnoDB in MySQL >= 4.1.x
|
||||
# It "suspends judgement" for fkey relationships until are tables are set.
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
-- ---------------------------------------------------------------------
|
||||
-- rib_client
|
||||
-- ---------------------------------------------------------------------
|
||||
|
||||
DROP TABLE IF EXISTS `rib_client`;
|
||||
|
||||
CREATE TABLE `rib_client`
|
||||
(
|
||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
||||
`customer_id` INTEGER,
|
||||
`iban` VARCHAR(255),
|
||||
`bic` VARCHAR(255),
|
||||
`remarques` LONGTEXT,
|
||||
`mode_de_reglement` VARCHAR(255),
|
||||
`echeance` INTEGER(3),
|
||||
`net_ou_fdm` VARCHAR(255),
|
||||
PRIMARY KEY (`id`),
|
||||
INDEX `rib_client_FI_1` (`customer_id`),
|
||||
CONSTRAINT `rib_client_FK_1`
|
||||
FOREIGN KEY (`customer_id`)
|
||||
REFERENCES `customer` (`id`)
|
||||
ON UPDATE RESTRICT
|
||||
ON DELETE CASCADE
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
# This restores the fkey checks, after having unset them earlier
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
Reference in New Issue
Block a user