feat(description): concat bank with tickets
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
f7e2182722
commit
92b916580e
|
@ -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}`;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ describe('Client', () => {
|
|||
}
|
||||
};
|
||||
|
||||
expect(controller.receipt.description).toEqual('Cash');
|
||||
expect(controller.receipt.description).toContain('Cash');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue