-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #269 from markjongkind/master
Added entity for ShopOrder
- Loading branch information
Showing
2 changed files
with
144 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
<?php | ||
|
||
namespace Picqer\Financials\Exact; | ||
|
||
/** | ||
* Class ShopOrder | ||
* | ||
* @package Picqer\Financials\Exact | ||
* @see https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=ManufacturingShopOrders | ||
* | ||
* @property Guid $ID Primary key | ||
* @property String $CADDrawingURL URL to CAD Drawing Specified on Manufacturing Bill of Material | ||
* @property String $Costcenter The cost center linked to the shop order | ||
* @property String $CostcenterDescription Description of Costcenter | ||
* @property String $Costunit The cost unit linked to the shop order | ||
* @property String $CostunitDescription Description of Costunit | ||
* @property DateTime $Created Creation date | ||
* @property Guid $Creator User ID of creator | ||
* @property String $CreatorFullName Name of creator | ||
* @property String $Description Description of the shop order | ||
* @property Int32 $Division Division code | ||
* @property DateTime $EntryDate Date on which the shop order was placed | ||
* @property Byte $IsBatch Does the material plan's item use batch numbers | ||
* @property Byte $IsFractionAllowedItem Indicates if fractions (for example 0.35) are allowed for quantities of the material plan's item | ||
* @property Byte $IsInPlanning Indicator that Shop order is in planning | ||
* @property Byte $IsOnHold Indicator if the Shop order is on hold | ||
* @property Byte $IsReleased Indicator that the Shop order has been released to production | ||
* @property Byte $IsSerial Does the material plan's item use serial numbers | ||
* @property Guid $Item Reference to the item | ||
* @property String $ItemCode Code of the item created by this shop order | ||
* @property String $ItemDescription Description of the item created by this shop order | ||
* @property String $ItemPictureUrl URL of the item created by this shop order | ||
* @property Guid $ItemVersion Reference to ItemVersion | ||
* @property String $ItemVersionDescription Description of Item Version | ||
* @property DateTime $Modified Last modified date | ||
* @property Guid $Modifier User ID of modifier | ||
* @property String $ModifierFullName Name of modifier | ||
* @property String $Notes Notes - only viewed internally | ||
* @property DateTime $PlannedDate Planned end date of this shop order | ||
* @property Double $PlannedQuantity Planned quantity | ||
* @property DateTime $PlannedStartDate Planned start date of this shop order | ||
* @property Double $ProducedQuantity Produced quantity | ||
* @property Int32 $ProductionLeadDays Production lead days | ||
* @property Guid $Project Reference to Project | ||
* @property String $ProjectDescription Description of Project | ||
* @property Double $ReadyToShipQuantity Quantity ready to ship | ||
* @property Int32 $SalesOrderLineCount Number of sales orders linked to this shop order | ||
* @property SalesOrderlines $SalesOrderLines Collection of Sales order lines | ||
* @property Int32 $ShopOrderByProductPlanBackflushCount Number of shop order by-product plans, which are backflushed, for this shop order | ||
* @property Int32 $ShopOrderByProductPlanCount Number of shop order by-product plans for this shop order | ||
* @property Guid $ShopOrderMain Shop order main | ||
* @property Int32 $ShopOrderMainNumber Shop order main number | ||
* @property Int32 $ShopOrderMaterialPlanBackflushCount Number of shop order material plans, which are backflushed, for this shop order | ||
* @property Int32 $ShopOrderMaterialPlanCount Number of shop order material plans for this shop order | ||
* @property ShopOrderMaterialPlans $ShopOrderMaterialPlans Collection of Shop order Material plans | ||
* @property Int32 $ShopOrderNumber Unique number to indentify the shop order | ||
* @property String $ShopOrderNumberString Unique number to indentify the shop order (as a string to allow OData filtering, e.g. $filter=substringof('123',ShopOrderNumberString) eq true | ||
* @property Guid $ShopOrderParent Shop order parent | ||
* @property Int32 $ShopOrderParentNumber Shop order parent number | ||
* @property Int32 $ShopOrderRoutingStepPlanCount Number of shop order routing step plans for this shop order | ||
* @property ShopOrderRoutingStepPlans $ShopOrderRoutingStepPlans Collection of Shop order Routing step plans | ||
* @property Int32 $Status Indicates the type of Shop Order: 10 Open, 20 In process, 30 Finished, 40 Completed | ||
* @property Int32 $SubShopOrderCount The count of material lines of this shop order, which have been linked to a sub order | ||
* @property Int32 $Type Overall status of the line: 9040 Regular | ||
* @property String $Unit Unit of the item created by this shop order | ||
* @property String $UnitDescription Unit description of the unit of the item created by this shop order | ||
* @property Guid $Warehouse Reference to the Warehouse associated with the Shop order | ||
* @property String $YourRef Your reference (of the customer) | ||
*/ | ||
class ShopOrder extends Model | ||
{ | ||
use Query\Findable; | ||
use Persistance\Storable; | ||
|
||
protected $primaryKey = 'ID'; | ||
|
||
protected $fillable = [ | ||
'ID', | ||
'CADDrawingURL', | ||
'Costcenter', | ||
'CostcenterDescription', | ||
'Costunit', | ||
'CostunitDescription', | ||
'Created', | ||
'Creator', | ||
'CreatorFullName', | ||
'Description', | ||
'Division', | ||
'EntryDate', | ||
'IsBatch', | ||
'IsFractionAllowedItem', | ||
'IsInPlanning', | ||
'IsOnHold', | ||
'IsReleased', | ||
'IsSerial', | ||
'Item', | ||
'ItemCode', | ||
'ItemDescription', | ||
'ItemPictureUrl', | ||
'ItemVersion', | ||
'ItemVersionDescription', | ||
'Modified', | ||
'Modifier', | ||
'ModifierFullName', | ||
'Notes', | ||
'PlannedDate', | ||
'PlannedQuantity', | ||
'PlannedStartDate', | ||
'ProducedQuantity', | ||
'ProductionLeadDays', | ||
'Project', | ||
'ProjectDescription', | ||
'ReadyToShipQuantity', | ||
'SalesOrderLineCount', | ||
'SalesOrderLines', | ||
'ShopOrderByProductPlanBackflushCount', | ||
'ShopOrderByProductPlanCount', | ||
'ShopOrderMain', | ||
'ShopOrderMainNumber', | ||
'ShopOrderMaterialPlanBackflushCount', | ||
'ShopOrderMaterialPlanCount', | ||
'ShopOrderMaterialPlans', | ||
'ShopOrderNumber', | ||
'ShopOrderNumberString', | ||
'ShopOrderParent', | ||
'ShopOrderParentNumber', | ||
'ShopOrderRoutingStepPlanCount', | ||
'ShopOrderRoutingStepPlans', | ||
'Status', | ||
'SubShopOrderCount', | ||
'Type', | ||
'Unit', | ||
'UnitDescription', | ||
'Warehouse', | ||
'YourRef' | ||
]; | ||
|
||
protected $url = 'manufacturing/ShopOrders'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters