$distribution) { | $distribution) { | ||||
$order = new Order; | $order = new Order; | ||||
$order->date = date('Y-m-d H:i:s', strtotime($date . ' ' . date('H:i:s'))); | |||||
$order->date = date('Y-m-d H:i:s') ; | |||||
$order->id_point_sale = $idPointSale; | $order->id_point_sale = $idPointSale; | ||||
$order->id_distribution = $distribution->id; | $order->id_distribution = $distribution->id; | ||||
$order->origin = Order::ORIGIN_ADMIN; | $order->origin = Order::ORIGIN_ADMIN; |