| Zeile 640... |
Zeile 640... |
| 640 |
$orders = DB::connection( "oldOrder" )->select( $sql );
|
640 |
$orders = DB::connection( "oldOrder" )->select( $sql );
|
| 641 |
$progressbar = $this->output->createProgressBar( count( $orders ) );
|
641 |
$progressbar = $this->output->createProgressBar( count( $orders ) );
|
| 642 |
$progressbar->start();
|
642 |
$progressbar->start();
|
| 643 |
foreach ( $orders as $oldOrder )
|
643 |
foreach ( $orders as $oldOrder )
|
| 644 |
{
|
644 |
{
|
| - |
|
645 |
$paidAt = $oldOrder->bezahlt_am;
|
| - |
|
646 |
if ( $paidAt == "0000-00-00 00:00:00" )
|
| - |
|
647 |
{
|
| - |
|
648 |
$paidAt = "0";
|
| - |
|
649 |
}
|
| 645 |
$order = new Order();
|
650 |
$order = new Order();
|
| 646 |
$order->id = $oldOrder->ID;
|
651 |
$order->id = $oldOrder->ID;
|
| 647 |
$order->shop_id = $oldOrder->shops_ID;
|
652 |
$order->shop_id = $oldOrder->shops_ID;
|
| 648 |
$order->order_type_id = $oldOrder->bestellart_id;
|
653 |
$order->order_type_id = $oldOrder->bestellart_id;
|
| 649 |
$order->payment_method_id = $oldOrder->zahlart_id;
|
654 |
$order->payment_method_id = $oldOrder->zahlart_id;
|
| 650 |
$order->user_id = $oldOrder->Login;
|
655 |
$order->user_id = $oldOrder->Login;
|
| 651 |
$order->ship_addr_id = $oldOrder->ship_addr_id;
|
656 |
$order->ship_addr_id = $oldOrder->ship_addr_id;
|
| 652 |
$order->bill_addr_id = $oldOrder->bill_addr_id;
|
657 |
$order->bill_addr_id = $oldOrder->bill_addr_id;
|
| 653 |
$order->paid = $oldOrder->bezahlt;
|
658 |
$order->paid = $oldOrder->bezahlt;
|
| 654 |
$order->paid_at = $oldOrder->bezahlt_am;
|
659 |
$order->paid_at = $paidAt;
|
| 655 |
$order->paid_comment = $oldOrder->bezahlt_bemerkung;
|
660 |
$order->paid_comment = $oldOrder->bezahlt_bemerkung;
|
| 656 |
$order->foreign_id = $oldOrder->fremd_id;
|
661 |
$order->foreign_id = $oldOrder->fremd_id;
|
| 657 |
$order->foreign_payment_id = $oldOrder->bezahlt_fremdid;
|
662 |
$order->foreign_payment_id = $oldOrder->bezahlt_fremdid;
|
| 658 |
$order->status = $oldOrder->status;
|
663 |
$order->status = $oldOrder->status;
|
| 659 |
$order->total_amount_buffer = $oldOrder->gesamtsumme_buffer;
|
664 |
$order->total_amount_buffer = $oldOrder->gesamtsumme_buffer;
|