Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
accounting
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
DAR
accounting
Commits
a19bfb2a
Commit
a19bfb2a
authored
3 years ago
by
simon
Browse files
Options
Downloads
Patches
Plain Diff
imp: entry lines formatter with combined state and reconciliation
parent
489497bd
Branches
imp-enty-lines-formatter
Branches containing commit
Tags
Tags containing commit
1 merge request
!7
imp: entry lines formatter with combined state and reconciliation
Pipeline
#5751
passed with warnings with stages
in 7 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/Field/FieldFormatter/JournalEntryLinesFieldFormatter.php
+4
-2
4 additions, 2 deletions
.../Field/FieldFormatter/JournalEntryLinesFieldFormatter.php
with
4 additions
and
2 deletions
src/Plugin/Field/FieldFormatter/JournalEntryLinesFieldFormatter.php
+
4
−
2
View file @
a19bfb2a
...
...
@@ -58,18 +58,20 @@ class JournalEntryLinesFieldFormatter extends FormatterBase {
$elements
[
0
]
=
[
'#type'
=>
'table'
,
'#header'
=>
[
'date'
,
'name'
,
'account'
,
'description'
,
'debit'
,
'credit'
,
'
reconciliation
'
,
'
state
'
,
],
'#rows'
=>
[],
];
foreach
(
$items
as
$delta
=>
$i
)
{
$item
=
$i
->
entity
;
$elements
[
0
][
'#rows'
][]
=
[
$item
->
get
(
'period_date'
)
->
value
,
Link
::
createFromRoute
(
$item
->
id
(),
'entity.journal_entry_line.canonical'
,
...
...
@@ -81,7 +83,7 @@ class JournalEntryLinesFieldFormatter extends FormatterBase {
$item
->
label
(),
$item
->
getDebit
(),
$item
->
getCredit
(),
$item
->
getReconciliation
()
?
$item
->
getReconciliation
()
->
id
()
:
''
,
$item
->
getState
()
.
(
$item
->
getReconciliation
()
?
" (
{
$item
->
getReconciliation
()
->
id
()
}
)"
:
''
)
,
];
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment