diff --git a/modules/client/front/balance/create/index.js b/modules/client/front/balance/create/index.js index e78a9c1b2..5b5866732 100644 --- a/modules/client/front/balance/create/index.js +++ b/modules/client/front/balance/create/index.js @@ -45,6 +45,7 @@ class Controller extends Dialog { set description(value) { this.receipt.description = value; + this.originalDescription = value; } get description() { @@ -60,7 +61,8 @@ class Controller extends Dialog { if (value) { const accountingType = value.accountingType; - this.receipt.description = accountingType && accountingType.receiptDescription; + this.receipt.description = + `${accountingType && accountingType.receiptDescription}, ${this.originalDescription}`; } } diff --git a/modules/client/front/balance/create/index.spec.js b/modules/client/front/balance/create/index.spec.js index bd0607a79..3aade58c6 100644 --- a/modules/client/front/balance/create/index.spec.js +++ b/modules/client/front/balance/create/index.spec.js @@ -36,7 +36,7 @@ describe('Client', () => { } }; - expect(controller.receipt.description).toEqual('Cash'); + expect(controller.receipt.description).toContain('Cash'); }); });