diff --git a/app/code/IpSupply/SyncOrder/Sync/Order.php b/app/code/IpSupply/SyncOrder/Sync/Order.php index 80f0a097..d57525a0 100755 --- a/app/code/IpSupply/SyncOrder/Sync/Order.php +++ b/app/code/IpSupply/SyncOrder/Sync/Order.php @@ -5,6 +5,7 @@ namespace IpSupply\SyncOrder\Sync; class Order implements \JsonSerializable { public $orderId = 0; + public $orderNumber = ''; public $statusPayment = null; public $orderDate = null; public $subTotal = null; @@ -15,6 +16,7 @@ class Order implements \JsonSerializable function __construct(\Magento\Sales\Model\Order $order) { $this->orderId = $order->getId(); + $this->orderNumber = $order->getRealOrderId(); $this->statusPayment = $order->getStatus(); $this->orderDate = $order->getUpdatedAt(); $this->subTotal = $order->getSubtotal();