Version Notes
It provides a bridge between Magento and Orderhive to exchange data in a form of Rest APIs.
Download this release
Release Info
Developer | Jayneel |
Extension | Orderhive_Restapi |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
app/code/local/Orderhive/Restapi/Model/Api2/Order.php
CHANGED
@@ -359,6 +359,15 @@ class Orderhive_Restapi_Model_Api2_Order extends Mage_Api2_Model_Resource
|
|
359 |
$itemData['discount_amount'] = ($itemData['discount_amount'] <= 0) ? $tempArray['discount_amount'] : $itemData['discount_amount'];
|
360 |
$itemData['row_total'] = ($itemData['row_total'] <= 0) ? $tempArray['row_total'] : $itemData['row_total'];
|
361 |
$itemData['base_row_total'] = ($itemData['base_row_total'] <= 0) ? $tempArray['base_row_total'] : $itemData['base_row_total'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
362 |
$tempArray = array();
|
363 |
}
|
364 |
$result[$cnt]['items'][$key] = $itemData;
|
359 |
$itemData['discount_amount'] = ($itemData['discount_amount'] <= 0) ? $tempArray['discount_amount'] : $itemData['discount_amount'];
|
360 |
$itemData['row_total'] = ($itemData['row_total'] <= 0) ? $tempArray['row_total'] : $itemData['row_total'];
|
361 |
$itemData['base_row_total'] = ($itemData['base_row_total'] <= 0) ? $tempArray['base_row_total'] : $itemData['base_row_total'];
|
362 |
+
$itemData['row_weight'] = ($itemData['row_weight'] <= 0) ? $tempArray['row_weight'] : $itemData['row_weight'];
|
363 |
+
$itemData['price_incl_tax'] = ($itemData['price_incl_tax'] <= 0) ? $tempArray['price_incl_tax'] : $itemData['price_incl_tax'];
|
364 |
+
$itemData['base_price_incl_tax'] = ($itemData['base_price_incl_tax'] == null) ? $tempArray['base_price_incl_tax'] : $itemData['base_price_incl_tax'];
|
365 |
+
$itemData['row_total_incl_tax'] = ($itemData['row_total_incl_tax'] == null) ? $tempArray['row_total_incl_tax'] : $itemData['row_total_incl_tax'];
|
366 |
+
$itemData['base_row_total_incl_tax'] = ($itemData['base_row_total_incl_tax'] == null) ? $tempArray['base_row_total_incl_tax'] : $itemData['base_row_total_incl_tax'];
|
367 |
+
$itemData['hidden_tax_amount'] = ($itemData['hidden_tax_amount'] == null) ? $tempArray['hidden_tax_amount'] : $itemData['hidden_tax_amount'];
|
368 |
+
$itemData['base_hidden_tax_amount'] = ($itemData['base_hidden_tax_amount'] == null) ? $tempArray['base_hidden_tax_amount'] : $itemData['base_hidden_tax_amount'];
|
369 |
+
$itemData['base_weee_tax_applied_row_amnt'] = ($itemData['base_weee_tax_applied_row_amnt'] == null) ? $tempArray['base_weee_tax_applied_row_amnt'] : $itemData['base_weee_tax_applied_row_amnt'];
|
370 |
+
$itemData['base_weee_tax_applied_row_amount'] = ($itemData['base_weee_tax_applied_row_amount'] == null) ? $tempArray['base_weee_tax_applied_row_amount'] : $itemData['base_weee_tax_applied_row_amount'];
|
371 |
$tempArray = array();
|
372 |
}
|
373 |
$result[$cnt]['items'][$key] = $itemData;
|
package.xml
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Orderhive_Restapi</name>
|
4 |
-
<version>1.0.
|
5 |
-
<stability>
|
6 |
<license>Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
@@ -10,9 +10,9 @@
|
|
10 |
<description>"Orderhive RestAPI Integration" Extension for Magento will provide smooth and reliable RestAPIs (products, customers and sales orders) for sharing large amount of data between your store and Orderhive without affecting your store performance. It provides an interface to revoke permission from Orderhive in order to stop API calls.</description>
|
11 |
<notes>It provides a bridge between Magento and Orderhive to exchange data in a form of Rest APIs.</notes>
|
12 |
<authors><author><name>Jayneel Patel</name><user>jayneel</user><email>jayneel@openxcell.com</email></author><author><name>Niyati Patel</name><user>niyati7</user><email>niyati@openxcelltechnolabs.com</email></author></authors>
|
13 |
-
<date>2016-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magelocal"><dir><dir name="Orderhive"><dir><dir name="Restapi"><dir name="Helper"><file name="Data.php" hash="38c518a233dd81e503671c17f5693687"/></dir><dir name="Model"><dir name="Api2"><dir name="Customer"><dir name="Rest"><dir name="Admin"><file name="V1.php" hash="dbccdafc8f5d34be40e250c9b39007b7"/></dir></dir><file name="Rest.php" hash="680b9ad673c5881bb90ec9b73a14b789"/></dir><dir name="Order"><dir name="Rest"><dir name="Admin"><file name="V1.php" hash="de30d47be6461bebf125f67be3c7a3a0"/></dir></dir><file name="Rest.php" hash="3a9e5fbd1cf8518c6c6b7a1fc9ca772c"/></dir><file name="Order.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Orderhive_Restapi</name>
|
4 |
+
<version>1.0.2</version>
|
5 |
+
<stability>devel</stability>
|
6 |
<license>Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
10 |
<description>"Orderhive RestAPI Integration" Extension for Magento will provide smooth and reliable RestAPIs (products, customers and sales orders) for sharing large amount of data between your store and Orderhive without affecting your store performance. It provides an interface to revoke permission from Orderhive in order to stop API calls.</description>
|
11 |
<notes>It provides a bridge between Magento and Orderhive to exchange data in a form of Rest APIs.</notes>
|
12 |
<authors><author><name>Jayneel Patel</name><user>jayneel</user><email>jayneel@openxcell.com</email></author><author><name>Niyati Patel</name><user>niyati7</user><email>niyati@openxcelltechnolabs.com</email></author></authors>
|
13 |
+
<date>2016-06-15</date>
|
14 |
+
<time>09:26:06</time>
|
15 |
+
<contents><target name="magelocal"><dir><dir name="Orderhive"><dir><dir name="Restapi"><dir name="Helper"><file name="Data.php" hash="38c518a233dd81e503671c17f5693687"/></dir><dir name="Model"><dir name="Api2"><dir name="Customer"><dir name="Rest"><dir name="Admin"><file name="V1.php" hash="dbccdafc8f5d34be40e250c9b39007b7"/></dir></dir><file name="Rest.php" hash="680b9ad673c5881bb90ec9b73a14b789"/></dir><dir name="Order"><dir name="Rest"><dir name="Admin"><file name="V1.php" hash="de30d47be6461bebf125f67be3c7a3a0"/></dir></dir><file name="Rest.php" hash="3a9e5fbd1cf8518c6c6b7a1fc9ca772c"/></dir><file name="Order.php" hash="462bc2579a516e95eea69627686d0367"/><dir name="Product"><dir name="Rest"><dir name="Admin"><file name="V1.php" hash="6998ad9f26d0385900c30de0e78dc304"/></dir></dir><file name="Rest.php" hash="18f55c1872784840b13c15a0bbbeb3a9"/></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="f2fc00926ccc5ef37e1405c82eb80bff"/><file name="api2.xml" hash="539851f8abfa003fa1582c03e16ca2a5"/><file name="config.xml" hash="ee839e036d108366a9b89fab9a781bd1"/><file name="system.xml" hash="c61198c01afaa3303d6dc77526d29769"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Orderhive_Restapi.xml" hash="f71701a1803ed12d95f70fc6042caae0"/></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|