asset : ps
This commit is contained in:
parent
1f4c405cfb
commit
5de5c58367
@ -42,7 +42,7 @@ export class EditPdApplicantComponent implements OnInit {
|
|||||||
this._EditApplicantForm = this._fb.group({
|
this._EditApplicantForm = this._fb.group({
|
||||||
fk_applicant_primary_id: [null],
|
fk_applicant_primary_id: [null],
|
||||||
applicant_name: [null, Validators.compose([Validators.required])],
|
applicant_name: [null, Validators.compose([Validators.required])],
|
||||||
mobile_no: [null, Validators.compose([Validators.required,Validators.minLength(10),Validators.maxLength(12)])],
|
mobile_no: [null, Validators.compose([Validators.minLength(10),Validators.maxLength(12)])],
|
||||||
stdcode: [null, Validators.compose([Validators.minLength(2),Validators.maxLength(4)])],
|
stdcode: [null, Validators.compose([Validators.minLength(2),Validators.maxLength(4)])],
|
||||||
landline: [null, Validators.compose([Validators.minLength(8),Validators.maxLength(12)])],
|
landline: [null, Validators.compose([Validators.minLength(8),Validators.maxLength(12)])],
|
||||||
company_name: [null],
|
company_name: [null],
|
||||||
@ -59,7 +59,7 @@ export class EditPdApplicantComponent implements OnInit {
|
|||||||
this._EditApplicantForm = this._fb.group({
|
this._EditApplicantForm = this._fb.group({
|
||||||
fk_applicant_primary_id: [this.mainApplicantData[0].pd_co_applicant_id],
|
fk_applicant_primary_id: [this.mainApplicantData[0].pd_co_applicant_id],
|
||||||
applicant_name: [this.mainApplicantData[0].applicant_name, Validators.compose([Validators.required])],
|
applicant_name: [this.mainApplicantData[0].applicant_name, Validators.compose([Validators.required])],
|
||||||
mobile_no: [this.mainApplicantData[0].mobile_no, Validators.compose([Validators.required,Validators.required,Validators.minLength(10),Validators.maxLength(12)])],
|
mobile_no: [this.mainApplicantData[0].mobile_no, Validators.compose([Validators.minLength(10),Validators.maxLength(12)])],
|
||||||
stdcode: [stdcode, Validators.compose([Validators.minLength(2),Validators.maxLength(4)])],
|
stdcode: [stdcode, Validators.compose([Validators.minLength(2),Validators.maxLength(4)])],
|
||||||
landline: [landline, Validators.compose([Validators.minLength(6),Validators.maxLength(8)])],
|
landline: [landline, Validators.compose([Validators.minLength(6),Validators.maxLength(8)])],
|
||||||
company_name: [this.mainApplicantData[0].company_name],
|
company_name: [this.mainApplicantData[0].company_name],
|
||||||
@ -76,9 +76,19 @@ export class EditPdApplicantComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
createItem(listData): FormGroup {
|
createItem(listData): FormGroup {
|
||||||
if(listData){
|
if(listData){
|
||||||
|
console.log(listData.landline);
|
||||||
|
let stdcode;
|
||||||
|
let landline;
|
||||||
|
if(listData.landline != null){
|
||||||
let stdcodesearch = listData.landline.search("-");
|
let stdcodesearch = listData.landline.search("-");
|
||||||
let stdcode = listData.landline.substr(0,stdcodesearch);
|
stdcode = listData.landline.substr(0,stdcodesearch);
|
||||||
let landline = listData.landline.substr(+stdcodesearch + 1,8);
|
//console.log(stdcode);
|
||||||
|
landline = listData.landline.substr(+stdcodesearch + 1,8);}
|
||||||
|
else{
|
||||||
|
stdcode = null;
|
||||||
|
landline = null;
|
||||||
|
}
|
||||||
|
console.log(landline);
|
||||||
return this._fb.group({
|
return this._fb.group({
|
||||||
label: ['Co Applicant'],
|
label: ['Co Applicant'],
|
||||||
fk_applicant_primary_id: [listData.pd_co_applicant_id],
|
fk_applicant_primary_id: [listData.pd_co_applicant_id],
|
||||||
@ -136,13 +146,28 @@ export class EditPdApplicantComponent implements OnInit {
|
|||||||
"isactive":1
|
"isactive":1
|
||||||
}];
|
}];
|
||||||
formValue.coApplicantItems.forEach((itemElement, itemIndex) => {
|
formValue.coApplicantItems.forEach((itemElement, itemIndex) => {
|
||||||
|
// console.log(itemElement.coapplicant_stdcode);
|
||||||
|
// console.log(itemElement.coapplicant_landline);
|
||||||
|
let concat_landline
|
||||||
|
if(itemElement.coapplicant_stdcode != null && itemElement.coapplicant_landline != null){
|
||||||
|
let std = itemElement.coapplicant_stdcode == '' ? '' : itemElement.coapplicant_stdcode;
|
||||||
|
let landline = itemElement.coapplicant_landline == '' ? '' : itemElement.coapplicant_landline;
|
||||||
|
concat_landline = std+'-'+landline;
|
||||||
|
}else if(itemElement.coapplicant_stdcode == '' && itemElement.coapplicant_landline == ''){
|
||||||
|
concat_landline = null;
|
||||||
|
}else{
|
||||||
|
concat_landline = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
console.log(concat_landline);
|
||||||
let obj1 = {
|
let obj1 = {
|
||||||
"fk_pd_id": this.data.pdID,
|
"fk_pd_id": this.data.pdID,
|
||||||
"pd_co_applicant_id": itemElement.fk_applicant_primary_id,
|
"pd_co_applicant_id": itemElement.fk_applicant_primary_id,
|
||||||
"applicant_name":itemElement.coapplicantName,
|
"applicant_name":itemElement.coapplicantName,
|
||||||
"relation":itemElement.relationship,
|
"relation":itemElement.relationship,
|
||||||
"mobile_no":itemElement.coapplicant_mobile_no,
|
"mobile_no":itemElement.coapplicant_mobile_no,
|
||||||
"landline":itemElement.coapplicant_stdcode+'-'+itemElement.coapplicant_landline,
|
"landline":concat_landline,
|
||||||
"applicant_type":itemElement.applicant_type,
|
"applicant_type":itemElement.applicant_type,
|
||||||
"company_name":itemElement.company_name,
|
"company_name":itemElement.company_name,
|
||||||
"isactive":1
|
"isactive":1
|
||||||
|
|||||||
@ -101,7 +101,8 @@
|
|||||||
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
|
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:30%">
|
||||||
<input matInput placeholder="Premium Paid" formControlName="premium_paid" (keypress)="keyPress($event)" autocomplete="off">
|
<input matInput placeholder="Premium Paid" formControlName="premium_paid" (keypress)="keyPress($event)" autocomplete="off" (keyup)="inWords($event,s,5)">
|
||||||
|
<mat-hint align="start" style="font-size:70%" *ngIf="detail.get('premium_paid').value != ''">{{"₹"}} {{PremiumPaidInwords[s]}} Only</mat-hint>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:30%">
|
||||||
@ -117,7 +118,8 @@
|
|||||||
|
|
||||||
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:30%">
|
||||||
<input matInput placeholder="Sum Assured" formControlName="sum_assured" (keypress)="keyPress($event)" autocomplete="off">
|
<input matInput placeholder="Sum Assured" formControlName="sum_assured" (keypress)="keyPress($event)" autocomplete="off" (keyup)="inWords($event,s,7)">
|
||||||
|
<mat-hint align="start" style="font-size:70%" *ngIf="detail.get('sum_assured').value != ''">{{"₹"}} {{SumAssuredInwords[s]}} Only</mat-hint>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:30%">
|
||||||
@ -143,7 +145,8 @@
|
|||||||
<input matInput placeholder="Specify Type" formControlName="other_investments_type" autocomplete="off">
|
<input matInput placeholder="Specify Type" formControlName="other_investments_type" autocomplete="off">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:30%">
|
||||||
<input matInput placeholder="Amount of Investment" formControlName="amount_of_invest" (keypress)="keyPress($event)" autocomplete="off">
|
<input matInput placeholder="Amount of Investment" formControlName="amount_of_invest" (keypress)="keyPress($event)" autocomplete="off" (keyup)="inWords($event,s,9)">
|
||||||
|
<mat-hint align="start" style="font-size:70%" *ngIf="detail.get('amount_of_invest').value != ''">{{"₹"}} {{AmtInvestInwords[s]}} Only</mat-hint>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:30%">
|
||||||
<input matInput placeholder="Bank Name" formControlName="bank_name" autocomplete="off">
|
<input matInput placeholder="Bank Name" formControlName="bank_name" autocomplete="off">
|
||||||
@ -162,24 +165,45 @@
|
|||||||
<input matInput placeholder="Description of the Assets" formControlName="any_other_assets" autocomplete="off">
|
<input matInput placeholder="Description of the Assets" formControlName="any_other_assets" autocomplete="off">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
|
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
|
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:30%">
|
||||||
<input matInput placeholder="Value of the Assets" formControlName="any_other_asset_value" autocomplete="off">
|
<input matInput placeholder="Value of the Assets" formControlName="any_other_asset_value" autocomplete="off" (keyup)="inWords($event,s,11)" (keypress)="keyPress($event)">
|
||||||
|
<mat-hint align="start" style="font-size:70%" *ngIf="detail.get('any_other_asset_value').value != ''">{{"₹"}} {{AssetValueInwords[s]}} Only</mat-hint>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<!-- <mat-form-field class="ml-xs example-full-width"> -->
|
|
||||||
<!-- <input matInput placeholder="Is Any Loan" formControlName="any_other_asset_loan" > -->
|
|
||||||
<!-- </mat-form-field> -->
|
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:30%">
|
||||||
<mat-select placeholder="Is there any asset loan?" formControlName="any_other_asset_loan" (selectionChange)="selectedAssetLoanType($event.value,2)">
|
<mat-select placeholder="Is there any asset loan?" formControlName="any_other_asset_loan" (selectionChange)="selectedAssetLoanType($event.value,2)">
|
||||||
<mat-option value="{{data.value}}" *ngFor="let data of m_any_asset_loan_type">{{data.viewValue}}</mat-option>
|
<mat-option value="{{data.value}}" *ngFor="let data of m_any_asset_loan_type">{{data.viewValue}}</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<!-- <mat-form-field class="ml-xs example-full-width" *ngIf="detail.get(any_other_asset_loan).value == 'yes'"> -->
|
|
||||||
|
<mat-form-field style="width:30%" *ngIf="businessEmiAmtFlag">
|
||||||
|
<input matInput placeholder="What is the EMI amount ?" formControlName="other_asset_emi_amt" autocomplete="off" (keyup)="inWords($event,s,13)" (keypress)="keyPress($event)">
|
||||||
|
<mat-hint align="start" style="font-size:70%" *ngIf="detail.get('other_asset_emi_amt').value != ''">{{"₹"}} {{B_emiAmtInwords[s]}} Only</mat-hint>
|
||||||
|
</mat-form-field>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- <div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
|
<mat-form-field style="width:30%">
|
||||||
|
<input matInput placeholder="Value of the Assets" formControlName="any_other_asset_value" autocomplete="off">
|
||||||
|
</mat-form-field>
|
||||||
|
<!-- <mat-form-field class="ml-xs example-full-width"> -->
|
||||||
|
<!-- <input matInput placeholder="Is Any Loan" formControlName="any_other_asset_loan" > -->
|
||||||
|
<!-- </mat-form-field> --
|
||||||
|
<mat-form-field style="width:30%">
|
||||||
|
<mat-select placeholder="Is there any asset loan?" formControlName="any_other_asset_loan" (selectionChange)="selectedAssetLoanType($event.value,2)">
|
||||||
|
<mat-option value="{{data.value}}" *ngFor="let data of m_any_asset_loan_type">{{data.viewValue}}</mat-option>
|
||||||
|
</mat-select>
|
||||||
|
</mat-form-field>
|
||||||
|
<!-- <mat-form-field class="ml-xs example-full-width" *ngIf="detail.get(any_other_asset_loan).value == 'yes'"> --
|
||||||
<mat-form-field style="width:95%" *ngIf="businessEmiAmtFlag">
|
<mat-form-field style="width:95%" *ngIf="businessEmiAmtFlag">
|
||||||
<input matInput placeholder="What is the EMI amount ?" formControlName="other_asset_emi_amt" autocomplete="off">
|
<input matInput placeholder="What is the EMI amount ?" formControlName="other_asset_emi_amt" autocomplete="off">
|
||||||
<!-- <span matSuffix>.00</span> -->
|
<!-- <span matSuffix>.00</span> --
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -217,15 +241,15 @@
|
|||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field *ngIf="sup.get('business_emi').value === 'yes'" style="width:30%">
|
<mat-form-field *ngIf="sup.get('business_emi').value === 'yes'" style="width:30%">
|
||||||
<input matInput placeholder="Original Loan Tenure in Months" formControlName="business_original_loan_tenure" autocomplete="off" (change)="loanTenureCalc(sup,2)">
|
<input matInput placeholder="Original Loan Tenure in Months" formControlName="business_original_loan_tenure" autocomplete="off" (change)="loanTenureCalc(sup,2)" (keypress)="keyPress($event)">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field *ngIf="sup.get('business_emi').value === 'yes'" style="width:30%">
|
<mat-form-field *ngIf="sup.get('business_emi').value === 'yes'" style="width:30%">
|
||||||
<input matInput placeholder="Balance Tenure in Months" formControlName="business_balance_tenure" autocomplete="off" (change)="loanTenureCalc(sup,2)">
|
<input matInput placeholder="Balance Tenure in Months" formControlName="business_balance_tenure" autocomplete="off" (change)="loanTenureCalc(sup,2)" (keypress)="keyPress($event)">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field *ngIf="sup.get('business_emi').value === 'yes' && sup.get('business_original_loan_tenure').value != '' && sup.get('business_balance_tenure').value != '' " style="width:30%">
|
<mat-form-field *ngIf="sup.get('business_emi').value === 'yes' && sup.get('business_original_loan_tenure').value != '' && sup.get('business_balance_tenure').value != '' " style="width:30%">
|
||||||
<input matInput placeholder="Elapsed Tenure in Months" formControlName="business_elapsed_tenure" autocomplete="off">
|
<input matInput placeholder="Elapsed Tenure in Months" formControlName="business_elapsed_tenure" autocomplete="off" readonly>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -357,7 +381,8 @@
|
|||||||
<div [formGroupName]="s">
|
<div [formGroupName]="s">
|
||||||
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:30%">
|
||||||
<input matInput placeholder="Premium Paid" formControlName="premium_paid" (keypress)="keyPress($event)" autocomplete="off">
|
<input matInput placeholder="Premium Paid" formControlName="premium_paid" (keypress)="keyPress($event)" autocomplete="off" (keyup)="inWords($event,s,6)">
|
||||||
|
<mat-hint align="start" style="font-size:70%" *ngIf="detail.get('premium_paid').value != ''">{{"₹"}} {{OtherPremiumPaidInwords[s]}} Only</mat-hint>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:30%">
|
||||||
<mat-select placeholder="Frequency" formControlName="frequency_mode" >
|
<mat-select placeholder="Frequency" formControlName="frequency_mode" >
|
||||||
@ -371,7 +396,8 @@
|
|||||||
|
|
||||||
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:30%">
|
||||||
<input matInput placeholder="Sum Assured" formControlName="sum_assured" (keypress)="keyPress($event)" autocomplete="off">
|
<input matInput placeholder="Sum Assured" formControlName="sum_assured" (keypress)="keyPress($event)" autocomplete="off" (keyup)="inWords($event,s,8)">
|
||||||
|
<mat-hint align="start" style="font-size:70%" *ngIf="detail.get('sum_assured').value != ''">{{"₹"}} {{OtherSumAssuredInwords[s]}} Only</mat-hint>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:30%">
|
||||||
@ -401,7 +427,8 @@
|
|||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:30%">
|
||||||
<input matInput placeholder="Amount of Investment" formControlName="amount_of_invest" (keypress)="keyPress($event)" autocomplete="off">
|
<input matInput placeholder="Amount of Investment" formControlName="amount_of_invest" (keypress)="keyPress($event)" autocomplete="off" (keyup)="inWords($event,i,10)">
|
||||||
|
<mat-hint align="start" style="font-size:70%" *ngIf="sup.get('amount_of_invest').value != ''">{{"₹"}} {{OtherAmtInvestInwords[i]}} Only</mat-hint>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -426,9 +453,7 @@
|
|||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
|
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
<mat-form-field style="width:30%">
|
|
||||||
<input matInput placeholder="Value of the Assets" formControlName="any_other_asset_value" autocomplete="off">
|
|
||||||
</mat-form-field>
|
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:30%">
|
||||||
<mat-select placeholder="Name of the Owner"
|
<mat-select placeholder="Name of the Owner"
|
||||||
formControlName="name_of_the_owner" >
|
formControlName="name_of_the_owner" >
|
||||||
@ -436,12 +461,11 @@
|
|||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field *ngIf="sup.get('name_of_the_owner').value == 0 && sup.get('name_of_the_owner').value != ''" style="width:30%">
|
<mat-form-field *ngIf="sup.get('name_of_the_owner').value == 0" style="width:30%">
|
||||||
<input matInput placeholder="Specify Owner Name"
|
<input matInput placeholder="Specify Owner Name"
|
||||||
formControlName="other_owner" autocomplete="off">
|
formControlName="other_owner" autocomplete="off">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
|
||||||
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
|
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:30%">
|
||||||
<mat-select placeholder="Relation" formControlName="relation" >
|
<mat-select placeholder="Relation" formControlName="relation" >
|
||||||
<mat-option value="{{relations.relationship_id}}"
|
<mat-option value="{{relations.relationship_id}}"
|
||||||
@ -451,6 +475,13 @@
|
|||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
|
|
||||||
|
<mat-form-field style="width:30%">
|
||||||
|
<input matInput placeholder="Value of the Assets" formControlName="any_other_asset_value" autocomplete="off" (keyup)="inWords($event,s,12)" (keypress)="keyPress($event)">
|
||||||
|
<mat-hint align="start" style="font-size:70%" *ngIf="detail.get('any_other_asset_value').value != ''">{{"₹"}} {{OtherAssetValueInwords[s]}} Only</mat-hint>
|
||||||
|
</mat-form-field>
|
||||||
<!-- <mat-form-field class="ml-xs example-full-width"> -->
|
<!-- <mat-form-field class="ml-xs example-full-width"> -->
|
||||||
<!-- <input matInput placeholder="Is Any Loan" formControlName="any_other_asset_loan" > -->
|
<!-- <input matInput placeholder="Is Any Loan" formControlName="any_other_asset_loan" > -->
|
||||||
<!-- </mat-form-field> -->
|
<!-- </mat-form-field> -->
|
||||||
@ -463,7 +494,8 @@
|
|||||||
<!-- <mat-form-field class="ml-xs example-full-width" *ngIf="detail.get(any_other_asset_loan).value == 'yes'"> -->
|
<!-- <mat-form-field class="ml-xs example-full-width" *ngIf="detail.get(any_other_asset_loan).value == 'yes'"> -->
|
||||||
<mat-form-field style="width:30%" *ngIf="otherEmiamtFlag">
|
<mat-form-field style="width:30%" *ngIf="otherEmiamtFlag">
|
||||||
<!-- <mat-form-field class="ml-xs example-full-width"> -->
|
<!-- <mat-form-field class="ml-xs example-full-width"> -->
|
||||||
<input matInput placeholder="What is the EMI amount ?" formControlName="other_asset_emi_amt" autocomplete="off">
|
<input matInput placeholder="What is the EMI amount ?" formControlName="other_asset_emi_amt" autocomplete="off"(keyup)="inWords($event,s,14)" (keypress)="keyPress($event)">
|
||||||
|
<mat-hint align="start" style="font-size:70%" *ngIf="detail.get('other_asset_emi_amt').value != ''">{{"₹"}} {{O_emiAmtInwords[s]}} Only</mat-hint>
|
||||||
<!-- <span matSuffix>.00</span> -->
|
<!-- <span matSuffix>.00</span> -->
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
@ -514,15 +546,15 @@
|
|||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field *ngIf="sup.get('emi').value === 'yes'" style="width:30%">
|
<mat-form-field *ngIf="sup.get('emi').value === 'yes'" style="width:30%">
|
||||||
<input matInput placeholder="Original Loan Tenure in Months" formControlName="original_loan_tenure" (change)="loanTenureCalc(sup,1)" autocomplete="off">
|
<input matInput placeholder="Original Loan Tenure in Months" formControlName="original_loan_tenure" (change)="loanTenureCalc(sup,1)" (keypress)="keyPress($event)" autocomplete="off">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field *ngIf="sup.get('emi').value === 'yes'" style="width:30%">
|
<mat-form-field *ngIf="sup.get('emi').value === 'yes'" style="width:30%">
|
||||||
<input matInput placeholder="Balance Tenure in Months" formControlName="balance_tenure" (change)="loanTenureCalc(sup,1)" autocomplete="off">
|
<input matInput placeholder="Balance Tenure in Months" formControlName="balance_tenure" (change)="loanTenureCalc(sup,1)"(keypress)="keyPress($event)" autocomplete="off">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field *ngIf="sup.get('emi').value === 'yes' && sup.get('original_loan_tenure').value != '' && sup.get('balance_tenure').value != '' " style="width:30%">
|
<mat-form-field *ngIf="sup.get('emi').value === 'yes' && sup.get('original_loan_tenure').value != '' && sup.get('balance_tenure').value != '' " style="width:30%">
|
||||||
<input matInput placeholder="Elapsed Tenure in Months" formControlName="elapsed_tenure" autocomplete="off">
|
<input matInput placeholder="Elapsed Tenure in Months" formControlName="elapsed_tenure" autocomplete="off" readonly>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -47,6 +47,16 @@ export class AssetsInfoComponent implements OnInit {
|
|||||||
OtherAppxMarketAmtInwords : any = [];
|
OtherAppxMarketAmtInwords : any = [];
|
||||||
emiAmtInwords : any = [];
|
emiAmtInwords : any = [];
|
||||||
OtherEmiAmtInwords : any = [];
|
OtherEmiAmtInwords : any = [];
|
||||||
|
PremiumPaidInwords : any = [];
|
||||||
|
OtherPremiumPaidInwords: any = [];
|
||||||
|
SumAssuredInwords: any = [];
|
||||||
|
OtherSumAssuredInwords: any = [];
|
||||||
|
AmtInvestInwords: any = [];
|
||||||
|
OtherAmtInvestInwords: any = [];
|
||||||
|
AssetValueInwords: any = [];
|
||||||
|
OtherAssetValueInwords: any = [];
|
||||||
|
B_emiAmtInwords: any = [];
|
||||||
|
O_emiAmtInwords: any = [];
|
||||||
// public m_assets_type = [
|
// public m_assets_type = [
|
||||||
// {
|
// {
|
||||||
// 'id': "1",
|
// 'id': "1",
|
||||||
@ -299,6 +309,8 @@ public m_investmentType = [];
|
|||||||
getPdSupplierFormDetails() {
|
getPdSupplierFormDetails() {
|
||||||
this.pdTrigerService.getPDFormDetailsWithID(this.pdid, '4').subscribe(
|
this.pdTrigerService.getPDFormDetailsWithID(this.pdid, '4').subscribe(
|
||||||
data => {
|
data => {
|
||||||
|
console.log(data);
|
||||||
|
console.log(data.records);
|
||||||
if (data) {
|
if (data) {
|
||||||
if (data.dataStatus) {
|
if (data.dataStatus) {
|
||||||
this.formLoadData(data.records);
|
this.formLoadData(data.records);
|
||||||
@ -314,6 +326,7 @@ public m_investmentType = [];
|
|||||||
}
|
}
|
||||||
|
|
||||||
formLoadData(val) {
|
formLoadData(val) {
|
||||||
|
console.log(val);
|
||||||
if (val !== null) {
|
if (val !== null) {
|
||||||
let value = val;
|
let value = val;
|
||||||
this._assetsQuesFrom = this._formBuilder.group({
|
this._assetsQuesFrom = this._formBuilder.group({
|
||||||
@ -635,6 +648,7 @@ public m_investmentType = [];
|
|||||||
}
|
}
|
||||||
|
|
||||||
initBusinessDetailsWithdata(data) {
|
initBusinessDetailsWithdata(data) {
|
||||||
|
|
||||||
return this._formBuilder.group({
|
return this._formBuilder.group({
|
||||||
business_assets_mode: [data.business_assets_mode],
|
business_assets_mode: [data.business_assets_mode],
|
||||||
business_details: this._formBuilder.array([]),
|
business_details: this._formBuilder.array([]),
|
||||||
@ -654,10 +668,16 @@ public m_investmentType = [];
|
|||||||
|
|
||||||
loadDetails: boolean;
|
loadDetails: boolean;
|
||||||
addAssetsDetailsWithData(supp_data) {
|
addAssetsDetailsWithData(supp_data) {
|
||||||
console.log(supp_data);
|
//console.log(supp_data);
|
||||||
var result = Object.keys(supp_data).map(function (key) {
|
var result = Object.keys(supp_data).map(function (key) {
|
||||||
return supp_data[key];
|
return supp_data[key];
|
||||||
});
|
});
|
||||||
|
result.forEach((datas,index) => {
|
||||||
|
|
||||||
|
this.OtherAppxMarketAmtInwords[index] = this.pdTrigerService.convertNumberToWords(datas.approximate_market_value);
|
||||||
|
this.OtherEmiAmtInwords[index] = this.pdTrigerService.convertNumberToWords(datas.emi_paid);
|
||||||
|
|
||||||
|
});
|
||||||
if (result.length > 0) {
|
if (result.length > 0) {
|
||||||
for (let val of result) {
|
for (let val of result) {
|
||||||
let vals = {
|
let vals = {
|
||||||
@ -684,12 +704,16 @@ public m_investmentType = [];
|
|||||||
|
|
||||||
addBusinessAssetsDetailsWithData(supp_data) {
|
addBusinessAssetsDetailsWithData(supp_data) {
|
||||||
|
|
||||||
console.log(supp_data);
|
|
||||||
|
|
||||||
var result = Object.keys(supp_data).map(function (key) {
|
var result = Object.keys(supp_data).map(function (key) {
|
||||||
return supp_data[key];
|
return supp_data[key];
|
||||||
});
|
});
|
||||||
|
|
||||||
if (result.length > 0) {
|
if (result.length > 0) {
|
||||||
|
result.forEach((datas,index) => {
|
||||||
|
this.appxMarketAmtInwords[index] = this.pdTrigerService.convertNumberToWords(datas.business_approximate_market_value);
|
||||||
|
this.emiAmtInwords[index] = this.pdTrigerService.convertNumberToWords(datas.business_emi_paid);
|
||||||
|
});
|
||||||
|
|
||||||
for (let val of result) {
|
for (let val of result) {
|
||||||
let vals = {
|
let vals = {
|
||||||
business_assets_mode: val.business_assets_mode,
|
business_assets_mode: val.business_assets_mode,
|
||||||
@ -706,10 +730,6 @@ public m_investmentType = [];
|
|||||||
business_balance_tenure: val.business_balance_tenure
|
business_balance_tenure: val.business_balance_tenure
|
||||||
};
|
};
|
||||||
|
|
||||||
// const control = <FormArray>this._assetsQuesFrom.controls['assets_details'];
|
|
||||||
// control.push(this.initDetailsWithdata(vals));
|
|
||||||
// this.setAssetsDetailsWithData(vals.business_assets_mode, val.details, control.length - 1)
|
|
||||||
|
|
||||||
const control = <FormArray>this._assetsQuesFrom.controls['business_assets_details'];
|
const control = <FormArray>this._assetsQuesFrom.controls['business_assets_details'];
|
||||||
control.push(this.initBusinessDetailsWithdata(vals));
|
control.push(this.initBusinessDetailsWithdata(vals));
|
||||||
this.setBusinessAssetsDetailsWithData(vals.business_assets_mode, val.business_details, control.length - 1)
|
this.setBusinessAssetsDetailsWithData(vals.business_assets_mode, val.business_details, control.length - 1)
|
||||||
@ -755,16 +775,27 @@ public m_investmentType = [];
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case '6': {
|
case '6': {
|
||||||
|
data.forEach((datas,i) => {
|
||||||
|
this.OtherPremiumPaidInwords[i] = this.pdTrigerService.convertNumberToWords(+datas.premium_paid);
|
||||||
|
this.OtherSumAssuredInwords[i] = this.pdTrigerService.convertNumberToWords(+datas.sum_assured);
|
||||||
|
});
|
||||||
const control = (<FormArray>this._assetsQuesFrom.controls['assets_details']).at(val).get('details') as FormArray;
|
const control = (<FormArray>this._assetsQuesFrom.controls['assets_details']).at(val).get('details') as FormArray;
|
||||||
control.push(this.loadInsuranceDescriptionWithData(data));
|
control.push(this.loadInsuranceDescriptionWithData(data));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case '7': {
|
case '7': {
|
||||||
|
data.forEach((datas,i) => {
|
||||||
|
this.OtherAmtInvestInwords[i] = this.pdTrigerService.convertNumberToWords(+datas.amount_of_invest);
|
||||||
|
});
|
||||||
const control = (<FormArray>this._assetsQuesFrom.controls['assets_details']).at(val).get('details') as FormArray;
|
const control = (<FormArray>this._assetsQuesFrom.controls['assets_details']).at(val).get('details') as FormArray;
|
||||||
control.push(this.loadInvestDescriptionWithData(data));
|
control.push(this.loadInvestDescriptionWithData(data));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case '8': {
|
case '8': {
|
||||||
|
data.forEach((datas,i) => {
|
||||||
|
this.OtherAssetValueInwords[i] = this.pdTrigerService.convertNumberToWords(+data.any_other_asset_value);
|
||||||
|
this.O_emiAmtInwords[i] = this.pdTrigerService.convertNumberToWords(+datas.other_asset_emi_amt);
|
||||||
|
});
|
||||||
const control = (<FormArray>this._assetsQuesFrom.controls['assets_details']).at(val).get('details') as FormArray;
|
const control = (<FormArray>this._assetsQuesFrom.controls['assets_details']).at(val).get('details') as FormArray;
|
||||||
control.push(this.otherAssetsDescriptionWithData(data));
|
control.push(this.otherAssetsDescriptionWithData(data));
|
||||||
break;
|
break;
|
||||||
@ -776,6 +807,7 @@ public m_investmentType = [];
|
|||||||
}
|
}
|
||||||
|
|
||||||
setBusinessAssetsDetailsWithData(assets_details_mode: any, datas: any, i: any): void {
|
setBusinessAssetsDetailsWithData(assets_details_mode: any, datas: any, i: any): void {
|
||||||
|
console.log(datas);
|
||||||
let val = i;
|
let val = i;
|
||||||
let data = datas;
|
let data = datas;
|
||||||
const arr = (<FormArray>this._assetsQuesFrom.controls['business_assets_details']).at(val).get('business_details') as FormArray ;
|
const arr = (<FormArray>this._assetsQuesFrom.controls['business_assets_details']).at(val).get('business_details') as FormArray ;
|
||||||
@ -806,16 +838,27 @@ public m_investmentType = [];
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case '6': {
|
case '6': {
|
||||||
|
data.forEach((datas,i) => {
|
||||||
|
this.PremiumPaidInwords[i] = this.pdTrigerService.convertNumberToWords(+datas.premium_paid);
|
||||||
|
this.SumAssuredInwords[i] = this.pdTrigerService.convertNumberToWords(+datas.sum_assured);
|
||||||
|
});
|
||||||
const control = (<FormArray>this._assetsQuesFrom.controls['business_assets_details']).at(val).get('business_details') as FormArray ;
|
const control = (<FormArray>this._assetsQuesFrom.controls['business_assets_details']).at(val).get('business_details') as FormArray ;
|
||||||
control.push(this.loadInsuranceDescriptionWithData(data));
|
control.push(this.loadInsuranceDescriptionWithData(data));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case '7': {
|
case '7': {
|
||||||
|
data.forEach((datas,i) => {
|
||||||
|
this.AmtInvestInwords[i] = this.pdTrigerService.convertNumberToWords(+datas.amount_of_invest);
|
||||||
|
});
|
||||||
const control = (<FormArray>this._assetsQuesFrom.controls['business_assets_details']).at(val).get('business_details') as FormArray ;
|
const control = (<FormArray>this._assetsQuesFrom.controls['business_assets_details']).at(val).get('business_details') as FormArray ;
|
||||||
control.push(this.loadInvestDescriptionWithData(data));
|
control.push(this.loadInvestDescriptionWithData(data));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case '8': {
|
case '8': {
|
||||||
|
data.forEach((datas,i) => {
|
||||||
|
this.AssetValueInwords[i] = this.pdTrigerService.convertNumberToWords(+data.any_other_asset_value);
|
||||||
|
this.B_emiAmtInwords[i] = this.pdTrigerService.convertNumberToWords(+datas.other_asset_emi_amt);
|
||||||
|
});
|
||||||
const control = (<FormArray>this._assetsQuesFrom.controls['business_assets_details']).at(val).get('business_details') as FormArray ;
|
const control = (<FormArray>this._assetsQuesFrom.controls['business_assets_details']).at(val).get('business_details') as FormArray ;
|
||||||
control.push(this.otherBusinessAssetsDescriptionWithData(data));
|
control.push(this.otherBusinessAssetsDescriptionWithData(data));
|
||||||
break;
|
break;
|
||||||
@ -875,6 +918,7 @@ public m_investmentType = [];
|
|||||||
|
|
||||||
/** To Save/Edited Popup Data */
|
/** To Save/Edited Popup Data */
|
||||||
onSubmit() {
|
onSubmit() {
|
||||||
|
console.log(this._assetsQuesFrom.value);
|
||||||
this.submitted = true;
|
this.submitted = true;
|
||||||
|
|
||||||
// stop here if form is invalid
|
// stop here if form is invalid
|
||||||
@ -903,7 +947,7 @@ public m_investmentType = [];
|
|||||||
val.business_elapsed_tenure = '';
|
val.business_elapsed_tenure = '';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
console.log(answerFormValues);
|
||||||
// Save the data with help of Service
|
// Save the data with help of Service
|
||||||
this.pdTrigerService.savePDFormDetailsWithID(answerFormValues).subscribe(
|
this.pdTrigerService.savePDFormDetailsWithID(answerFormValues).subscribe(
|
||||||
dataresult => {
|
dataresult => {
|
||||||
@ -979,6 +1023,36 @@ inWords(e,i,flag){
|
|||||||
case 4 :
|
case 4 :
|
||||||
this.OtherEmiAmtInwords[i] = this.pdTrigerService.convertNumberToWords(e.target.value);
|
this.OtherEmiAmtInwords[i] = this.pdTrigerService.convertNumberToWords(e.target.value);
|
||||||
break;
|
break;
|
||||||
|
case 5 :
|
||||||
|
this.PremiumPaidInwords[i] = this.pdTrigerService.convertNumberToWords(e.target.value);
|
||||||
|
break;
|
||||||
|
case 6 :
|
||||||
|
this.OtherPremiumPaidInwords[i] = this.pdTrigerService.convertNumberToWords(e.target.value);
|
||||||
|
break;
|
||||||
|
case 7 :
|
||||||
|
this.SumAssuredInwords[i] = this.pdTrigerService.convertNumberToWords(e.target.value);
|
||||||
|
break;
|
||||||
|
case 8 :
|
||||||
|
this.OtherSumAssuredInwords[i] = this.pdTrigerService.convertNumberToWords(e.target.value);
|
||||||
|
break;
|
||||||
|
case 9 :
|
||||||
|
this.AmtInvestInwords[i] = this.pdTrigerService.convertNumberToWords(e.target.value);
|
||||||
|
break;
|
||||||
|
case 10 :
|
||||||
|
this.OtherAmtInvestInwords[i] = this.pdTrigerService.convertNumberToWords(e.target.value);
|
||||||
|
break;
|
||||||
|
case 11 :
|
||||||
|
this.AssetValueInwords[i] = this.pdTrigerService.convertNumberToWords(e.target.value);
|
||||||
|
break;
|
||||||
|
case 12 :
|
||||||
|
this.OtherAssetValueInwords[i] = this.pdTrigerService.convertNumberToWords(e.target.value);
|
||||||
|
break;
|
||||||
|
case 13:
|
||||||
|
this.B_emiAmtInwords[i] = this.pdTrigerService.convertNumberToWords(e.target.value);
|
||||||
|
break;
|
||||||
|
case 14:
|
||||||
|
this.O_emiAmtInwords[i] = this.pdTrigerService.convertNumberToWords(e.target.value);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,13 +18,13 @@
|
|||||||
<div fxFlex="100">
|
<div fxFlex="100">
|
||||||
<mat-card *ngIf="manufacturingForm">
|
<mat-card *ngIf="manufacturingForm">
|
||||||
<mat-card-header>
|
<mat-card-header>
|
||||||
<mat-card-title><p> Manufacturing Details</p></mat-card-title>
|
<mat-card-title class="highlight"> Manufacturing Details </mat-card-title>
|
||||||
</mat-card-header>
|
</mat-card-header>
|
||||||
<div formArrayName="manufacturing_details">
|
<div formArrayName="manufacturing_details">
|
||||||
<div *ngFor="let md of stockForms.controls.manufacturing_details['controls']; let i=index" [formGroupName]="i">
|
<div *ngFor="let md of stockForms.controls.manufacturing_details['controls']; let i=index" [formGroupName]="i">
|
||||||
<div formArrayName="manufacturing_raw_materials">
|
<div formArrayName="manufacturing_raw_materials">
|
||||||
<div *ngFor="let mrm of md.controls.manufacturing_raw_materials['controls']; let a=index" [formGroupName]="a">
|
<div *ngFor="let mrm of md.controls.manufacturing_raw_materials['controls']; let a=index" [formGroupName]="a">
|
||||||
<mat-card-subtitle> <p>{{a+1}} . Raw Material </p> </mat-card-subtitle>
|
<mat-label class="highlight"> <i> <p>{{a+1}} . Raw Material </p> </i> </mat-label>
|
||||||
<mat-card-content class="matcard">
|
<mat-card-content class="matcard">
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:30%">
|
||||||
<input matInput autocomplete="off" placeholder="Name" formControlName="raw_name" >
|
<input matInput autocomplete="off" placeholder="Name" formControlName="raw_name" >
|
||||||
@ -62,7 +62,7 @@
|
|||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field *ngIf="mrm.get('is_sufficiant_raw').value == 'no'" appearance="outline" style="width: 90%">
|
<mat-form-field *ngIf="mrm.get('is_sufficiant_raw').value == 'no'" appearance="outline" style="width: 90%">
|
||||||
<mat-label>Please comment on the stock level observed?</mat-label>
|
<mat-label class="highlight"> <i>Please comment on the stock level observed?</i> </mat-label>
|
||||||
<textarea matInput autocomplete="off" placeholder="Please comment on the stock level observed" formControlName="rawmaterial_remarks"></textarea>
|
<textarea matInput autocomplete="off" placeholder="Please comment on the stock level observed" formControlName="rawmaterial_remarks"></textarea>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</span>
|
</span>
|
||||||
@ -80,7 +80,7 @@
|
|||||||
|
|
||||||
<div formArrayName="manufacturing_finished_goods">
|
<div formArrayName="manufacturing_finished_goods">
|
||||||
<div *ngFor="let mfg of md.controls.manufacturing_finished_goods['controls']; let b=index" [formGroupName]="b">
|
<div *ngFor="let mfg of md.controls.manufacturing_finished_goods['controls']; let b=index" [formGroupName]="b">
|
||||||
<mat-card-subtitle> <p> {{b+1}} Finished Goods </p> </mat-card-subtitle>
|
<mat-label class="highlight"> <i> <p> {{b+1}} Finished Goods </p> </i> </mat-label>
|
||||||
<mat-card-content class="matcard">
|
<mat-card-content class="matcard">
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:30%">
|
||||||
<input matInput autocomplete="off" placeholder="Name" formControlName="goods_name" >
|
<input matInput autocomplete="off" placeholder="Name" formControlName="goods_name" >
|
||||||
@ -109,7 +109,7 @@
|
|||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field *ngIf="mfg.get('is_sufficiant_goods').value == 'no'" appearance="outline" style="width: 90%">
|
<mat-form-field *ngIf="mfg.get('is_sufficiant_goods').value == 'no'" appearance="outline" style="width: 90%">
|
||||||
<mat-label>Please comment on the finished goods stock level observed?</mat-label>
|
<mat-label class="highlight"> <i>Please comment on the finished goods stock level observed?</i> </mat-label>
|
||||||
<textarea matInput autocomplete="off" placeholder="Please comment on the finished goods observed" formControlName="finishedgoods_remarks"></textarea>
|
<textarea matInput autocomplete="off" placeholder="Please comment on the finished goods observed" formControlName="finishedgoods_remarks"></textarea>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</span>
|
</span>
|
||||||
@ -128,7 +128,7 @@
|
|||||||
|
|
||||||
<div formArrayName="manufacturing_traded_goods">
|
<div formArrayName="manufacturing_traded_goods">
|
||||||
<div *ngFor="let mtg of md.controls.manufacturing_traded_goods['controls']; let c=index" [formGroupName]="c">
|
<div *ngFor="let mtg of md.controls.manufacturing_traded_goods['controls']; let c=index" [formGroupName]="c">
|
||||||
<mat-card-subtitle> <p>{{c+1}} Traded Goods </p> </mat-card-subtitle>
|
<mat-label class="highlight"> <i> <p>{{c+1}} Traded Goods </p> </i> </mat-label>
|
||||||
<mat-card-content class="matcard">
|
<mat-card-content class="matcard">
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:30%">
|
||||||
<input matInput autocomplete="off" placeholder="Name" formControlName="traded_goods_name" >
|
<input matInput autocomplete="off" placeholder="Name" formControlName="traded_goods_name" >
|
||||||
@ -158,7 +158,7 @@
|
|||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field *ngIf="mtg.get('is_sufficiant_traded_goods').value == 'no'" appearance="outline" style="width: 90%">
|
<mat-form-field *ngIf="mtg.get('is_sufficiant_traded_goods').value == 'no'" appearance="outline" style="width: 90%">
|
||||||
<mat-label>Please comment on the Traded Goods stock level observed?</mat-label>
|
<mat-label class="highlight"> <i>Please comment on the Traded Goods stock level observed?</i> </mat-label>
|
||||||
<textarea matInput autocomplete="off" placeholder="Please comment on the traded goods stock level observed" formControlName="traded_goods_remarks"></textarea>
|
<textarea matInput autocomplete="off" placeholder="Please comment on the traded goods stock level observed" formControlName="traded_goods_remarks"></textarea>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</span>
|
</span>
|
||||||
@ -188,7 +188,7 @@
|
|||||||
|
|
||||||
<div formArrayName="retail_finished_goods">
|
<div formArrayName="retail_finished_goods">
|
||||||
<div *ngFor="let retailfg of rd.controls.retail_finished_goods['controls']; let d=index" [formGroupName]="d">
|
<div *ngFor="let retailfg of rd.controls.retail_finished_goods['controls']; let d=index" [formGroupName]="d">
|
||||||
<mat-card-subtitle> <p>{{d+1}} Finished Goods </p> </mat-card-subtitle>
|
<mat-label class="highlight"> <i> <p>{{d+1}} Finished Goods </p> </i> </mat-label>
|
||||||
<mat-card-content class="matcard">
|
<mat-card-content class="matcard">
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:30%">
|
||||||
<input matInput autocomplete="off" placeholder="Name" formControlName="goods_name" >
|
<input matInput autocomplete="off" placeholder="Name" formControlName="goods_name" >
|
||||||
@ -218,7 +218,7 @@
|
|||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field *ngIf="retailfg.get('is_sufficiant_goods').value == 'no'" appearance="outline" style="width: 90%">
|
<mat-form-field *ngIf="retailfg.get('is_sufficiant_goods').value == 'no'" appearance="outline" style="width: 90%">
|
||||||
<mat-label>Please comment on the finished goods stock level observed?</mat-label>
|
<mat-label class="highlight"> <i>Please comment on the finished goods stock level observed?</i> </mat-label>
|
||||||
<textarea matInput autocomplete="off" placeholder="Please comment on the finished goods observed" formControlName="finishedgoods_remarks"></textarea>
|
<textarea matInput autocomplete="off" placeholder="Please comment on the finished goods observed" formControlName="finishedgoods_remarks"></textarea>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</span>
|
</span>
|
||||||
@ -237,7 +237,7 @@
|
|||||||
|
|
||||||
<div formArrayName="retail_traded_goods">
|
<div formArrayName="retail_traded_goods">
|
||||||
<div *ngFor="let item of rd.controls.retail_traded_goods['controls']; let e=index" [formGroupName]="e">
|
<div *ngFor="let item of rd.controls.retail_traded_goods['controls']; let e=index" [formGroupName]="e">
|
||||||
<mat-card-subtitle> <p>{{e+1}} Traded Goods </p> </mat-card-subtitle>
|
<mat-label class="highlight"> <i> <p>{{e+1}} Traded Goods </p> </i> </mat-label>
|
||||||
<mat-card-content class="matcard">
|
<mat-card-content class="matcard">
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:30%">
|
||||||
<input matInput autocomplete="off" placeholder="Name" formControlName="traded_goods_name" >
|
<input matInput autocomplete="off" placeholder="Name" formControlName="traded_goods_name" >
|
||||||
@ -267,7 +267,7 @@
|
|||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field *ngIf="item.get('is_sufficiant_traded_goods').value == 'no'" appearance="outline" style="width: 90%">
|
<mat-form-field *ngIf="item.get('is_sufficiant_traded_goods').value == 'no'" appearance="outline" style="width: 90%">
|
||||||
<mat-label>Please comment on the Traded Goods stock level observed?</mat-label>
|
<mat-label class="highlight"> <i>Please comment on the Traded Goods stock level observed?</i> </mat-label>
|
||||||
<textarea matInput autocomplete="off" placeholder="Please comment on the traded goods stock level observed" formControlName="traded_goods_remarks"></textarea>
|
<textarea matInput autocomplete="off" placeholder="Please comment on the traded goods stock level observed" formControlName="traded_goods_remarks"></textarea>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</span>
|
</span>
|
||||||
@ -298,7 +298,7 @@
|
|||||||
<div *ngFor="let td of stockForms.controls.trade_details['controls']; let k=index" [formGroupName]="k">
|
<div *ngFor="let td of stockForms.controls.trade_details['controls']; let k=index" [formGroupName]="k">
|
||||||
<div formArrayName="trading_finished_goods">
|
<div formArrayName="trading_finished_goods">
|
||||||
<div *ngFor="let tradesubdetail of td.controls.trading_finished_goods['controls']; let f=index" [formGroupName]="f">
|
<div *ngFor="let tradesubdetail of td.controls.trading_finished_goods['controls']; let f=index" [formGroupName]="f">
|
||||||
<mat-card-subtitle> <p>{{f+1}} Finished Goods </p> </mat-card-subtitle>
|
<mat-label class="highlight"> <i> <p>{{f+1}} Finished Goods </p> </i> </mat-label>
|
||||||
<mat-card-content class="matcard">
|
<mat-card-content class="matcard">
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:30%">
|
||||||
<input matInput autocomplete="off" placeholder="Name" formControlName="goods_name" >
|
<input matInput autocomplete="off" placeholder="Name" formControlName="goods_name" >
|
||||||
@ -328,7 +328,7 @@
|
|||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field *ngIf="tradesubdetail.get('is_sufficiant_goods').value == 'no'" appearance="outline" style="width: 90%">
|
<mat-form-field *ngIf="tradesubdetail.get('is_sufficiant_goods').value == 'no'" appearance="outline" style="width: 90%">
|
||||||
<mat-label>Please comment on the finished goods stock level observed?</mat-label>
|
<mat-label class="highlight"> <i>Please comment on the finished goods stock level observed?</i> </mat-label>
|
||||||
<textarea matInput autocomplete="off" placeholder="Please comment on the finished goods observed" formControlName="finishedgoods_remarks"></textarea>
|
<textarea matInput autocomplete="off" placeholder="Please comment on the finished goods observed" formControlName="finishedgoods_remarks"></textarea>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</span>
|
</span>
|
||||||
@ -348,7 +348,7 @@
|
|||||||
|
|
||||||
<div formArrayName="trading_traded_goods">
|
<div formArrayName="trading_traded_goods">
|
||||||
<div *ngFor="let tradetg of td.controls.trading_traded_goods['controls']; let g=index" [formGroupName]="g">
|
<div *ngFor="let tradetg of td.controls.trading_traded_goods['controls']; let g=index" [formGroupName]="g">
|
||||||
<mat-card-subtitle> <p>{{g+1}} Traded Goods </p> </mat-card-subtitle>
|
<mat-label class="highlight"> <i> <p>{{g+1}} Traded Goods </p> </i> </mat-label>
|
||||||
<mat-card-content class="matcard">
|
<mat-card-content class="matcard">
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:30%">
|
||||||
<input matInput autocomplete="off" placeholder="Name" formControlName="traded_goods_name" >
|
<input matInput autocomplete="off" placeholder="Name" formControlName="traded_goods_name" >
|
||||||
@ -378,7 +378,7 @@
|
|||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field *ngIf="tradetg.get('is_sufficiant_traded_goods').value == 'no'" appearance="outline" style="width: 90%">
|
<mat-form-field *ngIf="tradetg.get('is_sufficiant_traded_goods').value == 'no'" appearance="outline" style="width: 90%">
|
||||||
<mat-label>Please comment on the Traded Goods stock level observed?</mat-label>
|
<mat-label class="highlight"> <i>Please comment on the Traded Goods stock level observed?</i> </mat-label>
|
||||||
<textarea matInput autocomplete="off" placeholder="Please comment on the traded goods stock level observed" formControlName="traded_goods_remarks"></textarea>
|
<textarea matInput autocomplete="off" placeholder="Please comment on the traded goods stock level observed" formControlName="traded_goods_remarks"></textarea>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</span>
|
</span>
|
||||||
@ -515,7 +515,7 @@
|
|||||||
<mat-dialog-actions>
|
<mat-dialog-actions>
|
||||||
<div fxFlex="60" class="pb-0 text-sm-left" align="left">
|
<div fxFlex="60" class="pb-0 text-sm-left" align="left">
|
||||||
<mat-form-field appearance="outline" style="width: 100%">
|
<mat-form-field appearance="outline" style="width: 100%">
|
||||||
<mat-label>Remarks</mat-label>
|
<mat-label class="highlight"> <i>Remarks</i> </mat-label>
|
||||||
<textarea matInput autocomplete="off" placeholder="Remarks" formControlName="stock_remarks"></textarea>
|
<textarea matInput autocomplete="off" placeholder="Remarks" formControlName="stock_remarks"></textarea>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -16,7 +16,9 @@
|
|||||||
// background: #62B013;
|
// background: #62B013;
|
||||||
// color: white;
|
// color: white;
|
||||||
// }
|
// }
|
||||||
|
.highlight {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
.paragraph_change {
|
.paragraph_change {
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
background-color: #e00201 !important;
|
background-color: #e00201 !important;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user