@@ -4,7 +4,7 @@ namespace common\components; | |||
use common\logic\Config\TaxRate\TaxRateContainer; | |||
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\PointSaleDistribution\Wrapper\PointSaleDistributionContainer; | |||
use common\logic\Distribution\PointSaleDistribution\Wrapper\PointSaleDistributionManager; |
@@ -1,6 +1,6 @@ | |||
<?php | |||
namespace common\logic\Config\TaxRate; | |||
namespace common\logic\Config\TaxRate\Model; | |||
use common\components\ActiveRecordCommon; | |||
@@ -1,6 +1,6 @@ | |||
<?php | |||
namespace common\logic\Config\TaxRate; | |||
namespace common\logic\Config\TaxRate\Repository; | |||
use common\logic\AbstractRepository; | |||
@@ -1,6 +1,6 @@ | |||
<?php | |||
namespace common\logic\Config\TaxRate; | |||
namespace common\logic\Config\TaxRate\Repository; | |||
use common\logic\AbstractRepositoryQuery; | |||
@@ -1,8 +1,9 @@ | |||
<?php | |||
namespace common\logic\Config\TaxRate; | |||
namespace common\logic\Config\TaxRate\Service; | |||
use common\logic\AbstractBuilder; | |||
use common\logic\Config\TaxRate\Model\TaxRate; | |||
class TaxRateBuilder extends AbstractBuilder | |||
{ |
@@ -1,8 +1,11 @@ | |||
<?php | |||
namespace common\logic\Config\TaxRate; | |||
namespace common\logic\Config\TaxRate\Wrapper; | |||
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 | |||
{ |
@@ -1,8 +1,10 @@ | |||
<?php | |||
namespace common\logic\Config\TaxRate; | |||
namespace common\logic\Config\TaxRate\Wrapper; | |||
use common\logic\AbstractManager; | |||
use common\logic\Config\TaxRate\Repository\TaxRateRepository; | |||
use common\logic\Config\TaxRate\Service\TaxRateBuilder; | |||
/** | |||
* @mixin TaxRateRepository |
@@ -6,12 +6,16 @@ use common\logic\AbstractBuilder; | |||
use common\logic\Distribution\Distribution\Event\DistributionActiveEvent; | |||
use common\logic\Distribution\Distribution\Model\Distribution; | |||
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\Service\PointSaleDistributionBuilder; | |||
use common\logic\Distribution\ProductDistribution\Model\ProductDistribution; | |||
use common\logic\Distribution\ProductDistribution\Repository\ProductDistributionRepository; | |||
use common\logic\Distribution\ProductDistribution\Service\ProductDistributionBuilder; | |||
use common\logic\Order\Order\Repository\OrderRepository; | |||
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\User\UserProducer\Repository\UserProducerRepository; | |||
@@ -5,8 +5,8 @@ namespace common\logic\Distribution\Distribution\Service; | |||
use common\helpers\GlobalParam; | |||
use common\logic\AbstractService; | |||
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; | |||
class DistributionSolver extends AbstractService implements SolverInterface |
@@ -1,12 +1,11 @@ | |||
<?php | |||
namespace common\logic\Distribution\Distribution; | |||
namespace common\logic\Distribution\Distribution\Wrapper; | |||
use common\logic\AbstractManager; | |||
use common\logic\Distribution\Distribution\Repository\DistributionRepository; | |||
use common\logic\Distribution\Distribution\Service\DistributionBuilder; | |||
use common\logic\Distribution\Distribution\Service\DistributionSolver; | |||
use common\logic\Distribution\Distribution\Wrapper\DistributionContainer; | |||
/** | |||
* @mixin DistributionSolver |
@@ -40,7 +40,7 @@ namespace common\logic\Distribution\PointSaleDistribution\Model; | |||
use common\components\ActiveRecordCommon ; | |||
use common\logic\Distribution\Distribution\Model\Distribution; | |||
use common\logic\PointSale\PointSale\PointSale; | |||
use common\logic\PointSale\PointSale\Model\PointSale; | |||
class PointSaleDistribution extends ActiveRecordCommon | |||
{ |
@@ -5,7 +5,7 @@ namespace common\logic\Distribution\PointSaleDistribution\Repository; | |||
use common\logic\AbstractRepository; | |||
use common\logic\Distribution\Distribution\Model\Distribution; | |||
use common\logic\Distribution\PointSaleDistribution\Model\PointSaleDistribution; | |||
use common\logic\PointSale\PointSale\PointSale; | |||
use common\logic\PointSale\PointSale\Model\PointSale; | |||
class PointSaleDistributionRepository extends AbstractRepository | |||
{ |
@@ -7,6 +7,7 @@ use common\logic\Distribution\Distribution\Model\Distribution; | |||
use common\logic\Distribution\Distribution\Repository\DistributionRepository; | |||
use common\logic\Distribution\PointSaleDistribution\Model\PointSaleDistribution; | |||
use common\logic\Distribution\PointSaleDistribution\Repository\PointSaleDistributionRepository; | |||
use common\logic\PointSale\PointSale\Model\PointSale; | |||
use common\logic\PointSale\PointSale\Repository\PointSaleRepository; | |||
class PointSaleDistributionBuilder extends AbstractBuilder |
@@ -40,7 +40,7 @@ namespace common\logic\Distribution\ProductDistribution\Model; | |||
use common\components\ActiveRecordCommon ; | |||
use common\logic\Distribution\Distribution\Model\Distribution; | |||
use common\logic\Product\Product\Product; | |||
use common\logic\Product\Product\Model\Product; | |||
class ProductDistribution extends ActiveRecordCommon | |||
{ |
@@ -5,7 +5,7 @@ namespace common\logic\Distribution\ProductDistribution\Repository; | |||
use common\logic\AbstractRepository; | |||
use common\logic\Distribution\Distribution\Model\Distribution; | |||
use common\logic\Distribution\ProductDistribution\Model\ProductDistribution; | |||
use common\logic\Product\Product\Product; | |||
use common\logic\Product\Product\Model\Product; | |||
class ProductDistributionRepository extends AbstractRepository | |||
{ |
@@ -38,7 +38,7 @@ | |||
namespace common\logic\Document\DeliveryNote\Model; | |||
use common\logic\Document\Document\Document; | |||
use common\logic\Document\Document\Model\Document; | |||
class DeliveryNote extends Document | |||
{ |
@@ -3,7 +3,7 @@ | |||
namespace common\logic\Document\DeliveryNote\Service; | |||
use common\logic\Document\DeliveryNote\Model\DeliveryNote; | |||
use common\logic\Document\Document\DocumentBuilder; | |||
use common\logic\Document\Document\Service\DocumentBuilder; | |||
class DeliveryNoteBuilder extends DocumentBuilder | |||
{ |
@@ -3,8 +3,8 @@ | |||
namespace common\logic\Document\DeliveryNote\Service; | |||
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; | |||
class DeliveryNoteSolver extends DocumentSolver implements SolverInterface |
@@ -5,7 +5,7 @@ namespace common\logic\Document\DeliveryNote\Wrapper; | |||
use common\logic\Document\DeliveryNote\Repository\DeliveryNoteRepository; | |||
use common\logic\Document\DeliveryNote\Service\DeliveryNoteBuilder; | |||
use common\logic\Document\DeliveryNote\Service\DeliveryNoteSolver; | |||
use common\logic\Document\Document\DocumentManager; | |||
use common\logic\Document\Document\Wrapper\DocumentManager; | |||
/** | |||
* @mixin DeliveryNoteSolver |
@@ -6,8 +6,8 @@ use common\helpers\Price; | |||
use common\logic\AbstractService; | |||
use common\logic\Document\Document\Model\Document; | |||
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; | |||
class DocumentSolver extends AbstractService implements SolverInterface |
@@ -3,6 +3,9 @@ | |||
namespace common\logic\Document\Document\Wrapper; | |||
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 |
@@ -45,7 +45,6 @@ use common\logic\Document\Document\Model\Document; | |||
*/ | |||
class Quotation extends Document | |||
{ | |||
/** | |||
* @inheritdoc | |||
*/ |
@@ -6,7 +6,7 @@ use common\helpers\GlobalParam; | |||
use common\helpers\MeanPayment; | |||
use common\helpers\Price; | |||
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\Document\Document\Model\Document; | |||
use common\logic\Order\Order\Model\Order; |
@@ -12,7 +12,6 @@ use common\logic\User\User\Model\User; | |||
use common\logic\User\User\Service\UserSolver; | |||
use yii\helpers\Html; | |||
class OrderSolver extends AbstractService implements SolverInterface | |||
{ | |||
protected UserSolver $userSolver; |
@@ -40,9 +40,9 @@ namespace common\logic\Order\ProductOrder\Model; | |||
use common\helpers\GlobalParam; | |||
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\Product\Product\Product; | |||
use common\logic\Product\Product\Model\Product; | |||
/** | |||
* This is the model class for table "product_order". |
@@ -6,7 +6,7 @@ use common\helpers\GlobalParam; | |||
use common\logic\AbstractRepository; | |||
use common\logic\Distribution\Distribution\Model\Distribution; | |||
use common\logic\PointSale\PointSale\Model\PointSale; | |||
use common\logic\Producer\Producer\Producer; | |||
use common\logic\Producer\Producer\Model\Producer; | |||
class PointSaleRepository extends AbstractRepository | |||
{ |
@@ -38,8 +38,8 @@ | |||
namespace common\logic\Producer\Producer\Model; | |||
use common\logic\Config\TaxRate\Model\TaxRate; | |||
use common\logic\User\User\Model\User; | |||
use common\logic\Config\TaxRate\TaxRate; | |||
use common\logic\User\UserProducer\Model\UserProducer; | |||
use common\components\ActiveRecordCommon; | |||
@@ -39,15 +39,15 @@ | |||
namespace common\logic\Product\Product\Model; | |||
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\Producer\Producer\Model\Producer; | |||
use common\logic\Product\Product\Service\ProductSolver; | |||
use common\logic\Product\ProductCategory\Model\ProductCategory; | |||
use common\logic\Product\ProductPointSale\Model\ProductPointSale; | |||
use common\logic\Product\ProductPrice\Model\ProductPrice; | |||
use common\logic\Subscription\ProductSubscription\ProductSubscription; | |||
use common\components\ActiveRecordCommon; | |||
use common\logic\Subscription\ProductSubscription\Model\ProductSubscription; | |||
/** | |||
* This is the model class for table "product". |
@@ -42,7 +42,6 @@ use common\components\ActiveRecordCommon; | |||
/** | |||
* This is the model class for table "product_category". | |||
* | |||
*/ | |||
class ProductCategory extends ActiveRecordCommon | |||
{ |
@@ -44,7 +44,6 @@ use yii\data\ActiveDataProvider; | |||
class ProductCategorySearch extends ProductCategory | |||
{ | |||
public function rules() | |||
{ | |||
return [ |
@@ -43,11 +43,9 @@ use common\logic\Product\Product\Model\Product; | |||
/** | |||
* This is the model class for table "commande_auto_produit". | |||
* | |||
*/ | |||
class ProductSubscription extends ActiveRecordCommon | |||
{ | |||
/** | |||
* @inheritdoc | |||
*/ |
@@ -7,10 +7,6 @@ use common\logic\Order\Order\Wrapper\OrderManager; | |||
class SubscriptionEventSubscriber | |||
{ | |||
/** | |||
* @param Distribution $distribution | |||
* @return void | |||
*/ | |||
public static function onActiveDistribution(Distribution $distribution): void | |||
{ | |||
$orderManager = OrderManager::getInstance(); |