forked from picqer/exact-php-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TransactionLine.php
157 lines (153 loc) · 6.85 KB
/
TransactionLine.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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<?php
namespace Picqer\Financials\Exact;
/**
* Class TransactionLine
*
* @package Picqer\Financials\Exact
* @see https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=FinancialTransactionTransactionLines
*
* @property string $ID Primary key
* @property string $Account Reference to account
* @property String $AccountCode Code of the Account
* @property String $AccountName Name of the Account
* @property Double $AmountDC Amount in the default currency of the company
* @property Double $AmountFC Amount in the currency of the transaction
* @property Double $AmountVATBaseFC Vat base amount in the currency of the transaction
* @property Double $AmountVATFC Vat amount in the currency of the transaction
* @property string $Asset Reference to asset
* @property String $AssetCode Code of Asset
* @property String $AssetDescription Description of Asset
* @property String $CostCenter Reference to cost center
* @property String $CostCenterDescription Description of CostCenter
* @property String $CostUnit Reference to cost unit
* @property String $CostUnitDescription Description of CostUnit
* @property DateTime $Created Creation date
* @property string $Creator User ID of creator
* @property String $CreatorFullName Name of creator
* @property String $Currency Currency
* @property DateTime $Date Date
* @property String $Description Description
* @property Int32 $Division Division code
* @property string $Document Reference to document
* @property Int32 $DocumentNumber Number of the document
* @property String $DocumentSubject Subject of the document
* @property DateTime $DueDate Date that payment should be done
* @property string $EntryID Reference to header of the entry
* @property Int32 $EntryNumber Entry number of the header
* @property Double $ExchangeRate Exchange rate
* @property Double $ExtraDutyAmountFC Extra duty amount
* @property Double $ExtraDutyPercentage Extra duty percentage
* @property Int16 $FinancialPeriod Financial period
* @property Int16 $FinancialYear Financial year
* @property string $GLAccount General ledger account
* @property String $GLAccountCode Code of GLAccount
* @property String $GLAccountDescription Description of GLAccount
* @property Int32 $InvoiceNumber Invoice number
* @property string $Item Reference to item
* @property String $ItemCode Code of Item
* @property String $ItemDescription Description of Item
* @property String $JournalCode The journal code
* @property String $JournalDescription The journal description
* @property Int32 $LineNumber Line number
* @property Int16 $LineType Line type
* @property DateTime $Modified Last modified date
* @property string $Modifier User ID of modifier
* @property String $ModifierFullName Name of modifier
* @property String $Notes Extra remarks
* @property string $OffsetID OffsetID
* @property Int32 $OrderNumber Order number
* @property Double $PaymentDiscountAmount Discount amount when paid in time
* @property String $PaymentReference Payment reference
* @property string $Project Reference to project
* @property String $ProjectCode Code of Project
* @property String $ProjectDescription Description of Project
* @property Double $Quantity Quantity
* @property String $SerialNumber Serial number of item
* @property Int16 $Status 20 = Open, 50 = Processed
* @property string $Subscription Reference to subscription
* @property String $SubscriptionDescription Description of Subscription
* @property String $TrackingNumber Tracking number of item
* @property String $TrackingNumberDescription Tracking number description
* @property Int32 $Type The transaction type.10 = Opening balance142 = Issue to parent20 = Sales entry145 = Shop order time entry21 = Sales credit note146 = Shop order time entry reversal30 = Purchase entry147 = Shop order by-product receipt31 = Purchase credit note148 = Shop order by-product reversal40 = Cash flow150 = Requirement issue50 = VAT return151 = Requirement reversal70 = Asset - Depreciation152 = Returned from parent71 = Asset - Investment155 = Subcontract Issue72 = Asset - Revaluation156 = Subcontract reversal73 = Asset - Transfer158 = Shop order completed74 = Asset - Split162 = Finish assembly75 = Asset - Discontinue170 = Payroll76 = Asset - Sales180 = Stock revaluation80 = Revaluation181 = Financial revaluation82 = Exchange rate difference195 = Stock count83 = Payment difference290 = Correction entry84 = Deferred revenue310 = Period closing85 = Tracking number:Revaluation320 = Year end reflection86 = Deferred cost321 = Year end costing87 = VAT on prepayment322 = Year end profits to gross profit90 = Other323 = Year end costs to gross profit120 = Delivery324 = Year end tax121 = Sales return325 = Year end gross profit to net p/l130 = Receipt326 = Year end net p/l to balance sheet131 = Purchase return327 = Year end closing balance140 = Shop order stock receipt328 = Year start opening balance141 = Shop order stock reversal3000 = Budget
* @property String $VATCode Vat code
* @property String $VATCodeDescription Description of VATCode
* @property Double $VATPercentage Vat percentage
* @property String $VATType Vat type
* @property String $YourRef Your reference (of customer)
*/
class TransactionLine extends Model
{
use Query\Findable;
use Persistance\Storable;
protected $fillable = [
'ID',
'Account',
'AccountCode',
'AccountName',
'AmountDC',
'AmountFC',
'AmountVATBaseFC',
'AmountVATFC',
'Asset',
'AssetCode',
'AssetDescription',
'CostCenter',
'CostCenterDescription',
'CostUnit',
'CostUnitDescription',
'Created',
'Creator',
'CreatorFullName',
'Currency',
'Date',
'Description',
'Division',
'Document',
'DocumentNumber',
'DocumentSubject',
'DueDate',
'EntryID',
'EntryNumber',
'ExchangeRate',
'ExtraDutyAmountFC',
'ExtraDutyPercentage',
'FinancialPeriod',
'FinancialYear',
'GLAccount',
'GLAccountCode',
'GLAccountDescription',
'InvoiceNumber',
'Item',
'ItemCode',
'ItemDescription',
'JournalCode',
'JournalDescription',
'LineNumber',
'LineType',
'Modified',
'Modifier',
'ModifierFullName',
'Notes',
'OffsetID',
'OrderNumber',
'PaymentDiscountAmount',
'PaymentReference',
'Project',
'ProjectCode',
'ProjectDescription',
'Quantity',
'SerialNumber',
'Status',
'Subscription',
'SubscriptionDescription',
'TrackingNumber',
'TrackingNumberDescription',
'Type',
'VATCode',
'VATCodeDescription',
'VATPercentage',
'VATType',
'YourRef',
];
protected $url = 'financialtransaction/TransactionLines';
}