mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-22 15:50:32 +00:00
fix: cashflow statement localization
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"previoud_period_date": "{{date}} (PP)",
|
"previoud_period_date": "{date} (PP)",
|
||||||
"fianncial_sheet.previous_period_change": "Change (PP)",
|
"fianncial_sheet.previous_period_change": "Change (PP)",
|
||||||
"previous_period_percentage": "% Change (PP)",
|
"previous_period_percentage": "% Change (PP)",
|
||||||
"previous_year_date": "{{date}} (PY)",
|
"previous_year_date": "{date} (PY)",
|
||||||
"previous_year_change": "Change (PY)",
|
"previous_year_change": "Change (PY)",
|
||||||
"previous_year_percentage": "% Change (PY)",
|
"previous_year_percentage": "% Change (PY)",
|
||||||
"total_row": "Total {{value}}"
|
"total_row": "Total {value}"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ export class PublishExpense {
|
|||||||
*/
|
*/
|
||||||
constructor(
|
constructor(
|
||||||
private readonly eventPublisher: EventEmitter2,
|
private readonly eventPublisher: EventEmitter2,
|
||||||
private readonly uow: UnitOfWork,
|
|
||||||
private readonly validator: CommandExpenseValidator,
|
private readonly validator: CommandExpenseValidator,
|
||||||
|
private readonly uow: UnitOfWork,
|
||||||
|
|
||||||
@Inject(Expense.name)
|
@Inject(Expense.name)
|
||||||
private readonly expenseModel: TenantModelProxy<typeof Expense>,
|
private readonly expenseModel: TenantModelProxy<typeof Expense>,
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ import { VendorBalanceSummaryModule } from './modules/VendorBalanceSummary/Vendo
|
|||||||
import { BalanceSheetModule } from './modules/BalanceSheet/BalanceSheet.module';
|
import { BalanceSheetModule } from './modules/BalanceSheet/BalanceSheet.module';
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
providers: [],
|
|
||||||
imports: [
|
imports: [
|
||||||
BalanceSheetModule,
|
BalanceSheetModule,
|
||||||
PurchasesByItemsModule,
|
PurchasesByItemsModule,
|
||||||
|
|||||||
@@ -227,12 +227,10 @@ export class CashFlowStatement extends R.pipe(
|
|||||||
const accountsTotal = this.getAccountsMetaTotal(accounts);
|
const accountsTotal = this.getAccountsMetaTotal(accounts);
|
||||||
const total = this.getTotalAmountMeta(accountsTotal);
|
const total = this.getTotalAmountMeta(accountsTotal);
|
||||||
|
|
||||||
console.log(sectionSchema.label, 'label');
|
|
||||||
|
|
||||||
const node = {
|
const node = {
|
||||||
sectionType: ICashFlowStatementSectionType.ACCOUNTS,
|
sectionType: ICashFlowStatementSectionType.ACCOUNTS,
|
||||||
id: sectionSchema.id,
|
id: sectionSchema.id,
|
||||||
label: sectionSchema.label,
|
label: this.i18n.t(sectionSchema.label),
|
||||||
footerLabel: sectionSchema.footerLabel,
|
footerLabel: sectionSchema.footerLabel,
|
||||||
children: accounts,
|
children: accounts,
|
||||||
total,
|
total,
|
||||||
|
|||||||
@@ -240,8 +240,9 @@ export class CashFlowTable {
|
|||||||
): ICashFlowStatementSection => {
|
): ICashFlowStatementSection => {
|
||||||
const label = section.footerLabel
|
const label = section.footerLabel
|
||||||
? 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({
|
section.children.push({
|
||||||
sectionType: ICashFlowStatementSectionType.TOTAL,
|
sectionType: ICashFlowStatementSectionType.TOTAL,
|
||||||
label,
|
label,
|
||||||
|
|||||||
@@ -12,9 +12,7 @@ export class UnitOfWork {
|
|||||||
) {}
|
) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* @param {function} work - The work to be done in the transaction.
|
||||||
* @param {number} tenantId
|
|
||||||
* @param {} work
|
|
||||||
* @param {IsolationLevel} isolationLevel
|
* @param {IsolationLevel} isolationLevel
|
||||||
* @returns {}
|
* @returns {}
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user