forked from picqer/exact-php-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SalesInvoiceLine.php
103 lines (98 loc) · 5 KB
/
SalesInvoiceLine.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
<?php namespace Picqer\Financials\Exact;
/**
* Class SalesInvoiceLine
*
* @package Picqer\Financials\Exact
* @see https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=salesinvoiceSalesInvoiceLines
*
* @property Guid $ID Primary key
* @property Double $AmountDC Amount in the default currency of the company. For almost all lines this can be calculated like: AmountDC = AmountFC * RateFC
* @property Double $AmountFC Amount in the default currency of the company. For almost all lines this can be calculated like: AmountDC = AmountFC * RateFC
* @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 String $Description Description of CostCenter
* @property Double $Discount Discount given on the default price. Discount = (DefaultPrice of Item - PriceItem in line) / DefaultPrice of Item
* @property Int32 $Division Division code
* @property Guid $Employee Link to Employee originating from time and cost transactions
* @property String $EmployeeFullName Name of employee
* @property DateTime $EndTime EndTime is used to store the last date of a period. EndTime is used in combination with StartTime
* @property Guid $GLAccount The GL Account of the sales invoice line. This field is mandatory. This field is generated based on the revenue account of the item (or the related item group). G/L Account is also used to determine whether the costcenter / costunit is mandatory
* @property String $GLAccountDescription Description of GLAccount
* @property Guid $InvoiceID The InvoiceID identifies the sales invoice. All the lines of a sales invoice have the same InvoiceID
* @property Double $Item Discount given on the default price. Discount = (DefaultPrice of Item - PriceItem in line) / DefaultPrice of Item
* @property String $ItemCode Item code
* @property String $ItemDescription Description of Item
* @property Int32 $LineNumber Indicates the sequence of the lines within one invoice
* @property Double $NetPrice Net price of the sales invoice line
* @property String $Notes Extra notes
* @property Guid $Pricelist Price list
* @property String $PricelistDescription Description of Pricelist
* @property Guid $Project The project to which the sales transaction line is linked. The project can be different per line. Sometimes also the project in the header is filled although this is not really used
* @property String $ProjectDescription Description of Project
* @property Double $Quantity The number of items sold in default units. The quantity shown in the entry screen is Quantity * UnitFactor
* @property DateTime $StartTime EndTime is used to store the last date of a period. EndTime is used in combination with StartTime
* @property Guid $Subscription Obsolete. When generating invoices from subscriptions, this field records the link between invoice lines and subscription lines
* @property String $SubscriptionDescription Description of Subscription
* @property Guid $TaxSchedule Tax schedule linked
* @property String $TaxScheduleCode Code of the tax schedule
* @property String $TaxScheduleDescription Description of the tax schedule
* @property String $UnitCode Code of Unit
* @property String $UnitDescription Description of CostUnit
* @property Double $UnitPrice Price per unit
* @property Double $VATAmountDC VAT amount in the default currency of the company
* @property Double $VATAmountFC VAT amount in the currency of the transaction
* @property String $VATCode The VAT code that is used when the invoice is registered
* @property String $VATCodeDescription Description of VATCode
* @property Double $VATPercentage The vat percentage of the VAT code. This is the percentage at the moment the invoice is created. It's also used for the default calculation of VAT amounts and VAT base amounts
*/
class SalesInvoiceLine extends Model
{
use Query\Findable;
use Persistance\Storable;
protected $fillable = [
'ID',
'AmountDC',
'AmountFC',
'CostCenter',
'CostCenterDescription',
'CostUnit',
'CostUnitDescription',
'Description',
'Discount',
'Division',
'Employee',
'EmployeeFullName',
'EndTime',
'GLAccount',
'GLAccountDescription',
'InvoiceID',
'Item',
'ItemCode',
'ItemDescription',
'LineNumber',
'NetPrice',
'Notes',
'Pricelist',
'PricelistDescription',
'Project',
'ProjectDescription',
'Quantity',
'StartTime',
'Subscription',
'SubscriptionDescription',
'TaxSchedule',
'TaxScheduleCode',
'TaxScheduleDescription',
'UnitCode',
'UnitDescription',
'UnitPrice',
'VATAmountDC',
'VATAmountFC',
'VATCode',
'VATCodeDescription',
'VATPercentage'
];
protected $url = 'salesinvoice/SalesInvoiceLines';
}