This commit is contained in:
CHIEFSOFT\ameye
2023-11-26 23:41:14 -05:00
parent fae7c6dcb8
commit d9334cbce6
2 changed files with 9 additions and 2 deletions
@@ -198,7 +198,10 @@
<ion-label>Total: </ion-label> <ion-label>Total: </ion-label>
<div>{{startCreditResult.total*.01| number : '1.2-2' }}</div> <div>{{startCreditResult.total*.01| number : '1.2-2' }}</div>
</ion-item> </ion-item>
<ion-item *ngIf="startCreditResult.card_uid !='' ">
<ion-label>Payment: </ion-label>
<div>{{selPaymentCard.description}} **** **** {{selPaymentCard.digits}}</div>
</ion-item>
</ion-list> </ion-list>
+5 -1
View File
@@ -58,7 +58,7 @@ export class AddcreditPage implements OnInit {
}; };
usersCardsTotalData:any; usersCardsTotalData:any;
usersCardsData: []; usersCardsData: any;
getUsersCardsList(){ getUsersCardsList(){
this.usrData = this.usrData =
{ {
@@ -111,6 +111,8 @@ export class AddcreditPage implements OnInit {
console.log("startCreditResult TOTAL RETURN->", this.startCreditResult); console.log("startCreditResult TOTAL RETURN->", this.startCreditResult);
if ( startCreditResult!=undefined && startCreditResult.credit_reference!='' ){ if ( startCreditResult!=undefined && startCreditResult.credit_reference!='' ){
this.startCreditResult = startCreditResult; this.startCreditResult = startCreditResult;
this.isModalOpen = true; this.isModalOpen = true;
this.isModalOpenBackdrop= true; this.isModalOpenBackdrop= true;
} }
@@ -130,6 +132,7 @@ export class AddcreditPage implements OnInit {
recipient:string =''; recipient:string ='';
recipient_name:string =''; recipient_name:string ='';
payment_card:string = ''; payment_card:string = '';
selPaymentCard:any;
feeReturn: any; feeReturn: any;
refreshFee(){ refreshFee(){
@@ -159,6 +162,7 @@ export class AddcreditPage implements OnInit {
this.isDisabled=false; this.isDisabled=false;
} }
if (this.total > 5 && this.processor==5000 && this.payment_card !="" ){ if (this.total > 5 && this.processor==5000 && this.payment_card !="" ){
this.selPaymentCard = this.usersCardsData.filter((item) => item.card_uid == this.payment_card)[0];
this.isDisabled=false; this.isDisabled=false;
} }
// } // }