|
1 | 1 | <?php
|
2 | 2 | /**
|
3 |
| - * Copyright © Magento, Inc. All rights reserved. |
4 |
| - * See COPYING.txt for license details. |
| 3 | + * Copyright 2014 Adobe |
| 4 | + * All Rights Reserved. |
5 | 5 | */
|
6 | 6 | namespace Magento\Tax\Model;
|
7 | 7 |
|
@@ -1088,30 +1088,42 @@ public static function calculateTaxTaxInclDataProvider()
|
1088 | 1088 | $productInclTaxWithoutStoreIdWithoutTaxClassId = $productTaxInclBase;
|
1089 | 1089 |
|
1090 | 1090 | $productInclTaxWithStoreIdWithTaxClassId['storeId'] = 1;
|
1091 |
| - $productInclTaxWithStoreIdWithTaxClassId['quoteDetailsData']['items'][] = $quoteDetailTaxInclItemWithDefaultProductTaxClass; |
| 1091 | + $productInclTaxWithStoreIdWithTaxClassId['quoteDetailsData']['items'][] = |
| 1092 | + $quoteDetailTaxInclItemWithDefaultProductTaxClass; |
1092 | 1093 | $productInclTaxWithStoreIdWithTaxClassId['expectedTaxDetails']['tax_amount'] = 0.70;
|
1093 | 1094 | $productInclTaxWithStoreIdWithTaxClassId['expectedTaxDetails']['subtotal'] = 9.30;
|
1094 | 1095 | $productInclTaxWithStoreIdWithTaxClassId['expectedTaxDetails']['applied_taxes'] = $quoteDetailAppliedTaxesBase;
|
1095 |
| - $productInclTaxWithStoreIdWithTaxClassId['expectedTaxDetails']['items'] = $productTaxInclExpectedItemWithDefaultProductTaxClass; |
| 1096 | + $productInclTaxWithStoreIdWithTaxClassId['expectedTaxDetails']['items'] = |
| 1097 | + $productTaxInclExpectedItemWithDefaultProductTaxClass; |
1096 | 1098 |
|
1097 | 1099 | $productInclTaxWithStoreIdWithoutTaxClassId['storeId'] = 1;
|
1098 | 1100 | $productInclTaxWithStoreIdWithoutTaxClassId['quoteDetailsData']['items'][] = $productTaxInclQuoteDetailItemBase;
|
1099 |
| - $productInclTaxWithStoreIdWithoutTaxClassId['expectedTaxDetails']['items'] = $productTaxInclExpectedItemWithNoProductTaxClass; |
| 1101 | + $productInclTaxWithStoreIdWithoutTaxClassId['expectedTaxDetails']['items'] = |
| 1102 | + $productTaxInclExpectedItemWithNoProductTaxClass; |
1100 | 1103 |
|
1101 |
| - $productInclTaxWithoutStoreIdWithTaxClassId['quoteDetailsData']['items'][] = $quoteDetailTaxInclItemWithDefaultProductTaxClass; |
| 1104 | + $productInclTaxWithoutStoreIdWithTaxClassId['quoteDetailsData']['items'][] = |
| 1105 | + $quoteDetailTaxInclItemWithDefaultProductTaxClass; |
1102 | 1106 | $productInclTaxWithoutStoreIdWithTaxClassId['expectedTaxDetails']['tax_amount'] = 0.70;
|
1103 | 1107 | $productInclTaxWithoutStoreIdWithTaxClassId['expectedTaxDetails']['subtotal'] = 9.30;
|
1104 |
| - $productInclTaxWithoutStoreIdWithTaxClassId['expectedTaxDetails']['applied_taxes'] = $quoteDetailAppliedTaxesBase; |
1105 |
| - $productInclTaxWithoutStoreIdWithTaxClassId['expectedTaxDetails']['items'] = $productTaxInclExpectedItemWithDefaultProductTaxClass; |
| 1108 | + $productInclTaxWithoutStoreIdWithTaxClassId['expectedTaxDetails']['applied_taxes'] = |
| 1109 | + $quoteDetailAppliedTaxesBase; |
| 1110 | + $productInclTaxWithoutStoreIdWithTaxClassId['expectedTaxDetails']['items'] = |
| 1111 | + $productTaxInclExpectedItemWithDefaultProductTaxClass; |
1106 | 1112 |
|
1107 |
| - $productInclTaxWithoutStoreIdWithoutTaxClassId['quoteDetailsData']['items'][] = $productTaxInclQuoteDetailItemBase; |
1108 |
| - $productInclTaxWithoutStoreIdWithoutTaxClassId['expectedTaxDetails']['items'] = $productTaxInclExpectedItemWithNoProductTaxClass; |
| 1113 | + $productInclTaxWithoutStoreIdWithoutTaxClassId['quoteDetailsData']['items'][] = |
| 1114 | + $productTaxInclQuoteDetailItemBase; |
| 1115 | + $productInclTaxWithoutStoreIdWithoutTaxClassId['expectedTaxDetails']['items'] = |
| 1116 | + $productTaxInclExpectedItemWithNoProductTaxClass; |
1109 | 1117 |
|
1110 | 1118 | return [
|
1111 |
| - 'product incl tax with store id, with tax class id' => $productInclTaxWithStoreIdWithTaxClassId, |
1112 |
| - 'product incl tax with store id, without tax class id' => $productInclTaxWithStoreIdWithoutTaxClassId, |
1113 |
| - 'product incl tax without store id, with tax class id' => $productInclTaxWithoutStoreIdWithTaxClassId, |
1114 |
| - 'product incl tax without store id, without tax class id' => $productInclTaxWithoutStoreIdWithoutTaxClassId, |
| 1119 | + 'product incl tax with store id, with tax class id' => |
| 1120 | + $productInclTaxWithStoreIdWithTaxClassId, |
| 1121 | + 'product incl tax with store id, without tax class id' => |
| 1122 | + $productInclTaxWithStoreIdWithoutTaxClassId, |
| 1123 | + 'product incl tax without store id, with tax class id' => |
| 1124 | + $productInclTaxWithoutStoreIdWithTaxClassId, |
| 1125 | + 'product incl tax without store id, without tax class id' => |
| 1126 | + $productInclTaxWithoutStoreIdWithoutTaxClassId, |
1115 | 1127 | ];
|
1116 | 1128 | }
|
1117 | 1129 |
|
@@ -1397,10 +1409,10 @@ public static function calculateTaxRowBasedDataProvider()
|
1397 | 1409 | 'weee1-Recycling Fee' => [
|
1398 | 1410 | 'code' => 'weee1-Recycling Fee',
|
1399 | 1411 | 'row_tax' => 0.57,
|
1400 |
| - 'price' => 7, |
1401 |
| - 'price_incl_tax' => 7.57, |
1402 |
| - 'row_total' => 7, |
1403 |
| - 'row_total_incl_tax' => 7.57, |
| 1412 | + 'price' => 7.0, |
| 1413 | + 'price_incl_tax' => 7.58, |
| 1414 | + 'row_total' => 7.0, |
| 1415 | + 'row_total_incl_tax' => 7.58, |
1404 | 1416 | 'type' => 'weee',
|
1405 | 1417 | 'tax_percent' => 8.25,
|
1406 | 1418 | 'discount_tax_compensation_amount' => 0,
|
|
0 commit comments