Skip to content

Commit

Permalink
Merge pull request #65 from yohancreemers/master
Browse files Browse the repository at this point in the history
Added Costcenter and Costunit entities
  • Loading branch information
stephangroen authored Jul 20, 2016
2 parents d253206 + faaf04f commit e68f102
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 0 deletions.
42 changes: 42 additions & 0 deletions src/Picqer/Financials/Exact/Costcenter.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php namespace Picqer\Financials\Exact;

/**
* Class Costcenter
*
* @package Picqer\Financials\Exact
* @see https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=HRMCostcenters
*
* @property Guid $ID Primary key
* @property Boolean $Active Indicates if the cost center is active: 0 = inactive 1 = active
* @property String $Code Code (user-defined ID)
* @property DateTime $Created Creation date
* @property Guid $Creator User ID of creator
* @property String $CreatorFullName Name of creator
* @property String $Description Description (text)
* @property Int32 $Division Division code
* @property DateTime $Modified Last modified date
* @property Guid $Modifier User ID of modifier
* @property String $ModifierFullName Name of modifier
*/
class Costcenter extends Model
{

use Query\Findable;
use Persistance\Storable;

protected $fillable = [
'ID',
'Active',
'Code',
'Created',
'Creator',
'CreatorFullName',
'Description',
'Division',
'Modified',
'Modifier',
'ModifierFullName'
];

protected $url = 'hrm/Costcenters';
}
40 changes: 40 additions & 0 deletions src/Picqer/Financials/Exact/Costunit.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?php namespace Picqer\Financials\Exact;

/**
* Class Costunit
*
* @package Picqer\Financials\Exact
* @see https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=HRMCostunits
*
* @property Guid $ID Primary key
* @property String $Code Code (user-defined ID)
* @property DateTime $Created Creation date
* @property Guid $Creator User ID of creator
* @property String $CreatorFullName Name of creator
* @property String $Description Description (text)
* @property Int32 $Division Division code
* @property DateTime $Modified Last modified date
* @property Guid $Modifier User ID of modifier
* @property String $ModifierFullName Name of modifier
*/
class Costunit extends Model
{

use Query\Findable;
use Persistance\Storable;

protected $fillable = [
'ID',
'Code',
'Created',
'Creator',
'CreatorFullName',
'Description',
'Division',
'Modified',
'Modifier',
'ModifierFullName'
];

protected $url = 'hrm/Costunits';
}

0 comments on commit e68f102

Please sign in to comment.