Rajout d'un module pour gérer la TVA intracommunautaire

This commit is contained in:
2020-04-09 13:01:34 +02:00
parent c46b44924b
commit 49011d2df8
379 changed files with 2702 additions and 5197 deletions

View File

@@ -0,0 +1,42 @@
<?php
/*************************************************************************************/
/* Copyright (c) Franck Allimant, CQFDev */
/* email : thelia@cqfdev.fr */
/* web : http://www.cqfdev.fr */
/* */
/* For the full copyright and license information, please view the LICENSE */
/* file that was distributed with this source code. */
/*************************************************************************************/
/**
* Created by Franck Allimant, CQFDev <franck@cqfdev.fr>
* Date: 04/07/2019 23:21
*/
namespace CustomerVatNumber;
use CustomerVatNumber\Model\CustomerVatNumberQuery;
use Propel\Runtime\Connection\ConnectionInterface;
use Thelia\Install\Database;
use Thelia\Module\BaseModule;
/**
* Class CustomerVatNumber
* @package CustomerVatNumber
* @author Franck Allimant <franck@cqfdev.fr>
*/
class CustomerVatNumber extends BaseModule
{
/** @var string */
const DOMAIN_NAME = 'customervatnumber';
public function postActivation(ConnectionInterface $con = null)
{
try {
CustomerVatNumberQuery::create()->findOne();
} catch (\Exception $ex) {
$database = new Database($con);
$database->insertSql(null, [__DIR__ . "/Config/thelia.sql"]);
}
}
}