use common\logic\Config\TaxRate\TaxRateContainer; | use common\logic\Config\TaxRate\TaxRateContainer; | ||||
use common\logic\Config\TaxRate\TaxRateManager; | use common\logic\Config\TaxRate\TaxRateManager; | ||||
use common\logic\Distribution\Distribution\DistributionManager; | |||||
use common\logic\Distribution\Distribution\Wrapper\DistributionManager; | |||||
use common\logic\Distribution\Distribution\Wrapper\DistributionContainer; | use common\logic\Distribution\Distribution\Wrapper\DistributionContainer; | ||||
use common\logic\Distribution\PointSaleDistribution\Wrapper\PointSaleDistributionContainer; | use common\logic\Distribution\PointSaleDistribution\Wrapper\PointSaleDistributionContainer; | ||||
use common\logic\Distribution\PointSaleDistribution\Wrapper\PointSaleDistributionManager; | use common\logic\Distribution\PointSaleDistribution\Wrapper\PointSaleDistributionManager; |
<?php | <?php | ||||
namespace common\logic\Config\TaxRate; | |||||
namespace common\logic\Config\TaxRate\Model; | |||||
use common\components\ActiveRecordCommon; | use common\components\ActiveRecordCommon; | ||||
<?php | <?php | ||||
namespace common\logic\Config\TaxRate; | |||||
namespace common\logic\Config\TaxRate\Repository; | |||||
use common\logic\AbstractRepository; | use common\logic\AbstractRepository; | ||||
<?php | <?php | ||||
namespace common\logic\Config\TaxRate; | |||||
namespace common\logic\Config\TaxRate\Repository; | |||||
use common\logic\AbstractRepositoryQuery; | use common\logic\AbstractRepositoryQuery; | ||||
<?php | <?php | ||||
namespace common\logic\Config\TaxRate; | |||||
namespace common\logic\Config\TaxRate\Service; | |||||
use common\logic\AbstractBuilder; | use common\logic\AbstractBuilder; | ||||
use common\logic\Config\TaxRate\Model\TaxRate; | |||||
class TaxRateBuilder extends AbstractBuilder | class TaxRateBuilder extends AbstractBuilder | ||||
{ | { |
<?php | <?php | ||||
namespace common\logic\Config\TaxRate; | |||||
namespace common\logic\Config\TaxRate\Wrapper; | |||||
use common\logic\AbstractContainer; | use common\logic\AbstractContainer; | ||||
use common\logic\Config\TaxRate\Model\TaxRate; | |||||
use common\logic\Config\TaxRate\Repository\TaxRateRepository; | |||||
use common\logic\Config\TaxRate\Service\TaxRateBuilder; | |||||
class TaxRateContainer extends AbstractContainer | class TaxRateContainer extends AbstractContainer | ||||
{ | { |
<?php | <?php | ||||
namespace common\logic\Config\TaxRate; | |||||
namespace common\logic\Config\TaxRate\Wrapper; | |||||
use common\logic\AbstractManager; | use common\logic\AbstractManager; | ||||
use common\logic\Config\TaxRate\Repository\TaxRateRepository; | |||||
use common\logic\Config\TaxRate\Service\TaxRateBuilder; | |||||
/** | /** | ||||
* @mixin TaxRateRepository | * @mixin TaxRateRepository |
use common\logic\Distribution\Distribution\Event\DistributionActiveEvent; | use common\logic\Distribution\Distribution\Event\DistributionActiveEvent; | ||||
use common\logic\Distribution\Distribution\Model\Distribution; | use common\logic\Distribution\Distribution\Model\Distribution; | ||||
use common\logic\Distribution\Distribution\Repository\DistributionRepository; | use common\logic\Distribution\Distribution\Repository\DistributionRepository; | ||||
use common\logic\Distribution\PointSaleDistribution\Model\PointSaleDistribution; | |||||
use common\logic\Distribution\PointSaleDistribution\Repository\PointSaleDistributionRepository; | use common\logic\Distribution\PointSaleDistribution\Repository\PointSaleDistributionRepository; | ||||
use common\logic\Distribution\PointSaleDistribution\Service\PointSaleDistributionBuilder; | use common\logic\Distribution\PointSaleDistribution\Service\PointSaleDistributionBuilder; | ||||
use common\logic\Distribution\ProductDistribution\Model\ProductDistribution; | |||||
use common\logic\Distribution\ProductDistribution\Repository\ProductDistributionRepository; | use common\logic\Distribution\ProductDistribution\Repository\ProductDistributionRepository; | ||||
use common\logic\Distribution\ProductDistribution\Service\ProductDistributionBuilder; | use common\logic\Distribution\ProductDistribution\Service\ProductDistributionBuilder; | ||||
use common\logic\Order\Order\Repository\OrderRepository; | use common\logic\Order\Order\Repository\OrderRepository; | ||||
use common\logic\Order\ProductOrder\Service\ProductOrderBuilder; | use common\logic\Order\ProductOrder\Service\ProductOrderBuilder; | ||||
use common\logic\PointSale\PointSale\Model\PointSale; | |||||
use common\logic\Product\Product\Model\Product; | |||||
use common\logic\Product\Product\Repository\ProductRepository; | use common\logic\Product\Product\Repository\ProductRepository; | ||||
use common\logic\User\UserProducer\Repository\UserProducerRepository; | use common\logic\User\UserProducer\Repository\UserProducerRepository; | ||||
use common\helpers\GlobalParam; | use common\helpers\GlobalParam; | ||||
use common\logic\AbstractService; | use common\logic\AbstractService; | ||||
use common\logic\Distribution\Distribution\Model\Distribution; | use common\logic\Distribution\Distribution\Model\Distribution; | ||||
use common\logic\PointSale\PointSale\PointSale; | |||||
use common\logic\Product\Product\Product; | |||||
use common\logic\PointSale\PointSale\Model\PointSale; | |||||
use common\logic\Product\Product\Model\Product; | |||||
use common\logic\SolverInterface; | use common\logic\SolverInterface; | ||||
class DistributionSolver extends AbstractService implements SolverInterface | class DistributionSolver extends AbstractService implements SolverInterface |
<?php | <?php | ||||
namespace common\logic\Distribution\Distribution; | |||||
namespace common\logic\Distribution\Distribution\Wrapper; | |||||
use common\logic\AbstractManager; | use common\logic\AbstractManager; | ||||
use common\logic\Distribution\Distribution\Repository\DistributionRepository; | use common\logic\Distribution\Distribution\Repository\DistributionRepository; | ||||
use common\logic\Distribution\Distribution\Service\DistributionBuilder; | use common\logic\Distribution\Distribution\Service\DistributionBuilder; | ||||
use common\logic\Distribution\Distribution\Service\DistributionSolver; | use common\logic\Distribution\Distribution\Service\DistributionSolver; | ||||
use common\logic\Distribution\Distribution\Wrapper\DistributionContainer; | |||||
/** | /** | ||||
* @mixin DistributionSolver | * @mixin DistributionSolver |
use common\components\ActiveRecordCommon ; | use common\components\ActiveRecordCommon ; | ||||
use common\logic\Distribution\Distribution\Model\Distribution; | use common\logic\Distribution\Distribution\Model\Distribution; | ||||
use common\logic\PointSale\PointSale\PointSale; | |||||
use common\logic\PointSale\PointSale\Model\PointSale; | |||||
class PointSaleDistribution extends ActiveRecordCommon | class PointSaleDistribution extends ActiveRecordCommon | ||||
{ | { |
use common\logic\AbstractRepository; | use common\logic\AbstractRepository; | ||||
use common\logic\Distribution\Distribution\Model\Distribution; | use common\logic\Distribution\Distribution\Model\Distribution; | ||||
use common\logic\Distribution\PointSaleDistribution\Model\PointSaleDistribution; | use common\logic\Distribution\PointSaleDistribution\Model\PointSaleDistribution; | ||||
use common\logic\PointSale\PointSale\PointSale; | |||||
use common\logic\PointSale\PointSale\Model\PointSale; | |||||
class PointSaleDistributionRepository extends AbstractRepository | class PointSaleDistributionRepository extends AbstractRepository | ||||
{ | { |
use common\logic\Distribution\Distribution\Repository\DistributionRepository; | use common\logic\Distribution\Distribution\Repository\DistributionRepository; | ||||
use common\logic\Distribution\PointSaleDistribution\Model\PointSaleDistribution; | use common\logic\Distribution\PointSaleDistribution\Model\PointSaleDistribution; | ||||
use common\logic\Distribution\PointSaleDistribution\Repository\PointSaleDistributionRepository; | use common\logic\Distribution\PointSaleDistribution\Repository\PointSaleDistributionRepository; | ||||
use common\logic\PointSale\PointSale\Model\PointSale; | |||||
use common\logic\PointSale\PointSale\Repository\PointSaleRepository; | use common\logic\PointSale\PointSale\Repository\PointSaleRepository; | ||||
class PointSaleDistributionBuilder extends AbstractBuilder | class PointSaleDistributionBuilder extends AbstractBuilder |
use common\components\ActiveRecordCommon ; | use common\components\ActiveRecordCommon ; | ||||
use common\logic\Distribution\Distribution\Model\Distribution; | use common\logic\Distribution\Distribution\Model\Distribution; | ||||
use common\logic\Product\Product\Product; | |||||
use common\logic\Product\Product\Model\Product; | |||||
class ProductDistribution extends ActiveRecordCommon | class ProductDistribution extends ActiveRecordCommon | ||||
{ | { |
use common\logic\AbstractRepository; | use common\logic\AbstractRepository; | ||||
use common\logic\Distribution\Distribution\Model\Distribution; | use common\logic\Distribution\Distribution\Model\Distribution; | ||||
use common\logic\Distribution\ProductDistribution\Model\ProductDistribution; | use common\logic\Distribution\ProductDistribution\Model\ProductDistribution; | ||||
use common\logic\Product\Product\Product; | |||||
use common\logic\Product\Product\Model\Product; | |||||
class ProductDistributionRepository extends AbstractRepository | class ProductDistributionRepository extends AbstractRepository | ||||
{ | { |
namespace common\logic\Document\DeliveryNote\Model; | namespace common\logic\Document\DeliveryNote\Model; | ||||
use common\logic\Document\Document\Document; | |||||
use common\logic\Document\Document\Model\Document; | |||||
class DeliveryNote extends Document | class DeliveryNote extends Document | ||||
{ | { |
namespace common\logic\Document\DeliveryNote\Service; | namespace common\logic\Document\DeliveryNote\Service; | ||||
use common\logic\Document\DeliveryNote\Model\DeliveryNote; | use common\logic\Document\DeliveryNote\Model\DeliveryNote; | ||||
use common\logic\Document\Document\DocumentBuilder; | |||||
use common\logic\Document\Document\Service\DocumentBuilder; | |||||
class DeliveryNoteBuilder extends DocumentBuilder | class DeliveryNoteBuilder extends DocumentBuilder | ||||
{ | { |
namespace common\logic\Document\DeliveryNote\Service; | namespace common\logic\Document\DeliveryNote\Service; | ||||
use common\logic\Document\DeliveryNote\Model\DeliveryNote; | use common\logic\Document\DeliveryNote\Model\DeliveryNote; | ||||
use common\logic\Document\Document\DocumentSolver; | |||||
use common\logic\Document\Invoice\Invoice; | |||||
use common\logic\Document\Document\Service\DocumentSolver; | |||||
use common\logic\Document\Invoice\Model\Invoice; | |||||
use common\logic\SolverInterface; | use common\logic\SolverInterface; | ||||
class DeliveryNoteSolver extends DocumentSolver implements SolverInterface | class DeliveryNoteSolver extends DocumentSolver implements SolverInterface |
use common\logic\Document\DeliveryNote\Repository\DeliveryNoteRepository; | use common\logic\Document\DeliveryNote\Repository\DeliveryNoteRepository; | ||||
use common\logic\Document\DeliveryNote\Service\DeliveryNoteBuilder; | use common\logic\Document\DeliveryNote\Service\DeliveryNoteBuilder; | ||||
use common\logic\Document\DeliveryNote\Service\DeliveryNoteSolver; | use common\logic\Document\DeliveryNote\Service\DeliveryNoteSolver; | ||||
use common\logic\Document\Document\DocumentManager; | |||||
use common\logic\Document\Document\Wrapper\DocumentManager; | |||||
/** | /** | ||||
* @mixin DeliveryNoteSolver | * @mixin DeliveryNoteSolver |
use common\logic\AbstractService; | use common\logic\AbstractService; | ||||
use common\logic\Document\Document\Model\Document; | use common\logic\Document\Document\Model\Document; | ||||
use common\logic\Document\Document\Model\DocumentInterface; | use common\logic\Document\Document\Model\DocumentInterface; | ||||
use common\logic\Order\Order\Order; | |||||
use common\logic\PointSale\PointSale\PointSale; | |||||
use common\logic\Order\Order\Model\Order; | |||||
use common\logic\PointSale\PointSale\Model\PointSale; | |||||
use common\logic\SolverInterface; | use common\logic\SolverInterface; | ||||
class DocumentSolver extends AbstractService implements SolverInterface | class DocumentSolver extends AbstractService implements SolverInterface |
namespace common\logic\Document\Document\Wrapper; | namespace common\logic\Document\Document\Wrapper; | ||||
use common\logic\AbstractManager; | use common\logic\AbstractManager; | ||||
use common\logic\Document\Document\Service\DocumentBuilder; | |||||
use common\logic\Document\Document\Service\DocumentSolver; | |||||
use common\logic\Document\Document\Service\DocumentUtils; | |||||
/** | /** | ||||
* @mixin DocumentSolver | * @mixin DocumentSolver |
*/ | */ | ||||
class Quotation extends Document | class Quotation extends Document | ||||
{ | { | ||||
/** | /** | ||||
* @inheritdoc | * @inheritdoc | ||||
*/ | */ |
use common\helpers\MeanPayment; | use common\helpers\MeanPayment; | ||||
use common\helpers\Price; | use common\helpers\Price; | ||||
use common\logic\AbstractBuilder; | use common\logic\AbstractBuilder; | ||||
use common\logic\Config\TaxRate\TaxRate; | |||||
use common\logic\Config\TaxRate\Model\TaxRate; | |||||
use common\logic\Distribution\Distribution\Repository\DistributionRepository; | use common\logic\Distribution\Distribution\Repository\DistributionRepository; | ||||
use common\logic\Document\Document\Model\Document; | use common\logic\Document\Document\Model\Document; | ||||
use common\logic\Order\Order\Model\Order; | use common\logic\Order\Order\Model\Order; |
use common\logic\User\User\Service\UserSolver; | use common\logic\User\User\Service\UserSolver; | ||||
use yii\helpers\Html; | use yii\helpers\Html; | ||||
class OrderSolver extends AbstractService implements SolverInterface | class OrderSolver extends AbstractService implements SolverInterface | ||||
{ | { | ||||
protected UserSolver $userSolver; | protected UserSolver $userSolver; |
use common\helpers\GlobalParam; | use common\helpers\GlobalParam; | ||||
use common\components\ActiveRecordCommon; | use common\components\ActiveRecordCommon; | ||||
use common\logic\Config\TaxRate\TaxRate; | |||||
use common\logic\Config\TaxRate\Model\TaxRate; | |||||
use common\logic\Order\Order\Model\Order; | use common\logic\Order\Order\Model\Order; | ||||
use common\logic\Product\Product\Product; | |||||
use common\logic\Product\Product\Model\Product; | |||||
/** | /** | ||||
* This is the model class for table "product_order". | * This is the model class for table "product_order". |
use common\logic\AbstractRepository; | use common\logic\AbstractRepository; | ||||
use common\logic\Distribution\Distribution\Model\Distribution; | use common\logic\Distribution\Distribution\Model\Distribution; | ||||
use common\logic\PointSale\PointSale\Model\PointSale; | use common\logic\PointSale\PointSale\Model\PointSale; | ||||
use common\logic\Producer\Producer\Producer; | |||||
use common\logic\Producer\Producer\Model\Producer; | |||||
class PointSaleRepository extends AbstractRepository | class PointSaleRepository extends AbstractRepository | ||||
{ | { |
namespace common\logic\Producer\Producer\Model; | namespace common\logic\Producer\Producer\Model; | ||||
use common\logic\Config\TaxRate\Model\TaxRate; | |||||
use common\logic\User\User\Model\User; | use common\logic\User\User\Model\User; | ||||
use common\logic\Config\TaxRate\TaxRate; | |||||
use common\logic\User\UserProducer\Model\UserProducer; | use common\logic\User\UserProducer\Model\UserProducer; | ||||
use common\components\ActiveRecordCommon; | use common\components\ActiveRecordCommon; | ||||
namespace common\logic\Product\Product\Model; | namespace common\logic\Product\Product\Model; | ||||
use common\helpers\GlobalParam; | use common\helpers\GlobalParam; | ||||
use common\logic\Config\TaxRate\TaxRate; | |||||
use common\logic\Config\TaxRate\Model\TaxRate; | |||||
use common\logic\Distribution\ProductDistribution\Model\ProductDistribution; | use common\logic\Distribution\ProductDistribution\Model\ProductDistribution; | ||||
use common\logic\Producer\Producer\Model\Producer; | use common\logic\Producer\Producer\Model\Producer; | ||||
use common\logic\Product\Product\Service\ProductSolver; | use common\logic\Product\Product\Service\ProductSolver; | ||||
use common\logic\Product\ProductCategory\Model\ProductCategory; | use common\logic\Product\ProductCategory\Model\ProductCategory; | ||||
use common\logic\Product\ProductPointSale\Model\ProductPointSale; | use common\logic\Product\ProductPointSale\Model\ProductPointSale; | ||||
use common\logic\Product\ProductPrice\Model\ProductPrice; | use common\logic\Product\ProductPrice\Model\ProductPrice; | ||||
use common\logic\Subscription\ProductSubscription\ProductSubscription; | |||||
use common\components\ActiveRecordCommon; | use common\components\ActiveRecordCommon; | ||||
use common\logic\Subscription\ProductSubscription\Model\ProductSubscription; | |||||
/** | /** | ||||
* This is the model class for table "product". | * This is the model class for table "product". |
/** | /** | ||||
* This is the model class for table "product_category". | * This is the model class for table "product_category". | ||||
* | |||||
*/ | */ | ||||
class ProductCategory extends ActiveRecordCommon | class ProductCategory extends ActiveRecordCommon | ||||
{ | { |
class ProductCategorySearch extends ProductCategory | class ProductCategorySearch extends ProductCategory | ||||
{ | { | ||||
public function rules() | public function rules() | ||||
{ | { | ||||
return [ | return [ |
/** | /** | ||||
* This is the model class for table "commande_auto_produit". | * This is the model class for table "commande_auto_produit". | ||||
* | |||||
*/ | */ | ||||
class ProductSubscription extends ActiveRecordCommon | class ProductSubscription extends ActiveRecordCommon | ||||
{ | { | ||||
/** | /** | ||||
* @inheritdoc | * @inheritdoc | ||||
*/ | */ |
class SubscriptionEventSubscriber | class SubscriptionEventSubscriber | ||||
{ | { | ||||
/** | |||||
* @param Distribution $distribution | |||||
* @return void | |||||
*/ | |||||
public static function onActiveDistribution(Distribution $distribution): void | public static function onActiveDistribution(Distribution $distribution): void | ||||
{ | { | ||||
$orderManager = OrderManager::getInstance(); | $orderManager = OrderManager::getInstance(); |