latest cpfl changes

This commit is contained in:
gayathri1990 2021-04-16 18:24:20 +05:30
parent c18a422877
commit 8195a066c4
4 changed files with 18 additions and 15 deletions

View File

@ -787,20 +787,19 @@
</mat-card>
</div>
</div>
<div *ngIf="lender_short_name== 'CFPL'">
<div *ngIf="lender_short_name=='CFPL'">
<mat-card-subtitle>
<p>Financial Data</p>
</mat-card-subtitle>
<mat-form-field style="width:92%">
<mat-form-field style="width:92%" *ngIf="lender_short_name=='CFPL'">
<input matInput autocomplete="off" placeholder="Turnover in last completed Year"
formControlName="turnover_lastcomplete_year" OnlyNumber type="text">
</mat-form-field>
<mat-form-field style="width:92%">
<mat-form-field style="width:92%" *ngIf="lender_short_name=='CFPL'">
<input matInput autocomplete="off" placeholder="YTD turnover (till last month)"
formControlName="ytd_turnover" OnlyNumber type="text">
<mat-hint align="start" style="font-size:90%" *ngIf="financialForm.controls('ytd_turnover').value != ''">{{"&#8377;"}}
{{financialForm.controls('ytd_turnover').value | numberToWords}} Only</mat-hint>
</mat-form-field>
<!--<mat-form-field style="width:92%">

View File

@ -120,6 +120,7 @@ export class FinancialInfoComponent implements OnInit {
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
this.lender_short_name = this.pd_all_details.pdmaster_details.lender_short_name;
if(this.lender_short_name=='CFPL')
{
this.financial='no';
@ -2127,8 +2128,8 @@ export class FinancialInfoComponent implements OnInit {
if(records.loan_start_date) delete records.loan_start_date;
if(records.monthly_emi) delete records.monthly_emi;
/* for remove control */
if(records.turnover_lastcomplete_year) delete records.turnover_lastcomplete_year;
if(records.ytd_turnover) delete records.ytd_turnover;
// if(records.turnover_lastcomplete_year) delete records.turnover_lastcomplete_year;
// if(records.ytd_turnover) delete records.ytd_turnover;
if(records.deptor_collection_period) delete records.deptor_collection_period;
if(records.inventory_holding_period) delete records.inventory_holding_period;
if(records.creditor_payment_period) delete records.creditor_payment_period;

View File

@ -466,7 +466,7 @@
formControlName="sample_invoices" autocomplete="off">
<mat-error *ngIf="loanDetailsForm.controls['sample_invoices'].hasError('required')">Observations on Sample Invoices Required</mat-error>
</mat-form-field>-->
<mat-form-field style="width: 28%">
<mat-form-field style="width: 64%">
<mat-select placeholder="Observations on Sample Invoices" (selectionChange)="selectedobservationChanges($event.value)"
formControlName="sample_invoices">
<mat-option>Select</mat-option>
@ -475,18 +475,21 @@
</mat-select>
<mat-error *ngIf="loanDetailsForm.controls['sample_invoices'].hasError('required')">Observations on Sample Invoices Required</mat-error>
</mat-form-field>
<mat-form-field style="width: 28%" *ngIf="sampleinvoices_yes == 'yes'">
<input matInput placeholder="sample invoice notes"
<mat-form-field style="width: 68%" *ngIf="sampleinvoices_yes == 'yes'">
<mat-label>observations on Invoice and lorry receipts</mat-label>
<textarea matInput placeholder="Details of invoice and lorry recipts like date, amount, Quantity, Vehicle
number, Client and supplier name"
type="text" formControlName="sampleinvoices_yes"
autocomplete="off">
<mat-hint align="start" style="font-size:90%" *ngIf="loanDetailsForm.controls['debitcredit_notes'].value != ''"></mat-hint>
autocomplete="off"></textarea>
<mat-hint align="start" style="font-size:90%" *ngIf="loanDetailsForm.controls['sampleinvoices_yes'].value != ''"></mat-hint>
</mat-form-field>
<mat-form-field style="width: 28%" *ngIf="sampleinvoices_no == 'no'">
<input matInput placeholder="sample invoice notes"
<mat-label>reason for no sample invoices</mat-label>
<input matInput placeholder="enter the reason"
type="text" formControlName="sampleinvoices_no"
autocomplete="off">
<mat-hint align="start" style="font-size:90%" *ngIf="loanDetailsForm.controls['debitcredit_notes'].value != ''"></mat-hint>
<mat-hint align="start" style="font-size:90%" *ngIf="loanDetailsForm.controls['sampleinvoices_no'].value != ''"></mat-hint>
</mat-form-field>
</span>

View File

@ -1038,7 +1038,7 @@ export class LoanDetailsComponent implements OnInit {
else
{
records.sampleinvoices_no = this.loanDetailsForm.controls['sampleinvoices_no'].value;
this.sampleinvoices_no='yes';
this.sampleinvoices_no='no';
}
if(this.loanDetailsForm.controls['anchor_notes'].value=='yes')
{