fetch billing details
This commit is contained in:
@@ -31,6 +31,10 @@ class OrdersModel{
|
|||||||
'o.idCustomerInstance' => 'idCustomerInstance',
|
'o.idCustomerInstance' => 'idCustomerInstance',
|
||||||
'rclc.IdCustomer' => 'idCustomer',
|
'rclc.IdCustomer' => 'idCustomer',
|
||||||
'cust.name' => 'customer',
|
'cust.name' => 'customer',
|
||||||
|
'o.billingFirstName' => 'billingFirstName',
|
||||||
|
'o.billingLastName' => 'billingLastName',
|
||||||
|
'o.billingMail' => 'billingMail',
|
||||||
|
'o.billingAddress' => 'billingAddress',
|
||||||
'rclc.idCommercialLead' => 'idCommercialLead',
|
'rclc.idCommercialLead' => 'idCommercialLead',
|
||||||
'cl.name' => 'commercialLead',
|
'cl.name' => 'commercialLead',
|
||||||
'IFNULL(b.name, \'\')' => 'assignedTo',
|
'IFNULL(b.name, \'\')' => 'assignedTo',
|
||||||
@@ -55,6 +59,10 @@ class OrdersModel{
|
|||||||
'rclc.idCommercialLead' => 'idCommercialLead',
|
'rclc.idCommercialLead' => 'idCommercialLead',
|
||||||
'cl.name' => 'commercialLead',
|
'cl.name' => 'commercialLead',
|
||||||
'o.orderDate' => 'orderDate',
|
'o.orderDate' => 'orderDate',
|
||||||
|
'o.billingFirstName' => 'billingFirstName',
|
||||||
|
'o.billingLastName' => 'billingLastName',
|
||||||
|
'o.billingMail' => 'billingMail',
|
||||||
|
'o.billingAddress' => 'billingAddress',
|
||||||
'o.estimatedDeliveryDate' => 'estimatedDeliveryDate',
|
'o.estimatedDeliveryDate' => 'estimatedDeliveryDate',
|
||||||
'\'\'' => 'orderItems',
|
'\'\'' => 'orderItems',
|
||||||
'SUM(rop.packageFixedPrice)' => 'orderTotalPrice',
|
'SUM(rop.packageFixedPrice)' => 'orderTotalPrice',
|
||||||
@@ -75,6 +83,10 @@ class OrdersModel{
|
|||||||
'o.idCustomerInstance' => 'idCustomerInstance',
|
'o.idCustomerInstance' => 'idCustomerInstance',
|
||||||
'rclc.IdCustomer' => 'idCustomer',
|
'rclc.IdCustomer' => 'idCustomer',
|
||||||
'cust.name' => 'customer',
|
'cust.name' => 'customer',
|
||||||
|
'o.billingFirstName' => 'billingFirstName',
|
||||||
|
'o.billingLastName' => 'billingLastName',
|
||||||
|
'o.billingMail' => 'billingMail',
|
||||||
|
'o.billingAddress' => 'billingAddress',
|
||||||
'o.orderDate' => 'orderDate',
|
'o.orderDate' => 'orderDate',
|
||||||
'o.estimatedDeliveryDate' => 'estimatedDeliveryDate',
|
'o.estimatedDeliveryDate' => 'estimatedDeliveryDate',
|
||||||
'\'\'' => 'orderItems',
|
'\'\'' => 'orderItems',
|
||||||
@@ -225,6 +237,10 @@ class OrdersModel{
|
|||||||
'o.idCustomerInstance' => 'idCustomerInstance',
|
'o.idCustomerInstance' => 'idCustomerInstance',
|
||||||
'rclc.IdCustomer' => 'idCustomer',
|
'rclc.IdCustomer' => 'idCustomer',
|
||||||
'cust.name' => 'customer',
|
'cust.name' => 'customer',
|
||||||
|
'o.billingFirstName' => 'billingFirstName',
|
||||||
|
'o.billingLastName' => 'billingLastName',
|
||||||
|
'o.billingMail' => 'billingMail',
|
||||||
|
'o.billingAddress' => 'billingAddress',
|
||||||
'rclc.idCommercialLead' => 'idCommercialLead',
|
'rclc.idCommercialLead' => 'idCommercialLead',
|
||||||
'cl.name' => 'commercialLead',
|
'cl.name' => 'commercialLead',
|
||||||
'o.orderDate' => 'orderDate',
|
'o.orderDate' => 'orderDate',
|
||||||
@@ -250,6 +266,10 @@ class OrdersModel{
|
|||||||
'rclc.idCommercialLead' => 'idCommercialLead',
|
'rclc.idCommercialLead' => 'idCommercialLead',
|
||||||
'cl.name' => 'commercialLead',
|
'cl.name' => 'commercialLead',
|
||||||
'o.orderDate' => 'orderDate',
|
'o.orderDate' => 'orderDate',
|
||||||
|
'o.billingFirstName' => 'billingFirstName',
|
||||||
|
'o.billingLastName' => 'billingLastName',
|
||||||
|
'o.billingMail' => 'billingMail',
|
||||||
|
'o.billingAddress' => 'billingAddress',
|
||||||
'o.estimatedDeliveryDate' => 'estimatedDeliveryDate',
|
'o.estimatedDeliveryDate' => 'estimatedDeliveryDate',
|
||||||
'o.deliveryDate' => 'deliveryDate',
|
'o.deliveryDate' => 'deliveryDate',
|
||||||
'MAX(rop.endOfLife)' => 'endOfLife',
|
'MAX(rop.endOfLife)' => 'endOfLife',
|
||||||
@@ -272,6 +292,10 @@ class OrdersModel{
|
|||||||
'o.idCustomerInstance' => 'idCustomerInstance',
|
'o.idCustomerInstance' => 'idCustomerInstance',
|
||||||
'rclc.IdCustomer' => 'idCustomer',
|
'rclc.IdCustomer' => 'idCustomer',
|
||||||
'cust.name' => 'customer',
|
'cust.name' => 'customer',
|
||||||
|
'o.billingFirstName' => 'billingFirstName',
|
||||||
|
'o.billingLastName' => 'billingLastName',
|
||||||
|
'o.billingMail' => 'billingMail',
|
||||||
|
'o.billingAddress' => 'billingAddress',
|
||||||
'o.orderDate' => 'orderDate',
|
'o.orderDate' => 'orderDate',
|
||||||
'o.estimatedDeliveryDate' => 'estimatedDeliveryDate',
|
'o.estimatedDeliveryDate' => 'estimatedDeliveryDate',
|
||||||
'o.deliveryDate' => 'deliveryDate',
|
'o.deliveryDate' => 'deliveryDate',
|
||||||
|
|||||||
@@ -115,6 +115,10 @@ class OrdersModel{
|
|||||||
'o.idCustomerInstance' => 'idCustomerInstance',
|
'o.idCustomerInstance' => 'idCustomerInstance',
|
||||||
'rclc.IdCustomer' => 'idCustomer',
|
'rclc.IdCustomer' => 'idCustomer',
|
||||||
'cust.name' => 'customer',
|
'cust.name' => 'customer',
|
||||||
|
'o.billingFirstName' => 'billingFirstName',
|
||||||
|
'o.billingLastName' => 'billingLastName',
|
||||||
|
'o.billingMail' => 'billingMail',
|
||||||
|
'o.billingAddress' => 'billingAddress',
|
||||||
'rclc.idCommercialLead' => 'idCommercialLead',
|
'rclc.idCommercialLead' => 'idCommercialLead',
|
||||||
'cl.name' => 'commercialLead',
|
'cl.name' => 'commercialLead',
|
||||||
'IFNULL(b.name, \'\')' => 'assignedTo',
|
'IFNULL(b.name, \'\')' => 'assignedTo',
|
||||||
@@ -139,6 +143,10 @@ class OrdersModel{
|
|||||||
'rclc.idCommercialLead' => 'idCommercialLead',
|
'rclc.idCommercialLead' => 'idCommercialLead',
|
||||||
'uc.id' => 'idCustomerUser',
|
'uc.id' => 'idCustomerUser',
|
||||||
'cust.name' => 'customerName',
|
'cust.name' => 'customerName',
|
||||||
|
'o.billingFirstName' => 'billingFirstName',
|
||||||
|
'o.billingLastName' => 'billingLastName',
|
||||||
|
'o.billingMail' => 'billingMail',
|
||||||
|
'o.billingAddress' => 'billingAddress',
|
||||||
'cust.phone' => 'phone',
|
'cust.phone' => 'phone',
|
||||||
'uc.mail' => 'mail',
|
'uc.mail' => 'mail',
|
||||||
'cl.contactName' => 'clContactName',
|
'cl.contactName' => 'clContactName',
|
||||||
@@ -164,6 +172,10 @@ class OrdersModel{
|
|||||||
'o.idCustomerInstance' => 'idCustomerInstance',
|
'o.idCustomerInstance' => 'idCustomerInstance',
|
||||||
'rclc.IdCustomer' => 'idCustomer',
|
'rclc.IdCustomer' => 'idCustomer',
|
||||||
'cust.name' => 'customer',
|
'cust.name' => 'customer',
|
||||||
|
'o.billingFirstName' => 'billingFirstName',
|
||||||
|
'o.billingLastName' => 'billingLastName',
|
||||||
|
'o.billingMail' => 'billingMail',
|
||||||
|
'o.billingAddress' => 'billingAddress',
|
||||||
'o.orderDate' => 'orderDate',
|
'o.orderDate' => 'orderDate',
|
||||||
'o.estimatedDeliveryDate' => 'estimatedDeliveryDate',
|
'o.estimatedDeliveryDate' => 'estimatedDeliveryDate',
|
||||||
'\'\'' => 'orderItems',
|
'\'\'' => 'orderItems',
|
||||||
@@ -318,6 +330,10 @@ class OrdersModel{
|
|||||||
'o.idCustomerInstance' => 'idCustomerInstance',
|
'o.idCustomerInstance' => 'idCustomerInstance',
|
||||||
'rclc.IdCustomer' => 'idCustomer',
|
'rclc.IdCustomer' => 'idCustomer',
|
||||||
'cust.name' => 'customer',
|
'cust.name' => 'customer',
|
||||||
|
'o.billingFirstName' => 'billingFirstName',
|
||||||
|
'o.billingLastName' => 'billingLastName',
|
||||||
|
'o.billingMail' => 'billingMail',
|
||||||
|
'o.billingAddress' => 'billingAddress',
|
||||||
'rclc.idCommercialLead' => 'idCommercialLead',
|
'rclc.idCommercialLead' => 'idCommercialLead',
|
||||||
'cl.name' => 'commercialLead',
|
'cl.name' => 'commercialLead',
|
||||||
'o.orderDate' => 'orderDate',
|
'o.orderDate' => 'orderDate',
|
||||||
@@ -344,6 +360,10 @@ class OrdersModel{
|
|||||||
'rclc.idCommercialLead' => 'idCommercialLead',
|
'rclc.idCommercialLead' => 'idCommercialLead',
|
||||||
'uc.id' => 'idCustomerUser',
|
'uc.id' => 'idCustomerUser',
|
||||||
'cust.name' => 'customerName',
|
'cust.name' => 'customerName',
|
||||||
|
'o.billingFirstName' => 'billingFirstName',
|
||||||
|
'o.billingLastName' => 'billingLastName',
|
||||||
|
'o.billingMail' => 'billingMail',
|
||||||
|
'o.billingAddress' => 'billingAddress',
|
||||||
'cust.phone' => 'phone',
|
'cust.phone' => 'phone',
|
||||||
'uc.mail' => 'mail',
|
'uc.mail' => 'mail',
|
||||||
'cl.name' => 'clName',
|
'cl.name' => 'clName',
|
||||||
@@ -371,6 +391,10 @@ class OrdersModel{
|
|||||||
'o.idCustomerInstance' => 'idCustomerInstance',
|
'o.idCustomerInstance' => 'idCustomerInstance',
|
||||||
'rclc.IdCustomer' => 'idCustomer',
|
'rclc.IdCustomer' => 'idCustomer',
|
||||||
'cust.name' => 'customer',
|
'cust.name' => 'customer',
|
||||||
|
'o.billingFirstName' => 'billingFirstName',
|
||||||
|
'o.billingLastName' => 'billingLastName',
|
||||||
|
'o.billingMail' => 'billingMail',
|
||||||
|
'o.billingAddress' => 'billingAddress',
|
||||||
'o.orderDate' => 'orderDate',
|
'o.orderDate' => 'orderDate',
|
||||||
'o.estimatedDeliveryDate' => 'estimatedDeliveryDate',
|
'o.estimatedDeliveryDate' => 'estimatedDeliveryDate',
|
||||||
'o.deliveryDate' => 'deliveryDate',
|
'o.deliveryDate' => 'deliveryDate',
|
||||||
@@ -761,6 +785,10 @@ class OrdersModel{
|
|||||||
o.orderNumber,
|
o.orderNumber,
|
||||||
DATE_FORMAT(o.orderDate, '%D %b, %y') as orderDate,
|
DATE_FORMAT(o.orderDate, '%D %b, %y') as orderDate,
|
||||||
o.estimatedDeliveryDate,
|
o.estimatedDeliveryDate,
|
||||||
|
o.billingFirstName,
|
||||||
|
o.billingLastName,
|
||||||
|
o.billingMail,
|
||||||
|
o.billingAddress,
|
||||||
o.status,
|
o.status,
|
||||||
o.reference,
|
o.reference,
|
||||||
o.tender,
|
o.tender,
|
||||||
|
|||||||
Reference in New Issue
Block a user