All Reports done!!
This commit is contained in:
@ -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({
|
||||
|
||||
@ -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({
|
||||
|
||||
@ -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'))
|
||||
|
||||
@ -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({
|
||||
|
||||
@ -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({
|
||||
|
||||
@ -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({
|
||||
|
||||
@ -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({
|
||||
|
||||
Reference in New Issue
Block a user