modifié:         core/lib/Thelia/ImportExport/Export/Type/OrderExport.php
	modifié:         core/lib/Thelia/Tests/ImportExport/Export/OrderExportTest.php
This commit is contained in:
Benjamin Perche
2014-07-31 16:55:46 +02:00
parent c85fe24d96
commit 9ff74bece8
2 changed files with 5 additions and 13 deletions

View File

@@ -12,7 +12,6 @@
namespace Thelia\ImportExport\Export\Type;
use Propel\Runtime\ActiveQuery\Criteria;
use Propel\Runtime\ActiveQuery\Join;
use Propel\Runtime\ActiveQuery\ModelCriteria;
use Thelia\Core\FileFormat\FormatType;
use Thelia\Core\Template\Element\BaseLoop;
@@ -22,8 +21,6 @@ use Thelia\Model\Map\CountryI18nTableMap;
use Thelia\Model\Map\CurrencyTableMap;
use Thelia\Model\Map\CustomerTableMap;
use Thelia\Model\Map\CustomerTitleI18nTableMap;
use Thelia\Model\Map\ModuleTableMap;
use Thelia\Model\Map\OrderAddressTableMap;
use Thelia\Model\Map\OrderCouponTableMap;
use Thelia\Model\Map\OrderProductTableMap;
use Thelia\Model\Map\OrderProductTaxTableMap;
@@ -280,7 +277,6 @@ class OrderExport extends ExportHandler
$line["order_TOTAL_WITH_DISCOUNT"] = "";
$line["order_TOTAL_WITH_DISCOUNT_AND_POSTAGE"] = "";
if (null === $previous || $previous !== $line[OrderTableMap::REF]) {
$previous = $line[OrderTableMap::REF];

View File

@@ -16,8 +16,6 @@ use Thelia\Core\Translation\Translator;
use Thelia\ImportExport\Export\Type\OrderExport;
use Thelia\Model\Lang;
use Thelia\Model\Map\OrderCouponTableMap;
use Thelia\Model\Map\OrderProductTableMap;
use Thelia\Model\Map\OrderProductTaxTableMap;
use Thelia\Model\OrderCouponQuery;
use Thelia\Model\OrderProductQuery;
use Thelia\Model\OrderQuery;
@@ -47,7 +45,6 @@ class OrderExportTest extends \PHPUnit_Framework_TestCase
$count = $ordersProductQuery->count();
$this->assertEquals(count($data), $count);
/**
* For the rest of the test, 50 orders are much enough
*/
@@ -97,7 +94,6 @@ class OrderExportTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($order->getTotalAmount($tax, false, true), $row["total_with_discount"]);
$this->assertEquals($order->getTotalAmount($tax, true, true), $row["total_discount_and_postage"]);
$invoiceAddress = $order->getOrderAddressRelatedByInvoiceOrderAddressId();
$deliveryAddress = $order->getOrderAddressRelatedByDeliveryOrderAddressId();