feat(description): concat bank with tickets
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2021-10-26 10:20:35 +02:00
parent f7e2182722
commit 92b916580e
2 changed files with 4 additions and 2 deletions

View File

@ -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}`;
}
}

View File

@ -36,7 +36,7 @@ describe('Client', () => {
}
};
expect(controller.receipt.description).toEqual('Cash');
expect(controller.receipt.description).toContain('Cash');
});
});