diff --git a/src/app/accounting/view-transaction/view-transaction.component.html b/src/app/accounting/view-transaction/view-transaction.component.html
index 86fdfa4fb..79ea1cfb0 100644
--- a/src/app/accounting/view-transaction/view-transaction.component.html
+++ b/src/app/accounting/view-transaction/view-transaction.component.html
@@ -55,7 +55,7 @@
-
+
@@ -80,13 +80,13 @@
- | Debit |
- {{ (transaction.currency.displaySymbol || transaction.currency.code) + ' ' + transaction.amount }} |
+ Debit |
+ {{ (transaction.currency.displaySymbol || transaction.currency.code) }} {{ transaction.amount | number }} |
- Credit |
- {{ (transaction.currency.displaySymbol || transaction.currency.code) + ' ' + transaction.amount }} |
+ Credit |
+ {{ (transaction.currency.displaySymbol || transaction.currency.code) }} {{ transaction.amount | number }} |
@@ -94,9 +94,8 @@
-
-
-
diff --git a/src/app/accounting/view-transaction/view-transaction.component.scss b/src/app/accounting/view-transaction/view-transaction.component.scss
index a49f2e690..32cd172f8 100644
--- a/src/app/accounting/view-transaction/view-transaction.component.scss
+++ b/src/app/accounting/view-transaction/view-transaction.component.scss
@@ -13,9 +13,16 @@
}
table {
- width: 100%;
+ width: 98%;
.select-row:hover {
cursor: pointer;
}
}
+
+.action-bar {
+ width: 98%;
+ align-items: center;
+ padding-top: 15px;
+ padding-bottom: 15px;
+}
diff --git a/src/app/loans/loans-account-stepper/loans-account-charges-step/loans-account-charges-step.component.ts b/src/app/loans/loans-account-stepper/loans-account-charges-step/loans-account-charges-step.component.ts
index 17ae4f33d..1ee29e209 100644
--- a/src/app/loans/loans-account-stepper/loans-account-charges-step/loans-account-charges-step.component.ts
+++ b/src/app/loans/loans-account-stepper/loans-account-charges-step/loans-account-charges-step.component.ts
@@ -67,7 +67,7 @@ export class LoansAccountChargesStepComponent implements OnInit, OnChanges {
}
ngOnInit() {
- if (this.loansAccountTemplate.charges) {
+ if (this.loansAccountTemplate && this.loansAccountTemplate.charges) {
this.chargesDataSource = this.loansAccountTemplate.charges.map((charge: any) => ({ ...charge, id: charge.chargeId })) || [];
}
}
@@ -81,6 +81,9 @@ export class LoansAccountChargesStepComponent implements OnInit, OnChanges {
if (this.loansAccountProductTemplate.overdueCharges) {
this.overDueChargesDataSource = this.loansAccountProductTemplate.overdueCharges;
}
+ if (this.loansAccountProductTemplate.charges) {
+ this.chargesDataSource = this.loansAccountProductTemplate.charges.map((charge: any) => ({ ...charge, id: charge.chargeId })) || [];
+ }
}
}
diff --git a/src/app/products/manage-tax-components/create-tax-component/create-tax-component.component.ts b/src/app/products/manage-tax-components/create-tax-component/create-tax-component.component.ts
index 90aff5c10..7b8378c5a 100644
--- a/src/app/products/manage-tax-components/create-tax-component/create-tax-component.component.ts
+++ b/src/app/products/manage-tax-components/create-tax-component/create-tax-component.component.ts
@@ -21,7 +21,7 @@ export class CreateTaxComponentComponent implements OnInit {
/** Minimum start date allowed. */
minDate = new Date();
/** Maximum start date allowed. */
- maxDate = new Date(new Date().setFullYear(new Date().getFullYear() + 10));
+ maxDate = new Date();
/** Tax Component form. */
taxComponentForm: FormGroup;
/** Tax Component template data. */
@@ -59,6 +59,8 @@ export class CreateTaxComponentComponent implements OnInit {
* Creates the tax Component form
*/
ngOnInit() {
+ this.minDate = this.settingsService.minAllowedDate;
+ this.maxDate = this.settingsService.maxAllowedDate;
this.createTaxComponentForm();
this.setConditionalControls();
}
diff --git a/src/app/products/manage-tax-components/edit-tax-component/edit-tax-component.component.html b/src/app/products/manage-tax-components/edit-tax-component/edit-tax-component.component.html
index d676ee946..159697ab0 100644
--- a/src/app/products/manage-tax-components/edit-tax-component/edit-tax-component.component.html
+++ b/src/app/products/manage-tax-components/edit-tax-component/edit-tax-component.component.html
@@ -22,21 +22,21 @@
Percentage is required
-
+
Credit Account Type
-
+
Credit Account
-
-
+
+
Start Date
-
+
diff --git a/src/app/products/manage-tax-components/edit-tax-component/edit-tax-component.component.ts b/src/app/products/manage-tax-components/edit-tax-component/edit-tax-component.component.ts
index 6e945d22f..09f860655 100644
--- a/src/app/products/manage-tax-components/edit-tax-component/edit-tax-component.component.ts
+++ b/src/app/products/manage-tax-components/edit-tax-component/edit-tax-component.component.ts
@@ -20,6 +20,8 @@ export class EditTaxComponentComponent implements OnInit {
/** Minimum date allowed. */
minDate = new Date(2000, 0, 1);
+ /** Maximum start date allowed. */
+ maxDate = new Date();
/** Tax Component form. */
taxComponentForm: FormGroup;
/** Tax Component data. */
@@ -49,6 +51,8 @@ export class EditTaxComponentComponent implements OnInit {
* Creates the edit tax component form.
*/
ngOnInit() {
+ this.minDate = this.settingsService.minAllowedDate;
+ this.maxDate = this.settingsService.maxAllowedDate;
this.editTaxComponent();
}
diff --git a/src/app/products/manage-tax-components/view-tax-component/view-tax-component.component.html b/src/app/products/manage-tax-components/view-tax-component/view-tax-component.component.html
index af1b5fbc0..df71cc8eb 100644
--- a/src/app/products/manage-tax-components/view-tax-component/view-tax-component.component.html
+++ b/src/app/products/manage-tax-components/view-tax-component/view-tax-component.component.html
@@ -26,7 +26,7 @@
- {{ taxComponentData.percentage }}
+ {{ taxComponentData.percentage | number }} %
@@ -73,6 +73,9 @@
+
+
+
diff --git a/src/app/settings/settings.service.ts b/src/app/settings/settings.service.ts
index 0238c1322..1223787ed 100644
--- a/src/app/settings/settings.service.ts
+++ b/src/app/settings/settings.service.ts
@@ -18,6 +18,7 @@ export class SettingsService {
public static businessDateConfigName = 'enable_business_date';
public static businessDateType = 'BUSINESS_DATE';
public static cobDateType = 'COB_DATE';
+ minAllowedDate = new Date(1950, 0, 1);
maxAllowedDate = new Date(2100, 0, 1);
constructor(private alertService: AlertService,
@@ -150,6 +151,13 @@ export class SettingsService {
return localStorage.getItem('mifosXServerBusinessDateEnabled');
}
+ /**
+ * Returns min Past date
+ */
+ get minPastDate(): Date {
+ return this.minAllowedDate;
+ }
+
/**
* Returns max Future date
*/
diff --git a/src/app/system/manage-data-tables/app-table-data.ts b/src/app/system/manage-data-tables/app-table-data.ts
index de64e433a..a69839779 100644
--- a/src/app/system/manage-data-tables/app-table-data.ts
+++ b/src/app/system/manage-data-tables/app-table-data.ts
@@ -1,12 +1,13 @@
export const appTableData: { displayValue: string, value: string }[] = [
{ displayValue: 'Client', value: 'm_client' },
{ displayValue: 'Group', value: 'm_group' },
- { displayValue: 'Loan', value: 'm_loan' },
{ displayValue: 'Center', value: 'm_center' },
{ displayValue: 'Office', value: 'm_office' },
+ { displayValue: 'Loan Account', value: 'm_loan' },
{ displayValue: 'Saving Account', value: 'm_savings_account' },
- { displayValue: 'Product Loan', value: 'm_product_loan' },
- { displayValue: 'Savings Product', value: 'm_savings_product' }
+ { displayValue: 'Loan Product', value: 'm_product_loan' },
+ { displayValue: 'Savings Product', value: 'm_savings_product' },
+ { displayValue: 'Share Product', value: 'm_share_product' }
];
export const entitySubTypeData: { displayValue: string, value: string }[] = [
diff --git a/src/assets/styles/_align.scss b/src/assets/styles/_align.scss
index 2d1b30b8c..13f386ba8 100644
--- a/src/assets/styles/_align.scss
+++ b/src/assets/styles/_align.scss
@@ -19,7 +19,7 @@
.r-amount {
text-align: right !important;
- padding-right: 5px;
+ padding-right: 5px !important;
}
.right {
@@ -31,9 +31,9 @@
}
.amount-plus {
- color: #000000;
+ color: $black;
}
.amount-minus {
- color: #0f36e4;
+ color: $status-approved;
}
diff --git a/src/assets/styles/_helper.scss b/src/assets/styles/_helper.scss
index f0f0abcc9..40d44922d 100644
--- a/src/assets/styles/_helper.scss
+++ b/src/assets/styles/_helper.scss
@@ -1,7 +1,7 @@
-@import "align";
@import "background";
@import "border";
@import "colours";
+@import "align";
@import "display";
@import "float";
@import "form";