Files
cbsnexora/src/app/shared/transaction-payment-detail/transaction-payment-detail.component.ts
T
Ralph HopmanandAdam Saghy cac1d11ad7 build: Use prettier for typescript
Stop ignoring .ts files in prettier and fix existing issues.
2025-01-15 11:59:30 +00:00

28 lines
889 B
TypeScript

import { Component, Input } from '@angular/core';
import { PaymentDetail } from './payment-detail-model';
@Component({
selector: 'mifosx-transaction-payment-detail',
templateUrl: './transaction-payment-detail.component.html',
styleUrls: ['./transaction-payment-detail.component.scss']
})
export class TransactionPaymentDetailComponent {
@Input() paymentDetailData: PaymentDetail;
constructor() {}
hasSomeValue(): boolean {
return (
this.isNotNullOrEmpty(this.paymentDetailData.accountNumber) ||
this.isNotNullOrEmpty(this.paymentDetailData.bankNumber) ||
this.isNotNullOrEmpty(this.paymentDetailData.checkNumber) ||
this.isNotNullOrEmpty(this.paymentDetailData.receiptNumber) ||
this.isNotNullOrEmpty(this.paymentDetailData.routingCode)
);
}
isNotNullOrEmpty(value: any): boolean {
return value !== null && value !== '';
}
}