feat: add cart sales component and lookup service for managing sales orders. Add parameter customerId find payment plans.
This commit is contained in:
@@ -25,7 +25,7 @@ export class LookupService {
|
||||
constructor(
|
||||
private http: HttpClient,
|
||||
private authService: AuthService,
|
||||
) { }
|
||||
) { }
|
||||
|
||||
getStore(): Observable<StoreERP[]> {
|
||||
const url = environment.url + `lists/store/user/${this.authService.getUser()}`;
|
||||
@@ -60,8 +60,8 @@ export class LookupService {
|
||||
}
|
||||
}
|
||||
|
||||
getPaymentPlan(billingId: string = '9999'): Observable<PaymentPlan[]> {
|
||||
const url = environment.url + `lists/paymentplan/${billingId}`;
|
||||
getPaymentPlan(billingId: string = '9999', customerId: number = 1): Observable<PaymentPlan[]> {
|
||||
const url = environment.url + `lists/paymentplan/${billingId}/${customerId}`;
|
||||
try {
|
||||
const response = this.http.get<PaymentPlan[]>(url);
|
||||
return response;
|
||||
|
||||
Reference in New Issue
Block a user