{{ 'REPORT_PAGE.GROUP_BY' | translate }}
{{ 'REPORT_PAGE.DATE' | translate }} {{ 'REPORT_PAGE.CLIENT' | translate }} {{ 'REPORT_PAGE.PROJECT' | translate }}
@if (dailyData?.length > 0) { @for (day of dailyData; track day) { @switch (groupBy) { @case ('client') { } @case ('project') { } @default { } } } } @else { }
{{ day.date | dateFormat }} @for (clientRow of day.clients; track clientRow; let clientIndex = $index) {
@for (projectRow of clientRow.projects; track projectRow; let projectIndex = $index) {
@for (paymentRow of projectRow.payments; track paymentRow; let paymentIndex = $index) {
{{ 'REPORT_PAGE.CONTACT' | translate }}
{{ 'REPORT_PAGE.PROJECT' | translate }}
@if (paymentIndex == 0) { }
{{ 'REPORT_PAGE.CURRENCY' | translate }}
{{ paymentRow?.currency }}
{{ 'REPORT_PAGE.NOTE' | translate }}
{{ paymentRow?.note }}
{{ 'REPORT_PAGE.AMOUNT' | translate }}
{{ paymentRow?.amount | currency: paymentRow?.currency | position: organization?.currencyPosition }}
}
}
}
@for (dateRow of client.dates; track dateRow; let dateIndex = $index) {
@for (projectRow of dateRow.projects; track projectRow; let projectIndex = $index) {
@for (paymentRow of projectRow.payments; track paymentRow; let paymentIndex = $index) {
{{ 'REPORT_PAGE.DATE' | translate }}
{{ projectIndex == 0 && paymentIndex == 0 ? (dateRow.date | dateFormat) : '' }}
{{ 'REPORT_PAGE.PROJECT' | translate }}
@if (paymentIndex == 0) { }
{{ 'REPORT_PAGE.CURRENCY' | translate }}
{{ paymentRow?.currency }}
{{ 'REPORT_PAGE.NOTE' | translate }}
{{ paymentRow?.note }}
{{ 'REPORT_PAGE.AMOUNT' | translate }}
{{ paymentRow?.amount | currency: paymentRow?.currency | position: organization?.currencyPosition }}
}
}
}
@for (dateRow of project.dates; track dateRow; let dateIndex = $index) {
@for (clientRow of dateRow.clients; track clientRow; let clientIndex = $index) {
@for (paymentRow of clientRow.payments; track paymentRow; let paymentIndex = $index) {
{{ 'REPORT_PAGE.DATE' | translate }}
{{ clientIndex == 0 && paymentIndex == 0 ? (dateRow.date | dateFormat) : '' }}
{{ 'REPORT_PAGE.EMPLOYEE' | translate }}
@if (paymentIndex == 0) { }
{{ 'REPORT_PAGE.CURRENCY' | translate }}
{{ paymentRow?.currency }}
{{ 'REPORT_PAGE.NOTE' | translate }}
{{ paymentRow?.note }}
{{ 'REPORT_PAGE.AMOUNT' | translate }}
{{ paymentRow?.amount | currency: paymentRow?.currency | position: organization?.currencyPosition }}
}
}
}
@if (project) { } @else { {{ 'REPORT_PAGE.NO_PROJECT' | translate }} } @if (client) { {{ client?.name }} } @else { {{ 'REPORT_PAGE.NO_CLIENT' | translate }} } @if (dailyData?.length > 0) {
@if (groupBy != 'date') {
{{ 'REPORT_PAGE.DATE' | translate }}
} @if (groupBy !== 'client' && groupBy !== 'project') {
{{ 'REPORT_PAGE.CONTACT' | translate }}
} @if (groupBy !== 'client' && groupBy === 'project') {
{{ 'REPORT_PAGE.PROJECT' | translate }}
} @if (groupBy !== 'project') {
{{ 'REPORT_PAGE.PROJECT' | translate }}
}
{{ 'REPORT_PAGE.CURRENCY' | translate }}
{{ 'REPORT_PAGE.NOTE' | translate }}
{{ 'REPORT_PAGE.AMOUNT' | translate }}
}