forked from Philippe-Mange/exact-php-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVatCode.php
101 lines (96 loc) · 5.73 KB
/
VatCode.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
<?php namespace Picqer\Financials\Exact;
/**
* Class VatCode
*
* @package Picqer\Financials\Exact
* @see https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=vatVATCodes
*
* @property Guid $ID Primary key
* @property Guid $Account Tax account
* @property String $AccountCode Code of Account
* @property String $AccountName Name of Account
* @property Byte $CalculationBasis Indicates how to calculate the tax. 0 = based on the gross amount, 1 = based on the gross amount + another tax
* @property Boolean $Charged Indicates if transactions using the VAT code are transactions of the domestic VAT charging regulation (such as those for subcontractors) or transactions that are registered within the EU. If Charged=1 and linked to a purchase invoice, both a line for the VAT to pay and a line for the VAT to claim are being created
* @property String $Code Code of Account
* @property String $Country Obsolete
* @property Boolean $Created Indicates if transactions using the VAT code are transactions of the domestic VAT charging regulation (such as those for subcontractors) or transactions that are registered within the EU. If Charged=1 and linked to a purchase invoice, both a line for the VAT to pay and a line for the VAT to claim are being created
* @property Guid $Creator User ID of creator
* @property String $CreatorFullName Name of creator
* @property String $Description Description of the VAT code
* @property Int32 $Division Division code
* @property String $EUSalesListing Indicates if and how transactions using the VAT code appear on the ICT return (EU sales list). L = Listing goods, N = No listing, S = Listing services, T = Triangulation
* @property Guid $GLDiscountPurchase Indicates the purchase discount GL account linked to the VAT codes for German legislation
* @property String $GLDiscountPurchaseCode Code of GLDiscountPurchase
* @property String $GLDiscountPurchaseDescription Description of GLDiscountPurchase
* @property Guid $GLDiscountSales Indicates the sales discount GL account linked to the VAT codes for German legislation
* @property String $GLDiscountSalesCode Code of GLDiscountSales
* @property String $GLDiscountSalesDescription Description of GLDiscountSales
* @property Guid $GLToClaim G/L account that is used to book the VAT to claim. If you enter purchases with a VAT code, the VAT amount to be claimed is entered to this VAT account. Must be of type VAT
* @property String $GLToClaimCode Code of GLToClaim
* @property String $GLToClaimDescription Description of GLToClaim
* @property Guid $GLToPay G/L account that is used to book the VAT to pay. If you enter sales with a VAT code, the VAT amount to be paid is entered to this VAT account. Must be of type VAT
* @property String $GLToPayCode Code of GLToPay
* @property String $GLToPayDescription Description of GLToPay
* @property Boolean $IntraStat Indicates if intrastat is used
* @property Boolean $IsBlocked Indicates if the VAT code may still be used
* @property String $LegalText Legal description for VAT code to print in the total block of the invoice
* @property DateTime $Modified Last modified date
* @property Guid $Modifier User ID of modifier
* @property String $ModifierFullName User name of modifier
* @property Double $Percentage Percentage of the VAT code
* @property Int16 $TaxReturnType Indicates what type of Taxcode it is: can be VAT, IncomeTax
* @property Guid $Type G/L account that is used to book the VAT to claim. If you enter purchases with a VAT code, the VAT amount to be claimed is entered to this VAT account. Must be of type VAT
* @property String $VatDocType Field in VAT code maintenance to calculate different VATs depending on the selected document type. P = purchase invoice, F = freelance invoice, E = expense voucher. The field is valid for witholding tax type
* @property Byte $VatMargin The VAT margin scheme is used for the trade of secondhand goods which are purchased without VAT (for example when a company buys a secondhand good from a private person). In the VAT margin scheme, the VAT is not calculated based on the sales price. Instead of that, the VAT is calculated based on the margin (gross sales price minus the gross purchase price)
* @property Int16 $VATPartialRatio Partial ratio explains which part of the VAT the company has to pay. Used in some branches where the sellers have a bad reputation, so the buyers have to take over the VAT-liability
* @property VATPercentages $VATPercentages VAT percentages. You can have several VAT percentages, with start and end dates
* @property String $VATTransactionType Indicates the type of transactions for which the VAT code may be used. B = Both, P = Purchase, S = Sales
*/
class VatCode extends Model
{
use Query\Findable;
use Persistance\Storable;
protected $fillable = [
'ID',
'Account',
'AccountCode',
'AccountName',
'CalculationBasis',
'Charged',
'Code',
'Country',
'Created',
'Creator',
'CreatorFullName',
'Description',
'Division',
'EUSalesListing',
'GLDiscountPurchase',
'GLDiscountPurchaseCode',
'GLDiscountPurchaseDescription',
'GLDiscountSales',
'GLDiscountSalesCode',
'GLDiscountSalesDescription',
'GLToClaim',
'GLToClaimCode',
'GLToClaimDescription',
'GLToPay',
'GLToPayCode',
'GLToPayDescription',
'IntraStat',
'IsBlocked',
'LegalText',
'Modified',
'Modifier',
'ModifierFullName',
'Percentage',
'TaxReturnType',
'Type',
'VatDocType',
'VatMargin',
'VATPartialRatio',
'VATPercentages',
'VATTransactionType'
];
protected $url = 'vat/VATCodes';
}