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:
@@ -425,7 +425,7 @@ export class PreOrderService {
|
||||
}
|
||||
// const address = await this.addressCustomerService.getAddress(preOrder[0].customerId, preOrder[0].addressId);
|
||||
const billing = billinds.find(data => data.codcob === preOrder[0].billindId);
|
||||
const paymentPlans = await this.listsService.GetPaymentPlan((billing !== null && billing !== undefined) ? billing.codcob : '9999');
|
||||
const paymentPlans = await this.listsService.GetPaymentPlan((billing !== null && billing !== undefined) ? billing.codcob : '9999', preOrder[0].customerId);
|
||||
const paymentPlan = paymentPlans.find(data => data.codplpag === preOrder[0].paymentPlanId);
|
||||
const partner = partners.find(data => data.id === preOrder[0].partnerId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user