Skip to content

Commit 6d40baa

Browse files
authored
Merge pull request #656 from DannyvdSluijs/Update-from-documentation-2024-08-27
feat: Update based on documentation d.d. 2024-08-27
2 parents b5b36c5 + c32e034 commit 6d40baa

38 files changed

+96
-34
lines changed

src/Picqer/Financials/Exact/Account.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
* @property string $InvoiceAccountCode Code of InvoiceAccount
8181
* @property string $InvoiceAccountName Name of InvoiceAccount
8282
* @property int $InvoiceAttachmentType Indicates which attachment types should be sent when a sales invoice is printed. Only values in related table with Invoice=1 are allowed
83-
* @property int $InvoicingMethod Method of sending for sales invoices. Values: 1: Paper, 2: EMail, 4: Mailbox (electronic exchange), 8: Send and track
83+
* @property int $InvoicingMethod Method of sending for sales invoices. Values: 1: Paper, 2: EMail, 4: Mailbox (electronic exchange), 8: Send and trackTake notes: To use the '4 - Mailbox (electronic exchange)' option, the 'Mailbox' feature set is required in the licence.
8484
* @property int $IsAccountant Indicates whether the account is an accountant. Values: 0 = No accountant, 1 = True, but accountant doesn't want his name to be published in the list of accountants, 2 = True, and accountant is published in the list of accountants
8585
* @property int $IsAgency Indicates whether the accounti is an agency
8686
* @property int $IsAnonymised Indicates whtether the account is anonymised.
@@ -119,7 +119,7 @@
119119
* @property string $PhoneExtension Phone number extention
120120
* @property string $Postcode Visit address postcode
121121
* @property string $PriceList Default sales price list for account
122-
* @property string $PurchaseCurrency Currency of purchase
122+
* @property string $PurchaseCurrency Currency of purchaseTake notes: If the currency code input is not in the active currencies, the value will be set to empty.
123123
* @property string $PurchaseCurrencyDescription Description of PurchaseCurrency
124124
* @property int $PurchaseLeadDays Indicates number of days required to receive a purchase. Acts as a default
125125
* @property string $PurchaseVATCode Default VAT code used for purchase entries
@@ -130,7 +130,7 @@
130130
* @property string $ResellerCode Code of Reseller
131131
* @property string $ResellerName Name of Reseller
132132
* @property string $RSIN Fiscal number for NL legislation
133-
* @property string $SalesCurrency Currency of Sales used for Time & Billing
133+
* @property string $SalesCurrency Currency of Sales used for Time & BillingTake notes: If the currency code input is not in the active currencies, the value will be set to empty.
134134
* @property string $SalesCurrencyDescription Description of SalesCurrency
135135
* @property string $SalesVATCode Default VAT code for a sales entry
136136
* @property string $SalesVATCodeDescription Description of SalesVATCode

src/Picqer/Financials/Exact/Address.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
* @property string $FreeTextField_03 Free text field 3
4646
* @property string $FreeTextField_04 Free text field 4
4747
* @property string $FreeTextField_05 Free text field 5
48-
* @property string $Mailbox Mailbox
48+
* @property string $Mailbox MailboxTake notes: The 'Mailbox' functionality required the Mailbox feature set in the licence.
4949
* @property bool $Main Indicates if the address is the main address for this type
5050
* @property string $Modified Last modified date
5151
* @property string $Modifier User ID of modifier

src/Picqer/Financials/Exact/CostTransaction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @see https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=ProjectCostTransactions
99
*
1010
* @property string $ID Primary key
11-
* @property string $Account Guid ID of account that is linked to the project
11+
* @property string $Account Reference to the account
1212
* @property string $AccountName Name of account that is linked to the project
1313
* @property float $AmountFC Calculated amount of the transaction based on (Quantity * PriceFC)
1414
* @property string $Attachment Attachment linked to the transaction (not mandatory)

src/Picqer/Financials/Exact/CustomField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @property string $BusinessComponentName Business component name
1212
* @property string $Caption Custom field description
1313
* @property string $PropertyName Custom business property name
14-
* @property string $RefersTo The name of the referencing entity. The supported values are Item, Account, Project, Opportunity, SalesOrder, User and Contact
14+
* @property string $RefersTo The name of the referencing entity. The supported values are Item, Account, Project, Opportunity, SalesOrder, Contact, User, Employee and Document
1515
* @property string $Type Represents the data type of the custom field. The supported datatypes are boolean, integer, string, double, date and GUID
1616
* @property string $Value Custom field data
1717
*/

src/Picqer/Financials/Exact/DefaultAddressForAccount.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
* @property string $FreeTextField_03 Free text field 3
4646
* @property string $FreeTextField_04 Free text field 4
4747
* @property string $FreeTextField_05 Free text field 5
48-
* @property string $Mailbox Mailbox
48+
* @property string $Mailbox MailboxTake notes: The 'Mailbox' functionality required the Mailbox feature set in the licence.
4949
* @property bool $Main Indicates if the address is the main address for this type
5050
* @property string $Modified Last modified date
5151
* @property string $Modifier User ID of modifier

src/Picqer/Financials/Exact/Employee.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
* @property string $Creator User ID of creator
3030
* @property string $CreatorFullName Name of creator
3131
* @property string $Customer Customer ID
32+
* @property string $CustomField Custom field endpoint. Provided only for the Exact Online Premium users.
3233
* @property int $Division Division code
3334
* @property string $Email Page: User maintenance page; Section: PersonalE-mail address of a user. If employee is linked to a user, the user email is stored in this property.Note: The value is only returned if user has any of the following roles: View userEnter variable payroll mutationsManage employeesAnonymise employee and userView personal information Of employeesUsers created in Exact Online can access the company or companies in an administration.
3435
* @property int $EmployeeHID Employee number
@@ -60,7 +61,9 @@
6061
* @property string $Person Reference to the persons table in which the personal data of the employee is stored
6162
* @property string $Phone Phone numberNote: The value is only returned if user has any of the following roles: View userEnter variable payroll mutationsManage employeesAnonymise employee and userView personal information Of employees
6263
* @property string $PhoneExtension Phone number extensionNote: The value is only returned if user has any of the following roles: View userEnter variable payroll mutationsManage employeesAnonymise employee and userView personal information Of employees
64+
* @property string $Picture Bytes of the logo image
6365
* @property string $PictureFileName Filename of picture
66+
* @property string $PictureThumbnailUrl Thumbnail url of the picture
6467
* @property string $PictureUrl Url of picture
6568
* @property string $Postcode PostcodeNote: The value is only returned if user has any of the following roles: View userEnter variable payroll mutationsManage employeesAnonymise employee and userView personal information Of employees
6669
* @property string $PrivateEmail Section: Personal Personal e-mail address of the employee.Note: The value is only returned if user has any of the following roles: View userEnter variable payroll mutationsManage employeesAnonymise employee and userView personal information Of employees
@@ -98,6 +101,7 @@ class Employee extends Model
98101
'Creator',
99102
'CreatorFullName',
100103
'Customer',
104+
'CustomField',
101105
'Division',
102106
'Email',
103107
'EmployeeHID',
@@ -129,7 +133,9 @@ class Employee extends Model
129133
'Person',
130134
'Phone',
131135
'PhoneExtension',
136+
'Picture',
132137
'PictureFileName',
138+
'PictureThumbnailUrl',
133139
'PictureUrl',
134140
'Postcode',
135141
'PrivateEmail',

src/Picqer/Financials/Exact/Employment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* @property int $ReasonEndFlex Reason of ended flexible employment
2626
* @property string $ReasonEndFlexDescription Other reason for end of employment
2727
* @property string $StartDate Start date of employment
28-
* @property string $StartDateOrganization Start date of the employee in the organization. This field is used to count the years in service.
28+
* @property string $StartDateOrganization Start date of the employee in the organization. This field is used to count the years in service.Note: For PUT, this property will update the start date years in service for all employments of this employee
2929
*/
3030
class Employment extends Model
3131
{

src/Picqer/Financials/Exact/EmploymentContract.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
* @property string $ID Primary key
1111
* @property int $ContractFlexPhase Flexible employment contract phase
1212
* @property string $ContractFlexPhaseDescription Flexible employment contract phase description.
13+
* @property bool $CreateAutoCorrection Confirmation: Create Auto CorrectionWhen the 'payroll run' already finalized and the update is made to the employment contract start date, the system will first block the PUT action with the message below. With the 'PayrollCorrection' right, the error message below will be thrown:  This change will lead to a recalculation of previous periods. A correction request will be created with the following data:   Activation date: 01-01-2019   Payroll year: 2019   Period: 1  If you are confirmed want to proceed, set the [CreateAutoCorrection] to True and re-submit the request. Without the 'PayrollCorrection' right, the error message below will be thrown:  You do not have rights to change data that can influence processed payroll transactions. Note : If you delete this contract in an already calculated period, auto corrections will be created for this employee.
1314
* @property string $Created Creation date
15+
* @property bool $CreatePredecessorsForLinkedAgencies Confirmation: Create Predecessors For Linked AgenciesThe system will block the POST/PUT action when one of the condition below fulfilled: When create (POST) a new successor, the employment contract successor start date is set to an earlier payroll year. When update (PUT) the existing employment contract start date to an earlier payroll year. The error message below will be thrown:  Attention: If you change the start date to an earlier payroll year, predecessors will be created for linked agencies.  You will have to check if the data of the predecessors is correct.  If you are confirmed want to proceed, set the [CreatePredecessorsForLinkedAgencies] to True and re-submit the request.
1416
* @property string $Creator User ID of creator
1517
* @property string $CreatorFullName Name of creator
1618
* @property int $Division Division code
@@ -28,10 +30,11 @@
2830
* @property string $ModifierFullName Name of modifier
2931
* @property string $ProbationEndDate Employment probation end date
3032
* @property int $ProbationPeriod Employment probation period
33+
* @property string $ProbationPeriodDescription Contract probation period description
3134
* @property int $ReasonContract Employment contract reason code. 1 - New employment, 2 - Employment change, 3 - New legal employer, 4 - Acquisition 5 - Previous contract expired, 6 - Other
3235
* @property string $ReasonContractDescription Employment contract reason description
3336
* @property int $Sequence Sequence number
34-
* @property string $StartDate Start date of employment contract
37+
* @property string $StartDate Start date of employment contractNote : Be aware that for PUT, when you use a start date in the past it will also update years in service to this date.
3538
* @property int $Type Type of employment contract. 1 - Definite, 2 - Indefinite, 3 - External
3639
* @property string $TypeDescription Description of employment contract type
3740
*/
@@ -43,7 +46,9 @@ class EmploymentContract extends Model
4346
'ID',
4447
'ContractFlexPhase',
4548
'ContractFlexPhaseDescription',
49+
'CreateAutoCorrection',
4650
'Created',
51+
'CreatePredecessorsForLinkedAgencies',
4752
'Creator',
4853
'CreatorFullName',
4954
'Division',
@@ -61,6 +66,7 @@ class EmploymentContract extends Model
6166
'ModifierFullName',
6267
'ProbationEndDate',
6368
'ProbationPeriod',
69+
'ProbationPeriodDescription',
6470
'ReasonContract',
6571
'ReasonContractDescription',
6672
'Sequence',

src/Picqer/Financials/Exact/EmploymentOrganization.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
* @property int $EmployeeHID Numeric ID of the employee
2525
* @property string $Employment Employment ID
2626
* @property int $EmploymentNumber Employment number
27-
* @property string $EndDate Organization end date
27+
* @property string $EndDate Organization end dateNote : This property only supported for successor
2828
* @property string $JobTitle ID of job title
2929
* @property string $JobTitleCode Job title code
3030
* @property string $JobTitleDescription Job title description
3131
* @property string $Modified Last modified date
3232
* @property string $Modifier User ID of modifier
3333
* @property string $ModifierFullName Name of modifier
34-
* @property string $StartDate Organization start date
34+
* @property string $StartDate Organization start dateNote : This property only supported for successor
3535
*/
3636
class EmploymentOrganization extends Model
3737
{

src/Picqer/Financials/Exact/EmploymentSalary.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* @property string $ID Primary key
1111
* @property int $AmountType Salary Section: Salary typeValue: 0 - Gross, 1 - Net.
1212
* @property string $AmountTypeDescription Salary Section: Salary type descriptionWhen AmountType value is 0, return 'Gross'When AmountType value 1, return 'Net'
13+
* @property bool $AutoCorrection Confirmation: Create Auto CorrectionWhen the 'payroll run' already finalized and the update is made to the employment salary amount, the system will first block the PUT action with the message below. With the 'PayrollCorrection' right, the error message below will be thrown:  This change will lead to a recalculation of previous periods. A correction request will be created with the following data:   Activation date: 01-01-2019   Payroll year: 2019   Period: 1  If you are confirmed want to proceed, set the [AutoCorrection] to True and re-submit the request. Without the 'PayrollCorrection' right, the error message below will be thrown:  You do not have rights to change data that can influence processed payroll transactions. Note : If you delete this salary in an already calculated period, auto corrections will be created for this employee.
1314
* @property float $AverageDaysPerWeek The average number of contract days that an employee works per week
1415
* @property float $AverageHoursPerWeek The average number of contract hours that an employee works per week
1516
* @property float $BillabilityTarget Schedule Section: Billability target
@@ -25,7 +26,7 @@
2526
* @property int $EmploymentNumber Employment number
2627
* @property int $EmploymentSalaryType Salary type of employment. 1 - Periodical (fixed), 2 - Per hour (variable)
2728
* @property string $EmploymentSalaryTypeDescription Salary type description
28-
* @property string $EndDate Salary record end date
29+
* @property string $EndDate Salary record end dateNote : This property only supported for successor.
2930
* @property float $ExternalRate Rate Section: External rate
3031
* @property int $Frequency Frequency: 1 - Yearly, 2 - Quarterly, 3 - Monthly, 4 - 4-weekly, 5 - Weekly, 11 - Yearly (Pro forma), 12 - Quarterly (Pro forma), 13 - Monthly (Pro forma), 14 - 4-Weekly (Pro forma), 15 - Weekly (Pro forma)
3132
* @property string $FrequencyDescription Payroll period frequency description
@@ -45,7 +46,7 @@
4546
* @property string $Schedule Employment schedule
4647
* @property string $ScheduleCode Employment schedule code
4748
* @property string $ScheduleDescription Description of employment schedule
48-
* @property string $StartDate Salary record start date
49+
* @property string $StartDate Salary record start dateNote : This property only supported for successor.
4950
* @property string $WageScale Salary Section: Wagescale ID
5051
* @property int $WageScalePeriod Salary Section: Period for automatic step increase
5152
* @property string $WageScaleStep Salary Section: Wagescale Step Code
@@ -58,6 +59,7 @@ class EmploymentSalary extends Model
5859
'ID',
5960
'AmountType',
6061
'AmountTypeDescription',
62+
'AutoCorrection',
6163
'AverageDaysPerWeek',
6264
'AverageHoursPerWeek',
6365
'BillabilityTarget',

0 commit comments

Comments
 (0)