Skip to content

Commit

Permalink
Merge pull request #66 from it-agency/processplan_new_entities
Browse files Browse the repository at this point in the history
Добавлены сущности для получения материалов и производимой продукции …
  • Loading branch information
tooyz authored May 29, 2020
2 parents afc4777 + 8c0ae7b commit 4d7cacb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/Entities/Documents/Processings/ProcessingPlanMaterial.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace MoySklad\Entities\Documents\Processings;


class ProcessingPlanMaterial extends AbstractProcessing {
public static $entityName = 'processingplanmaterial';
}
8 changes: 8 additions & 0 deletions src/Entities/Documents/Processings/ProcessingPlanProduct.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace MoySklad\Entities\Documents\Processings;


class ProcessingPlanProduct extends AbstractProcessing {
public static $entityName = 'processingplanresult';
}
6 changes: 5 additions & 1 deletion src/Registers/EntityRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
use MoySklad\Entities\Documents\PriceLists\PriceList;
use MoySklad\Entities\Documents\PriceLists\PriceListRow;
use MoySklad\Entities\Documents\Processings\ProcessingPlanFolder;
use MoySklad\Entities\Documents\Processings\ProcessingPlanMaterial;
use MoySklad\Entities\Documents\Processings\ProcessingPlanProduct;
use MoySklad\Entities\Documents\Templates\CustomTemplate;
use MoySklad\Entities\Products\Components\AbstractComponent;
use MoySklad\Entities\Products\Components\BundleComponent;
Expand Down Expand Up @@ -175,7 +177,9 @@ class EntityRegistry extends AbstractSingleton{
PriceList::class,
PriceListRow::class,
Audit::class,
AuditEvent::class
AuditEvent::class,
ProcessingPlanMaterial::class,
ProcessingPlanProduct::class,
];
public $entityNames = [];

Expand Down

0 comments on commit 4d7cacb

Please sign in to comment.