Skip to content
Permalink
Browse files
fix service
  • Loading branch information
pembemiriam committed Jun 19, 2018
1 parent 3421284 commit fa0f6ee3dbb2df67efadae0be88e2512b05a3146
Showing 43 changed files with 83 additions and 83 deletions.
@@ -71,21 +71,21 @@ import { AccountPayableComponent } from './accounting/account-payable/account-pa
import { AddChequeComponent } from './accounting/add-cheque/add-cheque.component';
import { AddPayrollComponent } from './accounting/add-payroll/add-payroll.component';

import {HttpClient} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/http/http.service';
import {IdentityService} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/identity/identity.service';
import {OfficeService} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/office/office.service';
import {CustomerService} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/customer/customer.service';
import {AuthenticationService} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/security/authn/authentication.service';
import {CatalogService} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/catalog/catalog.service';
import {AccountingService} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/accounting/accounting.service';
import {PortfolioService} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/portfolio/portfolio.service';
import {HttpClient} from '../../../sevices/http/http.service';
import {IdentityService} from '../../../sevices/identity/identity.service';
import {OfficeService} from '../../../sevices/office/office.service';
import {CustomerService} from '../../../sevices/customer/customer.service';
import {AuthenticationService} from '../../../sevices/security/authn/authentication.service';
import {CatalogService} from '../../../sevices/catalog/catalog.service';
import {AccountingService} from '../../../sevices/accounting/accounting.service';
import {PortfolioService} from '../../../sevices/portfolio/portfolio.service';
import {TranslateLoader, TranslateService} from '@ngx-translate/core';
import {TranslateHttpLoader} from '@ngx-translate/http-loader';
import {PermittableGroupIdMapper} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/security/authz/permittable-group-id-mapper';
import {PermittableGroupIdMapper} from '../../../sevices/security/authz/permittable-group-id-mapper';
import {reducer} from './store';
import {StoreModule} from '@ngrx/store';
import {EffectsModule} from '@ngrx/effects';
import {NotificationService} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/notification/notification.service';
import {NotificationService} from '../../../sevices/notification/notification.service';
import {OfficeSearchApiEffects} from './store/office/effects/service.effects';
import {EmployeeSearchApiEffects} from './store/employee/effects/service.effects';
import {RoleSearchApiEffects} from './store/role/effects/service.effects';
@@ -96,15 +96,15 @@ import {SecurityApiEffects} from './store/security/effects/service.effects';
import {SecurityNotificationEffects} from './store/security/effects/notification.effects';
import {LedgerSearchApiEffects} from './store/ledger/effects/service.effects';
//import {ExistsGuardService} from './common/guards/exists-guard';
import {CountryService} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/country/country.service';
import {ImageService} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/image/image.service';
import {DepositAccountService} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/depositAccount/deposit-account.service';
import {CurrencyService} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/currency/currency.service';
import {TellerService} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/teller/teller-service';
import {ReportingService} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/reporting/reporting.service';
import {CountryService} from '../../../sevices/country/country.service';
import {ImageService} from '../../../sevices/image/image.service';
import {DepositAccountService} from '../../../sevices/depositAccount/deposit-account.service';
import {CurrencyService} from '../../../sevices/currency/currency.service';
import {TellerService} from '../../../sevices/teller/teller-service';
import {ReportingService} from '../../../sevices/reporting/reporting.service';
import {getSelectedLanguage} from './common/i18n/translate';
import {ChequeService} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/cheque/cheque.service';
import {PayrollService} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/payroll/payroll.service';
import {ChequeService} from '../../../sevices/cheque/cheque.service';
import {PayrollService} from '../../../sevices/payroll/payroll.service';

export function HttpLoaderFactory(http: Http) {
return new TranslateHttpLoader(http, './assets/i18n/', '.json');
@@ -17,8 +17,8 @@
* under the License.
*/
import {Component, EventEmitter, Input, Output} from '@angular/core';
import {Sort} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/domain/paging/sort.model';
import {Page} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/domain/paging/page.model';
import {Sort} from '../../../sevices/domain/paging/sort.model';
import {Page} from '../../../sevices/domain/paging/page.model';
import {IPageChangeEvent, ITdDataTableColumn, ITdDataTableSortChangeEvent, TdDataTableSortingOrder} from '@covalent/core';
import {TranslateService} from '@ngx-translate/core';

@@ -17,7 +17,7 @@
* under the License.
*/
import {createFormReducer, FormState} from './form.reducer';
import {Error} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/domain/error.model';
import {Error} from '../../../sevices/domain/error.model';
import {Action} from '@ngrx/store';

class CreateSuccessAction implements Action {
@@ -17,7 +17,7 @@
* under the License.
*/
import {Action, ActionReducer} from '@ngrx/store';
import {Error} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/domain/error.model';
import {Error} from '../../../sevices/domain/error.model';

export interface FormState {
error?: Error;
@@ -17,7 +17,7 @@
* under the License.
*/
import {Action, ActionReducer} from '@ngrx/store';
import {FetchRequest} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/domain/paging/fetch-request.model';
import {FetchRequest} from '../../../sevices/domain/paging/fetch-request.model';
import {createSelector} from 'reselect';

export function emptySearchResult(): SearchResult {
@@ -17,7 +17,7 @@
* under the License.
*/
import {Directive, Input} from '@angular/core';
import {FimsPermission} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/security/authz/fims-permission.model';
import {FimsPermission} from '../../../sevices/security/authz/fims-permission.model';

@Directive({
// tslint:disable-next-line:directive-selector
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import {AccountAssignment} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/portfolio/domain/account-assignment.model';
import {AccountAssignment} from '../../../sevices/portfolio/domain/account-assignment.model';

export function findAccountDesignator(accountAssignments: AccountAssignment[], designator: string): AccountAssignment {
return accountAssignments.find(assignment => assignment.designator === designator);
@@ -21,7 +21,7 @@ import {Actions, Effect} from '@ngrx/effects';
import {Observable} from 'rxjs/Observable';
import {Action} from '@ngrx/store';
import * as officeActions from '../office.actions';
import {NotificationService, NotificationType} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/notification/notification.service';
import {NotificationService, NotificationType} from '../../../sevices/notification/notification.service';

@Injectable()
export class OfficeNotificationEffects {
@@ -17,7 +17,7 @@
* under the License.
*/
import {Injectable} from '@angular/core';
import {OfficeService} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/office/office.service';
import {OfficeService} from '../../../sevices/office/office.service';
import {Actions, Effect} from '@ngrx/effects';
import {Observable} from 'rxjs/Observable';
import {Action} from '@ngrx/store';
@@ -18,8 +18,8 @@
*/
import {Action} from '@ngrx/store';
import {type} from '../../store/util';
import {Office} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/office/domain/office.model';
import {Error} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/domain/error.model';
import {Office} from '../../../sevices/office/domain/office.model';
import {Error} from '../../../sevices/domain/error.model';
import {RoutePayload} from '../../common/store/route-payload';
import {
CreateResourceSuccessPayload,
@@ -17,7 +17,7 @@
* under the License.
*/
import {type} from '../../../../store/util';
import {TellerDenomination} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/teller/domain/teller-denomination.model';
import {TellerDenomination} from '../../../sevices/teller/domain/teller-denomination.model';
import {RoutePayload} from '../../../../common/store/route-payload';
import {Action} from '@ngrx/store';

@@ -18,7 +18,7 @@
*/
import * as denominations from './denomination.actions';
import {DenominationPayload} from './denomination.actions';
import {TellerDenomination} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/teller/domain/teller-denomination.model';
import {TellerDenomination} from '../../../sevices/teller/domain/teller-denomination.model';

export interface State {
entities: TellerDenomination[];
@@ -21,7 +21,7 @@ import {Actions, Effect} from '@ngrx/effects';
import {Observable} from 'rxjs/Observable';
import {Action} from '@ngrx/store';
import * as denominationActions from '../denomination.actions';
import {NotificationService, NotificationType} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/notification/notification.service';
import {NotificationService, NotificationType} from '../../../sevices/notification/notification.service';

@Injectable()
export class TellerDenominationNotificationEffects {
@@ -22,7 +22,7 @@ import {Observable} from 'rxjs/Observable';
import {Action} from '@ngrx/store';
import * as denominationActions from '../denomination.actions';
import {of} from 'rxjs/observable/of';
import {TellerService} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/teller/teller-service';
import {TellerService} from '../../../sevices/teller/teller-service';

@Injectable()
export class TellerDenominationApiEffects {
@@ -18,7 +18,7 @@
*/
import {Injectable} from '@angular/core';
import {Actions, Effect} from '@ngrx/effects';
import {NotificationService, NotificationType} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/notification/notification.service';
import {NotificationService, NotificationType} from '../../../sevices/notification/notification.service';
import {Observable} from 'rxjs/Observable';
import {Action} from '@ngrx/store';
import * as tellerActions from '../teller.actions';
@@ -17,7 +17,7 @@
* under the License.
*/

import {TellerService} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/teller/teller-service';
import {TellerService} from '../../../sevices/teller/teller-service';
import {Injectable} from '@angular/core';
import {Actions, Effect} from '@ngrx/effects';
import {Observable} from 'rxjs/Observable';
@@ -18,7 +18,7 @@
*/

import {type} from '../../../store/util';
import {Teller} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/teller/domain/teller.model';
import {Teller} from '../../../sevices/teller/domain/teller.model';
import {Action} from '@ngrx/store';
import {
CreateResourceSuccessPayload,
@@ -27,7 +27,7 @@ import {
UpdateResourceSuccessPayload
} from '../../../common/store/resource.reducer';
import {RoutePayload} from '../../../common/store/route-payload';
import {TellerManagementCommand} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/teller/domain/teller-management-command.model';
import {TellerManagementCommand} from '../../../sevices/teller/domain/teller-management-command.model';

export const LOAD_TELLER = type('[Office Teller] Load All ');
export const LOAD_TELLER_SUCCESS = type('[Office Teller] Load All Success');
@@ -19,7 +19,7 @@
import {reducer} from './tellers.reducer';
import {ResourceState} from '../../../common/store/resource.reducer';
import {ExecuteCommandPayload, ExecuteCommandSuccessAction} from './teller.actions';
import {Status} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/teller/domain/teller.model';
import {Status} from '../../../sevices/teller/domain/teller.model';

describe('Tellers Reducer', () => {

@@ -18,9 +18,9 @@
*/
import {ResourceState} from '../../../common/store/resource.reducer';
import * as tellers from '../teller/teller.actions';
import {Status, Teller} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/teller/domain/teller.model';
import {Status, Teller} from '../../../sevices/teller/domain/teller.model';
import {idsToHashWithCurrentTimestamp, resourcesToHash} from '../../../common/store/reducer.helper';
import {TellerManagementCommand} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/teller/domain/teller-management-command.model';
import {TellerManagementCommand} from '../../../sevices/teller/domain/teller-management-command.model';

export const initialState: ResourceState = {
ids: [],
@@ -18,7 +18,7 @@
*/
import {Action} from '@ngrx/store';
import {type} from '../util';
import {FetchRequest} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/domain/paging/fetch-request.model';
import {FetchRequest} from '../../sevices/domain/paging/fetch-request.model';
import {SearchResult} from '../../common/store/search.reducer';

export const SEARCH = type('[Account] Search');
@@ -19,8 +19,8 @@
import {fakeAsync, TestBed, tick} from '@angular/core/testing';
import {EffectsRunner, EffectsTestingModule} from '@ngrx/effects/testing';
import {AccountSearchApiEffects} from './service.effects';
import {AccountingService} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/accounting/accounting.service';
import {AccountPage} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/accounting/domain/account-page.model';
import {AccountingService} from '../../../sevices/accounting/accounting.service';
import {AccountPage} from '../../../sevices/accounting/domain/account-page.model';
import {SearchAction, SearchByLedgerAction, SearchCompleteAction} from '../account.actions';
import {Observable} from 'rxjs/Observable';
import {emptySearchResult} from '../../../common/store/search.reducer';
@@ -22,9 +22,9 @@ import {Observable} from 'rxjs/Observable';
import {Action} from '@ngrx/store';
import {of} from 'rxjs/observable/of';
import * as accountActions from '../account.actions';
import {AccountingService} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/accounting/accounting.service';
import {AccountingService} from '../../../sevices/accounting/accounting.service';
import {emptySearchResult, SearchResult} from '../../../common/store/search.reducer';
import {AccountPage} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/accounting/domain/account-page.model';
import {AccountPage} from '../../../sevices/accounting/domain/account-page.model';

@Injectable()
export class AccountSearchApiEffects {
@@ -19,7 +19,7 @@

import {Action} from '@ngrx/store';
import {type} from '../util';
import {FetchRequest} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/domain/paging/fetch-request.model';
import {FetchRequest} from '../../sevices/domain/paging/fetch-request.model';
import {SearchResult} from '../../common/store/search.reducer';

export const SEARCH = type('[Customer] Search');
@@ -21,9 +21,9 @@ import {fakeAsync, TestBed, tick} from '@angular/core/testing';
import {EffectsRunner, EffectsTestingModule} from '@ngrx/effects/testing';
import {CustomerSearchApiEffects} from './service.effects';
import {Observable} from 'rxjs/Observable';
import {CustomerService} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/customer/customer.service';
import {CustomerService} from '../../../sevices/customer/customer.service';
import {SearchAction, SearchCompleteAction} from '../customer.actions';
import {CustomerPage} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/customer/domain/customer-page.model';
import {CustomerPage} from '../../../sevices/customer/domain/customer-page.model';
import {emptySearchResult} from '../../../common/store/search.reducer';

describe('Customer Search Api Effects', () => {
@@ -22,7 +22,7 @@ import {Observable} from 'rxjs/Observable';
import {Action} from '@ngrx/store';
import {of} from 'rxjs/observable/of';
import * as customerActions from '../customer.actions';
import {CustomerService} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/customer/customer.service';
import {CustomerService} from '../../../sevices/customer/customer.service';
import {emptySearchResult} from '../../../common/store/search.reducer';

@Injectable()
@@ -20,9 +20,9 @@ import {fakeAsync, TestBed, tick} from '@angular/core/testing';
import {EffectsRunner, EffectsTestingModule} from '@ngrx/effects/testing';
import {EmployeeSearchApiEffects} from './service.effects';
import {Observable} from 'rxjs/Observable';
import {OfficeService} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/office/office.service';
import {OfficeService} from '../../../sevices/office/office.service';
import {SearchAction, SearchCompleteAction} from '../employee.actions';
import {EmployeePage} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/office/domain/employee-page.model';
import {EmployeePage} from '../../../sevices/office/domain/employee-page.model';
import {emptySearchResult} from '../../../common/store/search.reducer';

describe('Employee Search Api Effects', () => {
@@ -17,7 +17,7 @@
* under the License.
*/
import {Injectable} from '@angular/core';
import {OfficeService} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/office/office.service';
import {OfficeService} from '../../../sevices/office/office.service';
import {Actions, Effect} from '@ngrx/effects';
import {Observable} from 'rxjs/Observable';
import {Action} from '@ngrx/store';
@@ -18,7 +18,7 @@
*/
import {Action} from '@ngrx/store';
import {type} from '../util';
import {FetchRequest} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/domain/paging/fetch-request.model';
import {FetchRequest} from '../../sevices/domain/paging/fetch-request.model';
import {SearchResult} from '../../common/store/search.reducer';

export const SEARCH = type('[Employee] Search');
@@ -23,7 +23,7 @@ import {Observable} from 'rxjs/Observable';
import {Action} from '@ngrx/store';
import {of} from 'rxjs/observable/of';
import * as ledgerActions from '../ledger.actions';
import {AccountingService} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/accounting/accounting.service';
import {AccountingService} from '../../../sevices/accounting/accounting.service';
import {emptySearchResult} from '../../../common/store/search.reducer';

@Injectable()
@@ -19,7 +19,7 @@

import {type} from '../util';
import {Action} from '@ngrx/store';
import {FetchRequest} from '/home/pembe/Desktop/fineract-cn-web-app/src/app/sevices/domain/paging/fetch-request.model';
import {FetchRequest} from '../../sevices/domain/paging/fetch-request.model';
import {SearchResult} from '../../common/store/search.reducer';

export const SEARCH = type('[Ledger] Search');

0 comments on commit fa0f6ee

Please sign in to comment.