diff --git a/api-wiaas/server/components/v2/cart/CartModel.php b/api-wiaas/server/components/v2/cart/CartModel.php index cd62269..cac7c25 100644 --- a/api-wiaas/server/components/v2/cart/CartModel.php +++ b/api-wiaas/server/components/v2/cart/CartModel.php @@ -1207,6 +1207,9 @@ $concatenatedDeliveryAddress = $deliveryInfo['detailedAddress'].", ".$deliveryInfo['city'].", $countryName, ".$deliveryInfo['zipCode']; $billingCountryDetails = $this->getCountryDetailsById($billingInfo['idCountrySelected'])[0]; $concatenatedBillingAddress = $billingInfo['detailedAddress'].", ".$billingInfo['city'].", ".$billingCountryDetails['countryName'].", ".$billingInfo['zipCode']; + $deliveryFirstName = $deliveryInfo['firstName']; + $deliveryLastName = $deliveryInfo['lastName']; + $deliveryMail = $deliveryInfo['deliveryMail']; $billingFirstName = $billingInfo['firstName']; $billingLastName = $billingInfo['lastName']; $billingMail = $billingInfo['invoiceMail']; @@ -1222,7 +1225,7 @@ $sql = " 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 ( $idCustomerInstance, '".$orderNumber."', @@ -1231,6 +1234,9 @@ '".$tender."', '".$projectNumber."', '".$concatenatedDeliveryAddress."', + '".$deliveryFirstName."', + '".$deliveryLastName."', + '".$deliveryMail."', '".$concatenatedBillingAddress."', '".$billingFirstName."', '".$billingLastName."',