-
Notifications
You must be signed in to change notification settings - Fork 200
/
Asset.php
131 lines (127 loc) · 6.33 KB
/
Asset.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?php
namespace Picqer\Financials\Exact;
/**
* Class Asset.
*
* @see https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=AssetsAssets
*
* @property string $ID Primary key
* @property int $AlreadyDepreciated Indicates if an asset was already depreciated before registering it in Exact Online
* @property string $AssetFrom In case of a transfer or a split, the original asset ID is saved in this field. This is done to provide tracability of the Asset
* @property string $AssetFromDescription Description of AssetFrom
* @property string $AssetGroup Asset group identifies GLAccounts to be used for Asset transactions
* @property string $AssetGroupCode Code of the asset group
* @property string $AssetGroupDescription Description of the asset group
* @property float $CatalogueValue The catalogue value of the asset
* @property string $Code Code of the asset
* @property CommercialBuildingValue[] $CommercialBuildingValues Commercial building value. You can have several commercial building value, with start and end dates
* @property string $Costcenter Assets can be linked to a cost center
* @property string $CostcenterDescription Description of Costcenter
* @property string $Costunit Assets can be linked to a cost unit
* @property string $CostunitDescription Description of Costunit
* @property string $Created Creation date
* @property string $Creator User ID of creator
* @property string $CreatorFullName Name of creator
* @property string $CustomField Custom field endpoint
* @property float $DeductionPercentage Used for Belgium legislation. Used to produce the official 'Investment deduction' report
* @property float $DepreciatedAmount Amount that is already depreciated when adding an existing asset. Can only be filled when 'Alreadydepreciated' is on
* @property int $DepreciatedPeriods Number of periods that already have been depreciated for the asset. Can only be filled when 'Alreadydepreciated' is on
* @property string $DepreciatedStartDate StartDate of depreciating. Can only be filled when 'Alreadydepreciated' is on
* @property string $Description This is the description of the Asset
* @property int $Division Division code
* @property string $EndDate Asset EndDate is filled when asset is Sold or Inactive
* @property int $EngineEmission Engine emission of the asset, needed to calculate the co² report
* @property int $EngineType Engine type of the asset, Needed to generate a co² report
* @property string $GLTransactionLine Links to the gltransactions.id. GL transaction line based on which the asset is created
* @property string $GLTransactionLineDescription Description of GLTransactionLine
* @property string $InvestmentAccount Supplier of the asset
* @property string $InvestmentAccountCode Code of InvestmentAccount
* @property string $InvestmentAccountName Name of InvestmentAccount
* @property float $InvestmentAmountDC Investment amount in the default currency of the company
* @property float $InvestmentAmountFC Investment value of the asset. Currently the field is filled with the PurchasePriceLocal. Can be status 'Not used' after sources have been cleaned
* @property string $InvestmentCurrency Indicates the currency of the investment amount
* @property string $InvestmentCurrencyDescription Description of InvestmentCurrency
* @property string $InvestmentDate Refers to the original date when the asset was bought
* @property int $InvestmentDeduction Belgian functionality, to determine how a local legal report regarding investment deduction must be created
* @property string $Modified Last modified date
* @property string $Modifier User ID of modifier
* @property string $ModifierFullName Name of modifier
* @property string $Notes Extra remarks for the asset
* @property string $Parent Parent asset
* @property string $ParentCode Code of Parent
* @property string $ParentDescription Description of Parent
* @property string $Picture Image for an asset
* @property string $PictureFileName Filename of the image
* @property string $PrimaryMethod First method of depreciation. Currently, it is the only one used
* @property string $PrimaryMethodCode Code of PrimaryMethod
* @property string $PrimaryMethodDescription Description of PrimaryMethod
* @property float $ResidualValue Indicates the residual value of the asset at the end of the depreciation
* @property string $StartDate Asset Depreciation StartDate
* @property int $Status Identifies the status of the Asset. (1 = Active, 2 = Not validated, 3 = Inactive, 4 = Depreciated, 5 = Blocked, 6 = Sold)
* @property string $TransactionEntryID Reference to the transaction lines that make up the financial entry.
* @property int $TransactionEntryNo Entry number of transaction
* @property string $Type Indicate if an asset is commercial building or other asset. (0 = Other Assets, 1 = Commercial Building)
*/
class Asset extends Model
{
use Query\Findable;
protected $fillable = [
'ID',
'AlreadyDepreciated',
'AssetFrom',
'AssetFromDescription',
'AssetGroup',
'AssetGroupCode',
'AssetGroupDescription',
'CatalogueValue',
'Code',
'CommercialBuildingValues',
'Costcenter',
'CostcenterDescription',
'Costunit',
'CostunitDescription',
'Created',
'Creator',
'CreatorFullName',
'CustomField',
'DeductionPercentage',
'DepreciatedAmount',
'DepreciatedPeriods',
'DepreciatedStartDate',
'Description',
'Division',
'EndDate',
'EngineEmission',
'EngineType',
'GLTransactionLine',
'GLTransactionLineDescription',
'InvestmentAccount',
'InvestmentAccountCode',
'InvestmentAccountName',
'InvestmentAmountDC',
'InvestmentAmountFC',
'InvestmentCurrency',
'InvestmentCurrencyDescription',
'InvestmentDate',
'InvestmentDeduction',
'Modified',
'Modifier',
'ModifierFullName',
'Notes',
'Parent',
'ParentCode',
'ParentDescription',
'Picture',
'PictureFileName',
'PrimaryMethod',
'PrimaryMethodCode',
'PrimaryMethodDescription',
'ResidualValue',
'StartDate',
'Status',
'TransactionEntryID',
'TransactionEntryNo',
'Type',
];
protected $url = 'assets/Assets';
}