fix(server): Transaction type of credit note and vendor credit are not defined on account transactions

This commit is contained in:
Ahmed Bouhuolia
2023-08-22 13:51:15 +02:00
parent b665d05526
commit f7b53692f5
5 changed files with 17 additions and 57 deletions

View File

@@ -46,7 +46,7 @@ export default class AccountTransactionTransformer extends Transformer {
* @returns {string}
*/
public transactionTypeFormatted(transaction: IAccountTransaction) {
return transaction.referenceTypeFormatted;
return this.context.i18n.__(transaction.referenceTypeFormatted);
}
/**