Skip to content

Commit

Permalink
fixed zipcode validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey committed Nov 27, 2024
1 parent 17f8e2a commit 8fe6039
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Model/OrdersRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,12 @@ public function get(string $from, string $to, int $p): OrdersDataContainerInterf
);

$collection->getSelect()->joinLeft(
['billingTable' => 'sales_order_address'],
"main_table.entity_id = billingTable.parent_id AND billingTable.address_type = 'billing'",
['shippingTable' => 'sales_order_address'],
"main_table.entity_id = shippingTable.parent_id AND shippingTable.address_type = 'shipping'",
['vat_id', 'country_id', 'city', 'address_type', 'telephone', 'region', 'firstname', 'lastname']
);


$collection->setPageSize(self::COUNT_PAGE_SIZE)
->setCurPage($p);

Expand Down

0 comments on commit 8fe6039

Please sign in to comment.