inovarti_quitar - Version 0.1.1

Version Notes

Versão 0.1.0
- API para integrar com Quitar

Versão 0.1.1
- chamando também o custom por causa do matrix rate

Download this release

Release Info

Developer Inovarti
Extension inovarti_quitar
Version 0.1.1
Comparing to
See all releases


Code changes from version 0.1.0 to 0.1.1

app/code/community/Inovarti/Quitar/Model/Api.php CHANGED
@@ -47,14 +47,14 @@ class Inovarti_Quitar_Model_Api extends Mage_Api_Model_Resource_Abstract {
47
  ))
48
  ->where('o.status NOT IN(?)', array('canceled', 'holded'))
49
  ->where('a.address_type = ?', 'shipping')
50
- ->where('t.carrier_code LIKE ?', '%correios%')
51
  ->order('o.entity_id ASC')
52
  ->limit($limit);
53
 
54
  if ($orderId) {
55
  $select->where('o.entity_id > ?', $orderId);
56
  }
57
-
58
  return json_encode($this->_getConnection()->fetchAll($select));
59
  }
60
 
@@ -74,7 +74,7 @@ class Inovarti_Quitar_Model_Api extends Mage_Api_Model_Resource_Abstract {
74
  ->select()
75
  ->from(array('o' => $this->_getResource()->getTableName('sales/order')), array('entity_id'))
76
  ->where('o.increment_id = ?', $incrementId);
77
- Mage::log("_getOrderIdByIncrementId(): " . print_r($select->__toString(), 1));
78
  return $this->_getConnection()->fetchOne($select);
79
  }
80
 
47
  ))
48
  ->where('o.status NOT IN(?)', array('canceled', 'holded'))
49
  ->where('a.address_type = ?', 'shipping')
50
+ ->where('t.carrier_code LIKE ? OR t.carrier_code = \'custom\' ', '%correios%')
51
  ->order('o.entity_id ASC')
52
  ->limit($limit);
53
 
54
  if ($orderId) {
55
  $select->where('o.entity_id > ?', $orderId);
56
  }
57
+ //return $select->__toString();
58
  return json_encode($this->_getConnection()->fetchAll($select));
59
  }
60
 
74
  ->select()
75
  ->from(array('o' => $this->_getResource()->getTableName('sales/order')), array('entity_id'))
76
  ->where('o.increment_id = ?', $incrementId);
77
+ //Mage::log("_getOrderIdByIncrementId(): " . print_r($select->__toString(), 1));
78
  return $this->_getConnection()->fetchOne($select);
79
  }
80
 
app/code/community/Inovarti/Quitar/etc/config.xml CHANGED
@@ -11,7 +11,7 @@
11
  <config>
12
  <modules>
13
  <Inovarti_Quitar>
14
- <version>0.1.0</version>
15
  </Inovarti_Quitar>
16
  </modules>
17
  <global>
11
  <config>
12
  <modules>
13
  <Inovarti_Quitar>
14
+ <version>0.1.1</version>
15
  </Inovarti_Quitar>
16
  </modules>
17
  <global>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>inovarti_quitar</name>
4
- <version>0.1.0</version>
5
  <stability>stable</stability>
6
  <license>Inovarti License</license>
7
  <channel>community</channel>
@@ -9,11 +9,14 @@
9
  <summary>API para integrar com Quitar</summary>
10
  <description>http://quitar.com.br</description>
11
  <notes>Vers&#xE3;o 0.1.0&#xD;
12
- - API para integrar com Quitar </notes>
 
 
 
13
  <authors><author><name>Inovarti</name><user>Inovarti</user><email>suporte@inovarti.com.br</email></author></authors>
14
- <date>2014-05-23</date>
15
- <time>02:29:12</time>
16
- <contents><target name="magecommunity"><dir name="Inovarti"><dir name="Quitar"><dir name="Helper"><file name="Data.php" hash="06b714f1b5469bf7ec16f8296bb93ba0"/></dir><dir name="Model"><file name="Api.php" hash="b56a1406fe61755a9f46b608cae4527b"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Line.php" hash="fd44b8d5f73dbc0ed46278da7a60b5d6"/></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="b185a6666c39a4c59797b2e7fef3f110"/><file name="api.xml" hash="88946727805f8c7668b69ee9d3f21c51"/><file name="config.xml" hash="e8cc5011ac3d44c7e3a5f1ae7aefdbfb"/><file name="system.xml" hash="762debd0abc0a5ce779747f04c1eacc1"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Inovarti_Quitar.xml" hash="9bd323439b1609a80cd10af97411cc06"/></dir></target><target name="magelocale"><dir><dir name="pt_BR"><file name="Inovarti_Quitar.csv" hash="704769802b63f9907895819c71ddf2e5"/></dir></dir></target></contents>
17
  <compatible/>
18
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
19
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>inovarti_quitar</name>
4
+ <version>0.1.1</version>
5
  <stability>stable</stability>
6
  <license>Inovarti License</license>
7
  <channel>community</channel>
9
  <summary>API para integrar com Quitar</summary>
10
  <description>http://quitar.com.br</description>
11
  <notes>Vers&#xE3;o 0.1.0&#xD;
12
+ - API para integrar com Quitar &#xD;
13
+ &#xD;
14
+ Vers&#xE3;o 0.1.1&#xD;
15
+ - chamando tamb&#xE9;m o custom por causa do matrix rate</notes>
16
  <authors><author><name>Inovarti</name><user>Inovarti</user><email>suporte@inovarti.com.br</email></author></authors>
17
+ <date>2014-07-15</date>
18
+ <time>20:48:07</time>
19
+ <contents><target name="magecommunity"><dir name="Inovarti"><dir name="Quitar"><dir name="Helper"><file name="Data.php" hash="06b714f1b5469bf7ec16f8296bb93ba0"/></dir><dir name="Model"><file name="Api.php" hash="9f9c34d74ca2446b2afdd53c50d1ba00"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Line.php" hash="fd44b8d5f73dbc0ed46278da7a60b5d6"/></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="b185a6666c39a4c59797b2e7fef3f110"/><file name="api.xml" hash="88946727805f8c7668b69ee9d3f21c51"/><file name="config.xml" hash="61de195fdd43f6048613ba2cf1125fde"/><file name="system.xml" hash="762debd0abc0a5ce779747f04c1eacc1"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Inovarti_Quitar.xml" hash="9bd323439b1609a80cd10af97411cc06"/></dir></target><target name="magelocale"><dir><dir name="pt_BR"><file name="Inovarti_Quitar.csv" hash="704769802b63f9907895819c71ddf2e5"/></dir></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
22
  </package>