GX-Bug #45165 » NULLStringCustomersAddressFix.patch
| src/GXEngine/Classes/CoreServices/Order/Entities/GXEngineOrder.inc.php (revision ) | ||
|---|---|---|
| 326 | 326 |
/** |
| 327 | 327 |
* Sets the unique order hash. |
| 328 | 328 |
* |
| 329 |
* @param NonEmptyStringType $orderHash
|
|
| 329 |
* @param StringType $orderHash |
|
| 330 | 330 |
* |
| 331 | 331 |
* @return OrderInterface |
| 332 | 332 |
*/ |
| 333 |
public function setOrderHash(NonEmptyStringType $orderHash)
|
|
| 333 |
public function setOrderHash(StringType $orderHash) |
|
| 334 | 334 |
{
|
| 335 | 335 |
$this->orderHash = $orderHash->asString(); |
| 336 | 336 |
|
| src/GXEngine/Classes/CoreServices/Order/Repositories/Reader/OrderRepositoryReader.inc.php (revision ) | ||
|---|---|---|
| 101 | 101 |
$isGuest = ((int)$data['account_type'] === 1 || (int)$data['customers_status'] === 1); |
| 102 | 102 |
$customerStatusInformation = MainFactory::create('CustomerStatusInformation',
|
| 103 | 103 |
new IdType((int)$data['customers_status']), |
| 104 |
new StringType($data['customers_status_name']), |
|
| 104 |
new StringType((string)$data['customers_status_name']),
|
|
| 105 | 105 |
new StringType((string)$data['customers_status_image']), |
| 106 | 106 |
new DecimalType((double)$data['customers_status_discount']), |
| 107 | 107 |
new BoolType($isGuest)); |
| ... | ... | |
| 135 | 135 |
$order->setPurchaseDateTime(new DateTime((string)$data['date_purchased'])); |
| 136 | 136 |
$order->setLastModifiedDateTime(new DateTime((string)$data['last_modified'])); |
| 137 | 137 |
$order->setComment(new StringType((string)$data['comments'])); |
| 138 |
$order->setOrderHash(new NonEmptyStringType($data['orders_hash']));
|
|
| 138 |
$order->setOrderHash(new StringType($data['orders_hash'])); |
|
| 139 | 139 |
|
| 140 | 140 |
return $order; |
| 141 | 141 |
} |
| src/GXEngine/Classes/CoreServices/Order/Repositories/Reader/OrderItemRepositoryReader.inc.php (revision ) | ||
|---|---|---|
| 124 | 124 |
$storedOrderItem->setQuantity(new DecimalType($data['products_quantity'])); |
| 125 | 125 |
$storedOrderItem->setTax(new DecimalType($data['products_tax'])); |
| 126 | 126 |
$storedOrderItem->setTaxAllowed(new BoolType($data['allow_tax'])); |
| 127 |
$storedOrderItem->setDiscountMade(new DecimalType($data['products_discount_made'])); |
|
| 128 |
$storedOrderItem->setCheckoutInformation(new StringType($data['checkout_information'])); |
|
| 127 |
$storedOrderItem->setDiscountMade(new DecimalType((double)$data['products_discount_made']));
|
|
| 128 |
$storedOrderItem->setCheckoutInformation(new StringType((string)$data['checkout_information']));
|
|
| 129 | 129 |
$storedOrderItem->setQuantityUnitName(new StringType($data['products_name'])); |
| 130 | 130 |
|
| 131 | 131 |
if(is_null($data['orders_products_download_id']) === false) |