feat: Add backoffice list controller and service for various data lookups and new sales customer, order, and pre-order services. Add parameter customerId para find payment plans
This commit is contained in:
@@ -954,7 +954,7 @@ export class OrderService {
|
||||
const partners = await this.listsService.GetPartners();
|
||||
const address = await this.addressCustomerService.getAddress(order[0].customerId, order[0].addressId);
|
||||
const billing = billinds.find(data => data.codcob === order[0].billindId);
|
||||
const paymentPlans = await this.listsService.GetPaymentPlan(billing.codcob);
|
||||
const paymentPlans = await this.listsService.GetPaymentPlan(billing.codcob, order[0].customerId);
|
||||
const paymentPlan = paymentPlans.find(data => data.codplpag === order[0].paymentPlanId);
|
||||
const partner = partners.find(data => data.id === order[0].partnerId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user