All Reports done!!

This commit is contained in:
2020-06-17 09:57:41 +05:30
parent 938bb67e0a
commit 7b6c09cea3
19 changed files with 401 additions and 342 deletions

View File

@ -9,7 +9,7 @@ const httpOptions = {
headers: new HttpHeaders({'Content-Type': 'application/json'})
};
const url = '/v1/beer-consumption-report';
const url = '/api/beer-consumption-report';
const serviceName = 'BeerConsumptionReportService';
@Injectable({

View File

@ -9,7 +9,7 @@ const httpOptions = {
headers: new HttpHeaders({'Content-Type': 'application/json'})
};
const url = '/v1/bill-settlement-report';
const url = '/api/bill-settlement-report';
const serviceName = 'BillSettlementReportService';
@Injectable({

View File

@ -10,8 +10,7 @@ const httpOptions = {
headers: new HttpHeaders({'Content-Type': 'application/json'})
};
const url = '/v1/cashier-report';
const urlActiveCashiers = '/v1/active-cashiers';
const url = '/api/cashier-report';
const serviceName = 'CashierReportService';
@Injectable({
@ -45,7 +44,7 @@ export class CashierReportService {
if (finishDate !== null) {
options.params = options.params.set('f', finishDate);
}
return <Observable<User[]>>this.http.get<User[]>(urlActiveCashiers, options)
return <Observable<User[]>>this.http.get<User[]>(`${url}/active`, options)
.pipe(
catchError(this.log.handleError(serviceName, 'activeCashiers'))

View File

@ -9,7 +9,7 @@ const httpOptions = {
headers: new HttpHeaders({'Content-Type': 'application/json'})
};
const url = '/v1/discount-report';
const url = '/api/discount-report';
const serviceName = 'DiscountReportService';
@Injectable({

View File

@ -9,7 +9,7 @@ const httpOptions = {
headers: new HttpHeaders({'Content-Type': 'application/json'})
};
const url = '/v1/product-sale-report';
const url = '/api/product-sale-report';
const serviceName = 'ProductSaleReportService';
@Injectable({

View File

@ -9,7 +9,7 @@ const httpOptions = {
headers: new HttpHeaders({'Content-Type': 'application/json'})
};
const url = '/v1/sale-report';
const url = '/api/sale-report';
const serviceName = 'SaleReportService';
@Injectable({

View File

@ -9,7 +9,7 @@ const httpOptions = {
headers: new HttpHeaders({'Content-Type': 'application/json'})
};
const url = '/v1/tax-report';
const url = '/api/tax-report';
const serviceName = 'TaxReportService';
@Injectable({