feat: payment received mail preview

This commit is contained in:
Ahmed Bouhuolia
2024-11-21 14:32:28 +02:00
parent c5c85bdfbe
commit b6f3c0145f
27 changed files with 422 additions and 366 deletions

View File

@@ -29,7 +29,7 @@ export default class PaymentReceive extends mixin(TenantModel, [
* Virtual attributes.
*/
static get virtualAttributes() {
return ['localAmount'];
return ['localAmount', 'total'];
}
/**
@@ -40,6 +40,10 @@ export default class PaymentReceive extends mixin(TenantModel, [
return this.amount * this.exchangeRate;
}
get total() {
return this.paymentAmount;
}
/**
* Resourcable model.
*/