changes : ps

This commit is contained in:
venbatechnologies@gmail.com 2019-03-11 10:53:48 +05:30
parent 893fc1c37b
commit dfd912a89e
4 changed files with 8 additions and 5 deletions

Binary file not shown.

View File

@ -38,19 +38,19 @@
<!-- Position1 Column -->
<ng-container matColumnDef="position_2">
<th mat-header-cell *matHeaderCellDef> Declared_by_customer</th>
<td mat-cell *matCellDef="let element"> {{element.declared_by_customer.toFixed(2)}} </td>
<td mat-cell *matCellDef="let element"> {{element.declared_by_customer}} </td>
</ng-container>
<!-- Position2 Column -->
<ng-container matColumnDef="position_3">
<th mat-header-cell *matHeaderCellDef> As Derived from Item Wise Sales </th>
<td mat-cell *matCellDef="let element"> {{element.derived_item_wise.toFixed(2)}} </td>
<td mat-cell *matCellDef="let element"> {{element.derived_item_wise}} </td>
</ng-container>
<!-- Position3 Column -->
<ng-container matColumnDef="position_4">
<th mat-header-cell *matHeaderCellDef> As Derived from Kuchha Sales Book/Bills </th>
<td mat-cell *matCellDef="let element"> {{element.derived_sales_book.toFixed(2)}} </td>
<td mat-cell *matCellDef="let element"> {{element.derived_sales_book}} </td>
</ng-container>
<!-- action Column -->

View File

@ -120,7 +120,7 @@
</mat-select>
</mat-form-field>
<mat-form-field>
<input matInput placeholder="Age" formControlName="family_member_age" [readonly]="isReadOnly[i]">
<input matInput placeholder="Age" formControlName="family_member_age" [readonly]="item.get('family_member_earning_status').value != '' ? 'true' : 'false'">
</mat-form-field>
</div>
<div>

View File

@ -394,6 +394,7 @@ export class FinancialInfoComponent implements OnInit {
else if(e == 'no'){
this.isDisplay = false;
this.selectedFinancialCustomer('no');
this.financialForm.controls['is_financial_customer'].setValue('no');
const statementControl = <FormArray>this.financialForm.controls['date_per_financial'];
@ -424,7 +425,9 @@ export class FinancialInfoComponent implements OnInit {
}
else if (e == 'no'){
const control = <FormArray>this.financialForm.controls['estimated_value'];
control.push(this.createValue(''));
if(control.length === 0){
control.push(this.createValue(''));
}
}
}