feat: add cart sales component and lookup service for managing sales orders. Add parameter customerId find payment plans.

This commit is contained in:
Luis Eduardo Estevao
2026-02-19 10:02:15 -03:00
parent f04f5f5215
commit 1cb849a299
2 changed files with 8 additions and 5 deletions

View File

@@ -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;