Inital commit

This commit is contained in:
2020-11-19 15:36:28 +01:00
parent 71f32f83d3
commit 66ce4ee218
18077 changed files with 2166122 additions and 35184 deletions

View 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>

View 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>

View 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>

View 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>

View 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;