add requested fields to the orders table

This commit is contained in:
GotPPay
2018-06-26 23:58:58 +02:00
parent 4319459909
commit 66e2b06fdd

View File

@@ -1207,6 +1207,9 @@
$concatenatedDeliveryAddress = $deliveryInfo['detailedAddress'].", ".$deliveryInfo['city'].", $countryName, ".$deliveryInfo['zipCode']; $concatenatedDeliveryAddress = $deliveryInfo['detailedAddress'].", ".$deliveryInfo['city'].", $countryName, ".$deliveryInfo['zipCode'];
$billingCountryDetails = $this->getCountryDetailsById($billingInfo['idCountrySelected'])[0]; $billingCountryDetails = $this->getCountryDetailsById($billingInfo['idCountrySelected'])[0];
$concatenatedBillingAddress = $billingInfo['detailedAddress'].", ".$billingInfo['city'].", ".$billingCountryDetails['countryName'].", ".$billingInfo['zipCode']; $concatenatedBillingAddress = $billingInfo['detailedAddress'].", ".$billingInfo['city'].", ".$billingCountryDetails['countryName'].", ".$billingInfo['zipCode'];
$deliveryFirstName = $deliveryInfo['firstName'];
$deliveryLastName = $deliveryInfo['lastName'];
$deliveryMail = $deliveryInfo['deliveryMail'];
$billingFirstName = $billingInfo['firstName']; $billingFirstName = $billingInfo['firstName'];
$billingLastName = $billingInfo['lastName']; $billingLastName = $billingInfo['lastName'];
$billingMail = $billingInfo['invoiceMail']; $billingMail = $billingInfo['invoiceMail'];
@@ -1222,7 +1225,7 @@
$sql = " $sql = "
INSERT INTO ".TABLES['orders']." INSERT INTO ".TABLES['orders']."
(idCustomerInstance, orderNumber, orderDate, reference, tender, projectNumber, deliveryAddress, billingAddress, billingFirstName, billingLastName, billingMail, idTerms, idOrderType, idProject) (idCustomerInstance, orderNumber, orderDate, reference, tender, projectNumber, deliveryAddress, deliveryFirstName, deliveryLastName, deliveryMail, billingAddress, billingFirstName, billingLastName, billingMail, idTerms, idOrderType, idProject)
VALUES ( VALUES (
$idCustomerInstance, $idCustomerInstance,
'".$orderNumber."', '".$orderNumber."',
@@ -1231,6 +1234,9 @@
'".$tender."', '".$tender."',
'".$projectNumber."', '".$projectNumber."',
'".$concatenatedDeliveryAddress."', '".$concatenatedDeliveryAddress."',
'".$deliveryFirstName."',
'".$deliveryLastName."',
'".$deliveryMail."',
'".$concatenatedBillingAddress."', '".$concatenatedBillingAddress."',
'".$billingFirstName."', '".$billingFirstName."',
'".$billingLastName."', '".$billingLastName."',