Allow add loan charge in future date (#1644)
Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
a56347d400
commit
57a55a18a9
@@ -1,6 +1,8 @@
|
|||||||
|
@import "assets/styles/helper";
|
||||||
|
|
||||||
.breadcrumb-wrapper {
|
.breadcrumb-wrapper {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
max-width: 74rem;
|
max-width: 84rem;
|
||||||
width: 90%;
|
width: 90%;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
|
|
||||||
@@ -17,7 +19,7 @@
|
|||||||
|
|
||||||
.separator::before {
|
.separator::before {
|
||||||
content: "";
|
content: "";
|
||||||
border: 1.5px solid #000;
|
border: 1.5px solid $mid-grey;
|
||||||
margin: 0 0.6rem;
|
margin: 0 0.6rem;
|
||||||
font-size: 1.25rem;
|
font-size: 1.25rem;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
@@ -30,7 +32,7 @@
|
|||||||
.breadcrumb-link {
|
.breadcrumb-link {
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #0275d8;
|
color: $status-approved;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
|
|||||||
+1
-1
@@ -67,7 +67,7 @@ export class AddLoanChargeComponent implements OnInit {
|
|||||||
* Creates the Loan Charge form.
|
* Creates the Loan Charge form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.maxDate = this.settingsService.businessDate;
|
this.maxDate = this.settingsService.maxFutureDate;
|
||||||
this.createLoanChargeForm();
|
this.createLoanChargeForm();
|
||||||
this.loanChargeForm.controls.chargeId.valueChanges.subscribe(chargeId => {
|
this.loanChargeForm.controls.chargeId.valueChanges.subscribe(chargeId => {
|
||||||
const chargeDetails = this.loanChargeOptions.find(option => {
|
const chargeDetails = this.loanChargeOptions.find(option => {
|
||||||
|
|||||||
+6
-3
@@ -16,13 +16,13 @@
|
|||||||
|
|
||||||
<div class="m-t-10" *ngIf="dataObject.data.length > 0">
|
<div class="m-t-10" *ngIf="dataObject.data.length > 0">
|
||||||
|
|
||||||
<div fxFlexFill *ngFor="let columnHeader of dataObject.columnHeaders;let i = index" [ngClass}="{{setAttributeClass(columnHeader.columnName)}}" >
|
<div fxFlexFill *ngFor="let columnHeader of dataObject.columnHeaders;let i = index" [ngClass]="setAttributeClass(columnHeader.columnName)" >
|
||||||
|
|
||||||
<div fxFlex="45%" class="mat-body-strong left">
|
<div fxFlex="40%" class="mat-body-strong left">
|
||||||
{{ getInputName(columnHeader.columnName) }}
|
{{ getInputName(columnHeader.columnName) }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div fxFlex="50%" [ngSwitch]="columnHeader.columnDisplayType" class="right">
|
<div fxFlex="68%" [ngSwitch]="columnHeader.columnDisplayType" class="right">
|
||||||
<span *ngSwitchCase="'DATE'">
|
<span *ngSwitchCase="'DATE'">
|
||||||
{{dataObject.data[0].row[i] | dateFormat}}
|
{{dataObject.data[0].row[i] | dateFormat}}
|
||||||
</span>
|
</span>
|
||||||
@@ -32,6 +32,9 @@
|
|||||||
<span *ngSwitchCase="'INTEGER' || 'DECIMAL'">
|
<span *ngSwitchCase="'INTEGER' || 'DECIMAL'">
|
||||||
{{dataObject.data[0].row[i] | number}}
|
{{dataObject.data[0].row[i] | number}}
|
||||||
</span>
|
</span>
|
||||||
|
<span *ngSwitchCase="'TEXT'" class="long-text">
|
||||||
|
{{dataObject.data[0].row[i]}}
|
||||||
|
</span>
|
||||||
<span *ngSwitchDefault>
|
<span *ngSwitchDefault>
|
||||||
{{dataObject.data[0].row[i]}}
|
{{dataObject.data[0].row[i]}}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
+6
-1
@@ -18,6 +18,11 @@
|
|||||||
|
|
||||||
.system-defined {
|
.system-defined {
|
||||||
margin-top: 3px;
|
margin-top: 3px;
|
||||||
color: $concrete !important;
|
color: $status-approved !important;
|
||||||
font-weight: 100;
|
font-weight: 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.long-text {
|
||||||
|
word-break: break-all;
|
||||||
|
white-space: normal;
|
||||||
|
}
|
||||||
|
|||||||
-1
@@ -133,5 +133,4 @@ export class DatatableSingleRowComponent implements OnInit {
|
|||||||
getInputName(attr: string): string {
|
getInputName(attr: string): string {
|
||||||
return this.datatables.getName(attr);
|
return this.datatables.getName(attr);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user