fetch billing details

This commit is contained in:
GotPPay
2018-07-09 20:14:00 +02:00
parent a82d13ba1f
commit 31dc7639af
2 changed files with 52 additions and 0 deletions

View File

@@ -31,6 +31,10 @@ class OrdersModel{
'o.idCustomerInstance' => 'idCustomerInstance',
'rclc.IdCustomer' => 'idCustomer',
'cust.name' => 'customer',
'o.billingFirstName' => 'billingFirstName',
'o.billingLastName' => 'billingLastName',
'o.billingMail' => 'billingMail',
'o.billingAddress' => 'billingAddress',
'rclc.idCommercialLead' => 'idCommercialLead',
'cl.name' => 'commercialLead',
'IFNULL(b.name, \'\')' => 'assignedTo',
@@ -55,6 +59,10 @@ class OrdersModel{
'rclc.idCommercialLead' => 'idCommercialLead',
'cl.name' => 'commercialLead',
'o.orderDate' => 'orderDate',
'o.billingFirstName' => 'billingFirstName',
'o.billingLastName' => 'billingLastName',
'o.billingMail' => 'billingMail',
'o.billingAddress' => 'billingAddress',
'o.estimatedDeliveryDate' => 'estimatedDeliveryDate',
'\'\'' => 'orderItems',
'SUM(rop.packageFixedPrice)' => 'orderTotalPrice',
@@ -75,6 +83,10 @@ class OrdersModel{
'o.idCustomerInstance' => 'idCustomerInstance',
'rclc.IdCustomer' => 'idCustomer',
'cust.name' => 'customer',
'o.billingFirstName' => 'billingFirstName',
'o.billingLastName' => 'billingLastName',
'o.billingMail' => 'billingMail',
'o.billingAddress' => 'billingAddress',
'o.orderDate' => 'orderDate',
'o.estimatedDeliveryDate' => 'estimatedDeliveryDate',
'\'\'' => 'orderItems',
@@ -225,6 +237,10 @@ class OrdersModel{
'o.idCustomerInstance' => 'idCustomerInstance',
'rclc.IdCustomer' => 'idCustomer',
'cust.name' => 'customer',
'o.billingFirstName' => 'billingFirstName',
'o.billingLastName' => 'billingLastName',
'o.billingMail' => 'billingMail',
'o.billingAddress' => 'billingAddress',
'rclc.idCommercialLead' => 'idCommercialLead',
'cl.name' => 'commercialLead',
'o.orderDate' => 'orderDate',
@@ -250,6 +266,10 @@ class OrdersModel{
'rclc.idCommercialLead' => 'idCommercialLead',
'cl.name' => 'commercialLead',
'o.orderDate' => 'orderDate',
'o.billingFirstName' => 'billingFirstName',
'o.billingLastName' => 'billingLastName',
'o.billingMail' => 'billingMail',
'o.billingAddress' => 'billingAddress',
'o.estimatedDeliveryDate' => 'estimatedDeliveryDate',
'o.deliveryDate' => 'deliveryDate',
'MAX(rop.endOfLife)' => 'endOfLife',
@@ -272,6 +292,10 @@ class OrdersModel{
'o.idCustomerInstance' => 'idCustomerInstance',
'rclc.IdCustomer' => 'idCustomer',
'cust.name' => 'customer',
'o.billingFirstName' => 'billingFirstName',
'o.billingLastName' => 'billingLastName',
'o.billingMail' => 'billingMail',
'o.billingAddress' => 'billingAddress',
'o.orderDate' => 'orderDate',
'o.estimatedDeliveryDate' => 'estimatedDeliveryDate',
'o.deliveryDate' => 'deliveryDate',

View File

@@ -115,6 +115,10 @@ class OrdersModel{
'o.idCustomerInstance' => 'idCustomerInstance',
'rclc.IdCustomer' => 'idCustomer',
'cust.name' => 'customer',
'o.billingFirstName' => 'billingFirstName',
'o.billingLastName' => 'billingLastName',
'o.billingMail' => 'billingMail',
'o.billingAddress' => 'billingAddress',
'rclc.idCommercialLead' => 'idCommercialLead',
'cl.name' => 'commercialLead',
'IFNULL(b.name, \'\')' => 'assignedTo',
@@ -139,6 +143,10 @@ class OrdersModel{
'rclc.idCommercialLead' => 'idCommercialLead',
'uc.id' => 'idCustomerUser',
'cust.name' => 'customerName',
'o.billingFirstName' => 'billingFirstName',
'o.billingLastName' => 'billingLastName',
'o.billingMail' => 'billingMail',
'o.billingAddress' => 'billingAddress',
'cust.phone' => 'phone',
'uc.mail' => 'mail',
'cl.contactName' => 'clContactName',
@@ -164,6 +172,10 @@ class OrdersModel{
'o.idCustomerInstance' => 'idCustomerInstance',
'rclc.IdCustomer' => 'idCustomer',
'cust.name' => 'customer',
'o.billingFirstName' => 'billingFirstName',
'o.billingLastName' => 'billingLastName',
'o.billingMail' => 'billingMail',
'o.billingAddress' => 'billingAddress',
'o.orderDate' => 'orderDate',
'o.estimatedDeliveryDate' => 'estimatedDeliveryDate',
'\'\'' => 'orderItems',
@@ -318,6 +330,10 @@ class OrdersModel{
'o.idCustomerInstance' => 'idCustomerInstance',
'rclc.IdCustomer' => 'idCustomer',
'cust.name' => 'customer',
'o.billingFirstName' => 'billingFirstName',
'o.billingLastName' => 'billingLastName',
'o.billingMail' => 'billingMail',
'o.billingAddress' => 'billingAddress',
'rclc.idCommercialLead' => 'idCommercialLead',
'cl.name' => 'commercialLead',
'o.orderDate' => 'orderDate',
@@ -344,6 +360,10 @@ class OrdersModel{
'rclc.idCommercialLead' => 'idCommercialLead',
'uc.id' => 'idCustomerUser',
'cust.name' => 'customerName',
'o.billingFirstName' => 'billingFirstName',
'o.billingLastName' => 'billingLastName',
'o.billingMail' => 'billingMail',
'o.billingAddress' => 'billingAddress',
'cust.phone' => 'phone',
'uc.mail' => 'mail',
'cl.name' => 'clName',
@@ -371,6 +391,10 @@ class OrdersModel{
'o.idCustomerInstance' => 'idCustomerInstance',
'rclc.IdCustomer' => 'idCustomer',
'cust.name' => 'customer',
'o.billingFirstName' => 'billingFirstName',
'o.billingLastName' => 'billingLastName',
'o.billingMail' => 'billingMail',
'o.billingAddress' => 'billingAddress',
'o.orderDate' => 'orderDate',
'o.estimatedDeliveryDate' => 'estimatedDeliveryDate',
'o.deliveryDate' => 'deliveryDate',
@@ -761,6 +785,10 @@ class OrdersModel{
o.orderNumber,
DATE_FORMAT(o.orderDate, '%D %b, %y') as orderDate,
o.estimatedDeliveryDate,
o.billingFirstName,
o.billingLastName,
o.billingMail,
o.billingAddress,
o.status,
o.reference,
o.tender,