mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
fix: cashflow statement localization
This commit is contained in:
@@ -19,7 +19,6 @@ import { VendorBalanceSummaryModule } from './modules/VendorBalanceSummary/Vendo
|
||||
import { BalanceSheetModule } from './modules/BalanceSheet/BalanceSheet.module';
|
||||
|
||||
@Module({
|
||||
providers: [],
|
||||
imports: [
|
||||
BalanceSheetModule,
|
||||
PurchasesByItemsModule,
|
||||
|
||||
@@ -227,12 +227,10 @@ export class CashFlowStatement extends R.pipe(
|
||||
const accountsTotal = this.getAccountsMetaTotal(accounts);
|
||||
const total = this.getTotalAmountMeta(accountsTotal);
|
||||
|
||||
console.log(sectionSchema.label, 'label');
|
||||
|
||||
const node = {
|
||||
sectionType: ICashFlowStatementSectionType.ACCOUNTS,
|
||||
id: sectionSchema.id,
|
||||
label: sectionSchema.label,
|
||||
label: this.i18n.t(sectionSchema.label),
|
||||
footerLabel: sectionSchema.footerLabel,
|
||||
children: accounts,
|
||||
total,
|
||||
|
||||
@@ -240,8 +240,9 @@ export class CashFlowTable {
|
||||
): ICashFlowStatementSection => {
|
||||
const label = section.footerLabel
|
||||
? section.footerLabel
|
||||
: this.i18n.t('Total {{accountName}}', { accountName: section.label });
|
||||
|
||||
: this.i18n.t('financial_sheet.total_row', {
|
||||
args: { value: section.label },
|
||||
});
|
||||
section.children.push({
|
||||
sectionType: ICashFlowStatementSectionType.TOTAL,
|
||||
label,
|
||||
|
||||
Reference in New Issue
Block a user