issues fixed : sanjeev

This commit is contained in:
venbatechnologies@gmail.com 2019-03-19 17:47:30 +05:30
parent cdd6add5e6
commit 76b2f60089
2 changed files with 5 additions and 4 deletions

View File

@ -89,7 +89,8 @@ export class PdQuestionStockInfoPage {
let type4length = type4[0].hasOwnProperty("products") ? type4[0].products.length : 0;
let rm_api = record.from_supplier;
let rm_api = record.from_supplier.hasOwnProperty("raw_material") ? record.from_supplier.raw_material : [];
let params: any = {};
params.pd_id = this.pdid;
params.pd_form_id = this.formDetails.form_id;
@ -280,7 +281,7 @@ export class PdQuestionStockInfoPage {
manufacturingForm: Boolean = false;
manufacturingFormCreation(record) {
let arr = record.from_business.filter(data => data.type_of_activity_id == 2);
let rm_arr = record.from_supplier;
let rm_arr = record.from_supplier.hasOwnProperty("raw_material") ? record.from_supplier.raw_material : [];
//console.log("Manufacturing ",arr);
if (arr.length > 0) {
this.manufacturingForm = true;

View File

@ -46,11 +46,11 @@
<label style="font-size: 13px;font-weight: bold" float-right color="primary">Do not know &nbsp;
<mat-slide-toggle style="zoom: 0.9;" float-right color="primary" formControlName="did_not_know_the_business_operation" (change)="toggleVisibility($event.checked,n,1)"></mat-slide-toggle></label>
<mat-form-field style="width: 100%" *ngIf="!isDisplay[n]">
<input matInput type="number" placeholder="Years" formControlName="how_long_do_know_in_year" type="text" (keypress)="keyPress($event)">
<input matInput type="number" placeholder="Years" formControlName="how_long_do_know_in_year">
<mat-error style="font-size:12px;margin:0;padding:0;font-weight: normal;float:right" *ngIf="neighbourhood['controls'].how_long_do_know_in_year.errors?.required || neighbourhood['controls'].how_long_do_know_in_year.touched">Year is Required</mat-error>
</mat-form-field>
<mat-form-field style="width: 100%" *ngIf="!isDisplay[n]">
<input matInput type="number" placeholder="Months" formControlName="how_long_do_know_in_month" type="text" (keypress)="keyPress($event)" (change)="ConvertMonthintoYear(neighbourhood,$event.target.value,1)">
<input matInput type="number" placeholder="Months" formControlName="how_long_do_know_in_month" (change)="ConvertMonthintoYear(neighbourhood,$event.target.value,1)">
<!-- <mat-error style="font-size:12px;margin:0;padding:0;font-weight: normal;float:right" *ngIf="neighbourhood['controls'].how_long_do_know_in_month.errors?.required || neighbourhood['controls'].how_long_do_know_in_month.touched">Month is Required</mat-error> -->
</mat-form-field>