UI Changes
This commit is contained in:
parent
1aa533a552
commit
05d55de7ec
@ -25,7 +25,8 @@
|
||||
</div>
|
||||
<div class="item-margin" fxFlex="100">
|
||||
<mat-form-field style="width: 25%">
|
||||
<input OnlyNumber type="text" matInput placeholder="Amount (Rs)" (keyup)="businessCalculation(s,item.value)" formControlName="expense_value" required>
|
||||
<input OnlyNumber type="text" matInput placeholder="Amount (Rs)" (keyup)="businessCalculation(s,item.value);inWords($event.target.value,s,1)" formControlName="expense_value" required>
|
||||
<mat-hint align="start" style="font-size:90%" *ngIf="item.get('expense_value').value != ''">{{"₹"}} {{Amount[s]}} Only</mat-hint>
|
||||
</mat-form-field>
|
||||
<mat-form-field style="width: 25%">
|
||||
<mat-select placeholder="Frequency" formControlName="fk_frequency_id" (selectionChange)="businessCalculation(s,item.value)" required>
|
||||
|
||||
@ -10,7 +10,8 @@ import { NotifierService } from 'angular-notifier';
|
||||
styleUrls: ['./manage-busines-expense.component.scss']
|
||||
})
|
||||
export class ManageBusinesExpenseComponent implements OnInit {
|
||||
|
||||
Amount: any = [];
|
||||
|
||||
pageTitle:string;
|
||||
businessItemForm:FormGroup;
|
||||
frequencyData: any[]=[];
|
||||
@ -122,4 +123,15 @@ submitDetails(records) {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/** Amount InWords */
|
||||
inWords(e,i,flag){
|
||||
switch(flag){
|
||||
case 1 :
|
||||
this.Amount[i] = this._pd.convertNumberToWords(e);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -35,8 +35,9 @@
|
||||
<mat-datepicker #picker></mat-datepicker>
|
||||
</mat-form-field>
|
||||
<mat-form-field style="width: 25%">
|
||||
<input OnlyNumber type="text" matInput placeholder="Value" (keyup)="salesCalculation(s,sales.value,sales.value.child)" formControlName="sales_value" required>
|
||||
</mat-form-field>
|
||||
<input OnlyNumber type="text" matInput placeholder="Value" (keyup)="salesCalculation(s,sales.value,sales.value.child);inWords($event.target.value,c,1)" formControlName="sales_value" required>
|
||||
<mat-hint align="start" style="font-size:90%" *ngIf="childItem.get('sales_value').value != ''">{{"₹"}} {{Value[c]}} Only</mat-hint>
|
||||
</mat-form-field>
|
||||
<button type="button" class="mr-1 mb-1 hover-icon" mat-raised-button mat-icon-button (click)="removeDailyItems(s,c,childItem.value)" *ngIf="(sales.value.child | deleteRecordsCount)>1"
|
||||
matTooltip="Remove" matTooltipPosition="above">
|
||||
<mat-icon>delete</mat-icon>
|
||||
|
||||
@ -13,6 +13,7 @@ import { DeleteRecordsCountPipe } from './../../../../../../../pd-pipes/delete-r
|
||||
providers: [DeleteRecordsCountPipe],
|
||||
})
|
||||
export class ManageDailySalesComponent implements OnInit {
|
||||
Value: any []=[];
|
||||
pipe = new DatePipe('en-US');
|
||||
pageTitle:string;
|
||||
salesItemForm:FormGroup;
|
||||
@ -211,5 +212,12 @@ submitDetails(records) {
|
||||
}
|
||||
});
|
||||
}
|
||||
inWords(e,c,flag){
|
||||
switch(flag){
|
||||
case 1 :
|
||||
this.Value[c] = this._pd.convertNumberToWords(e);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -23,7 +23,8 @@
|
||||
</div>
|
||||
<div class="item-margin" fxFlex="100">
|
||||
<mat-form-field style="width: 25%">
|
||||
<input OnlyNumber type="text" matInput placeholder="Amount (Rs)" (keyup)="houseCalculation(s,item.value)" formControlName="expense_value" required>
|
||||
<input OnlyNumber type="text" matInput placeholder="Amount (Rs)" (keyup)="houseCalculation(s,item.value);inWords($event.target.value,s,1)" formControlName="expense_value" required>
|
||||
<mat-hint align="start" style="font-size:90%" *ngIf="item.get('expense_value').value != ''">{{"₹"}} {{Amount[s]}} Only</mat-hint>
|
||||
</mat-form-field>
|
||||
<mat-form-field style="width: 25%">
|
||||
<mat-select placeholder="Frequency" formControlName="fk_frequency_id" (selectionChange)="houseCalculation(s,item.value)" required>
|
||||
|
||||
@ -10,7 +10,8 @@ import { NotifierService } from 'angular-notifier';
|
||||
styleUrls: ['./manage-house-hold.component.scss']
|
||||
})
|
||||
export class ManageHouseHoldComponent implements OnInit {
|
||||
pageTitle:string;
|
||||
Amount: any[]=[];
|
||||
pageTitle: string;
|
||||
houseItemForm:FormGroup;
|
||||
frequencyData: any[]=[];
|
||||
private notifier: NotifierService;
|
||||
@ -118,5 +119,12 @@ submitDetails(records) {
|
||||
}
|
||||
});
|
||||
}
|
||||
inWords(e,s,flag){
|
||||
switch(flag){
|
||||
case 1 :
|
||||
this.Amount[s] = this._pd.convertNumberToWords(e);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -25,7 +25,8 @@
|
||||
</div>
|
||||
<div class="item-margin" fxFlex="100">
|
||||
<mat-form-field style="width: 25%">
|
||||
<input OnlyNumber type="text" matInput placeholder="Amount (Rs)" (keyup)="businessCalculation(s,item.value)" formControlName="income_value" required>
|
||||
<input OnlyNumber type="text" matInput placeholder="Amount (Rs)" (keyup)="businessCalculation(s,item.value);inWords($event.target.value,s,1)" formControlName="income_value" required>
|
||||
<mat-hint align="start" style="font-size:90%" *ngIf="item.get('income_value').value != ''">{{"₹"}} {{Amount[s]}} Only</mat-hint>
|
||||
</mat-form-field>
|
||||
<mat-form-field style="width: 25%">
|
||||
<mat-select placeholder="Frequency" formControlName="fk_frequency_id" (selectionChange)="businessCalculation(s,item.value)" required>
|
||||
|
||||
@ -10,6 +10,7 @@ import { NotifierService } from 'angular-notifier';
|
||||
styleUrls: ['./manage-other-business-income.component.scss']
|
||||
})
|
||||
export class ManageOtherBusinessIncomeComponent implements OnInit {
|
||||
Amount: any[]=[];
|
||||
|
||||
pageTitle:string;
|
||||
businessIncomeItemForm:FormGroup;
|
||||
@ -122,4 +123,13 @@ submitDetails(records) {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
inWords(e,s,flag){
|
||||
switch(flag){
|
||||
case 1 :
|
||||
this.Amount[s] = this._pd.convertNumberToWords(e);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -31,7 +31,8 @@
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
<mat-form-field style="width: 25%">
|
||||
<input OnlyNumber type="text" matInput placeholder="Rate/Unit of Purchase" formControlName="rate_per_unit" (keyup)="purchaseCalculation(s,item.value)" required>
|
||||
<input OnlyNumber type="text" matInput placeholder="Rate/Unit of Purchase" formControlName="rate_per_unit" (keyup)="purchaseCalculation(s,item.value);inWords($event.target.value,s,1)" required>
|
||||
<mat-hint align="start" style="font-size:90%" *ngIf="item.get('rate_per_unit').value != ''">{{"₹"}} {{RateUnitofPurchase[s]}} Only</mat-hint>
|
||||
</mat-form-field>
|
||||
</div>
|
||||
|
||||
|
||||
@ -10,8 +10,8 @@ import { NotifierService } from 'angular-notifier';
|
||||
styleUrls: ['./manage-purchase.component.scss']
|
||||
})
|
||||
export class ManagePurchaseComponent implements OnInit {
|
||||
|
||||
pageTitle:string;
|
||||
RateUnitofPurchase: any[]=[];
|
||||
pageTitle: string;
|
||||
purchaseItemForm:FormGroup;
|
||||
UOMData: any[]=[];
|
||||
frequencyData: any[]=[];
|
||||
@ -126,4 +126,13 @@ submitDetails(records) {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
inWords(e,s,flag){
|
||||
switch(flag){
|
||||
case 1 :
|
||||
this.RateUnitofPurchase[s] = this._pd.convertNumberToWords(e);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -23,7 +23,8 @@
|
||||
</div>
|
||||
<div class="item-margin" fxFlex="100">
|
||||
<mat-form-field style="width: 25%">
|
||||
<input OnlyNumber type="text" matInput placeholder="Sale Quantity" (keyup)="salesCalculation(s,sales.value)" formControlName="sales_qty" required>
|
||||
<input OnlyNumber type="text" matInput placeholder="Sale Quantity" (keyup)="salesCalculation(s,sales.value);inWords($event.target.value,s,1)" formControlName="sales_qty" required>
|
||||
<mat-hint align="start" style="font-size:90%" *ngIf="sales.get('sales_qty').value != ''">{{"₹"}} {{Sale_Quantity[s]}} Only</mat-hint>
|
||||
</mat-form-field>
|
||||
<mat-form-field style="width: 25%">
|
||||
<mat-select placeholder="UOM" formControlName="fk_uom_id" required>
|
||||
|
||||
@ -10,7 +10,8 @@ import { NotifierService } from 'angular-notifier';
|
||||
styleUrls: ['./manage-sales.component.scss']
|
||||
})
|
||||
export class ManageSalesComponent implements OnInit {
|
||||
pageTitle:string;
|
||||
Sale_Quantity: any[]=[];
|
||||
pageTitle: string;
|
||||
salesItemForm:FormGroup;
|
||||
UOMData: any[]=[];
|
||||
frequencyData: any[]=[];
|
||||
@ -154,4 +155,12 @@ submitDetails(records) {
|
||||
});
|
||||
}
|
||||
|
||||
inWords(e,s,flag){
|
||||
switch(flag){
|
||||
case 1 :
|
||||
this.Sale_Quantity[s] = this._pd.convertNumberToWords(e);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user