Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(library): added ReportingBalance to the library #179

Merged
merged 1 commit into from
Oct 3, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
58 changes: 58 additions & 0 deletions src/Picqer/Financials/Exact/ReportingBalance.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?php namespace Picqer\Financials\Exact;
/**
* Class ReportingBalance
*
* @package Picqer\Financials\Exact
* @see https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=FinancialReportingBalance
*
* @property Int64 $ID Record ID
* @property Double $Amount The sum of the amounts of all transactions in the grouping.
* @property Double $AmountCredit The sum of the amounts of all credit transactions in the grouping.
* @property Double $AmountDebit The sum of the amounts of all debit transactions in the grouping.
* @property String $BalanceType Balance type of the G/L account: B = Balance Sheet, W = Profit & Loss.
* @property String $CostCenterCode The code of the cost center.
* @property String $CostCenterDescription The description of the cost center.
* @property String $CostUnitCode The code of the cost unit.
* @property String $CostUnitDescription The description of the cost unit.
* @property Int32 $Count The number of transactions in the grouping.
* @property Int32 $Division Division code
* @property Guid $GLAccount G/L account
* @property String $GLAccountCode The code of the G/L account.
* @property String $GLAccountDescription The description of the G/L account.
* @property Int32 $ReportingPeriod The reporting period of the transactions in the grouping.
* @property Int32 $ReportingYear The reporting year of the transactions in the grouping.
* @property Int32 $Status Status: 20 = Open, 50 = Processed. To get 'after entry' results, both Open and Processed amounts have to be included. This is by default, so it requires no extra filtering.
* @property Int32 $Type The type of the transactions in the grouping.
*/

class ReportingBalance extends Model
{

use Query\Findable;

protected $primaryKey = 'ID';

protected $fillable = [
'ID',
'Amount',
'AmountCredit',
'AmountDebit',
'BalanceType',
'CostCenterCode',
'CostCenterDescription',
'CostUnitCode',
'CostUnitDescription',
'Count',
'Division',
'GLAccount',
'GLAccountCode',
'GLAccountDescription',
'ReportingPeriod',
'ReportingYear',
'Status',
'Type'
];


protected $url = 'financial/ReportingBalance';
}