Billys_Billing_Invoicer - Version 1.0.5

Version Notes

- Added contact message with order ID
- Added customer email as external ID
- Added product SKU as external ID
- Added product SKU as product no.

Download this release

Release Info

Developer Billy's Billing
Extension Billys_Billing_Invoicer
Version 1.0.5
Comparing to
See all releases


Code changes from version 1.0.4 to 1.0.5

app/code/community/BillysBilling/Invoicer/Model/Observer.php CHANGED
@@ -104,6 +104,7 @@ class BillysBilling_Invoicer_Model_Observer {
104
  $invoice = array(
105
  "type" => "invoice",
106
  "contactId" => $contactId,
 
107
  "entryDate" => $date,
108
  "dueDate" => $dueDate,
109
  "currencyId" => Mage::app()->getStore()->getCurrentCurrencyCode(),
@@ -154,7 +155,7 @@ class BillysBilling_Invoicer_Model_Observer {
154
  $responseArray = array();
155
  $id = null;
156
  try {
157
- $address = $type . "?q=" . urlencode($data['name']);
158
  if ($this->testMode) {
159
  $response = $this->client->fakeGet(Mage::getBaseDir() . "/tests/output.log", $address);
160
  } else {
@@ -208,6 +209,7 @@ class BillysBilling_Invoicer_Model_Observer {
208
  'state' => $data->getRegion(),
209
  'phone' => $data->getTelephone(),
210
  'fax' => $data->getFax(),
 
211
  'persons' => array(
212
  array(
213
  'name' => $data->getName(),
@@ -222,8 +224,8 @@ class BillysBilling_Invoicer_Model_Observer {
222
  "accountId" => $this->accountId,
223
  "vatModelId" => $this->vatModelId,
224
  "productType" => "product",
225
- "productNo" => $data->product_id,
226
- "suppliersProductNo" => $data->sku,
227
  "prices" => array(
228
  array(
229
  "currencyId" => Mage::app()->getStore()->getCurrentCurrencyCode(),
104
  $invoice = array(
105
  "type" => "invoice",
106
  "contactId" => $contactId,
107
+ "contactMessage" => "Order ID #" . $order->getId(),
108
  "entryDate" => $date,
109
  "dueDate" => $dueDate,
110
  "currencyId" => Mage::app()->getStore()->getCurrentCurrencyCode(),
155
  $responseArray = array();
156
  $id = null;
157
  try {
158
+ $address = $type . "?externalId=" . urlencode($data['externalId']);
159
  if ($this->testMode) {
160
  $response = $this->client->fakeGet(Mage::getBaseDir() . "/tests/output.log", $address);
161
  } else {
209
  'state' => $data->getRegion(),
210
  'phone' => $data->getTelephone(),
211
  'fax' => $data->getFax(),
212
+ 'externalId' => $data->getEmail(),
213
  'persons' => array(
214
  array(
215
  'name' => $data->getName(),
224
  "accountId" => $this->accountId,
225
  "vatModelId" => $this->vatModelId,
226
  "productType" => "product",
227
+ "productNo" => $data->sku,
228
+ "externalId" => $data->sku,
229
  "prices" => array(
230
  array(
231
  "currencyId" => Mage::app()->getStore()->getCurrentCurrencyCode(),
app/code/community/BillysBilling/Invoicer/etc/config.xml CHANGED
@@ -1,7 +1,7 @@
1
  <config>
2
  <modules>
3
  <BillysBilling_Invoicer>
4
- <version>1.0.4</version>
5
  </BillysBilling_Invoicer>
6
  </modules>
7
  <global>
1
  <config>
2
  <modules>
3
  <BillysBilling_Invoicer>
4
+ <version>1.0.5</version>
5
  </BillysBilling_Invoicer>
6
  </modules>
7
  <global>
package.xml CHANGED
@@ -1,25 +1,28 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Billys_Billing_Invoicer</name>
4
- <version>1.0.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Billy's Billing Invoicer for Magento enables you to automatically submit invoices to Billy's Billing.</summary>
10
- <description>Billy's Billing Invoicer for Magento uses Billy's Billing's API to submit invoices to Billy's Billing automatically from orders created in the Magento shop. When orders are invoiced in Magento, they are automatically send to Billy's Billing with:&#xD;
11
- - General information about the order,&#xD;
12
- - Information about the customer, and&#xD;
13
- - Information about each product including shipping.&#xD;
14
- &#xD;
15
- This extension has been testing with the latest releases of version 1.5, 1.6 and 1.7.&#xD;
16
- &#xD;
17
  When this extension has been installed, you should go to System Configuration and access the Billy's Billing configuration page. From here you enter an API key (you can get this from organization settings in Billy's Billing) and save the configuration. When this is done, you will be able to change the dropdown boxes for shipping product, sales account, VAT model, and bank account. After they have been selected, you are ready to use the extension.</description>
18
- <notes>Added option to offset due date</notes>
 
 
 
19
  <authors><author><name>Billy's Billing</name><user>billysbilling</user><email>michael@billysbilling.com</email></author></authors>
20
- <date>2013-05-05</date>
21
- <time>08:23:55</time>
22
- <contents><target name="magecommunity"><dir name="BillysBilling"><dir name="Invoicer"><dir name="Helper"><file name="Data.php" hash="2e73f30c86e3cb150b91856d2efeebf4"/></dir><dir name="Model"><file name="Accounts.php" hash="a6861ea516d74d199d52be6e4a8eeb1c"/><file name="Observer.php" hash="07d3c13963b81bd248c3f73626a12d97"/><file name="Products.php" hash="86953a3321a191587b6da1ab57626c53"/><file name="VatModels.php" hash="e87151fe22f857340476d1d4ebaeb31c"/><file name="YesNo.php" hash="0948b76080b9829e733980dad3649fd9"/><dir name="billysbilling-php"><dir name="Billy"><file name="Client.php" hash="b947948ae0063e2a121751782f44c751"/><file name="Exception.php" hash="239b2ecc8821b6e55faef561d0f3089c"/><file name="Request.php" hash="60d6c8d0661ff97cfc828cc785e7c942"/></dir><file name="bootstrap.php" hash="95d828828c4fdf4d338407f4a270c397"/></dir></dir><dir name="etc"><file name="config.xml" hash="a0a96fdad03c6c10b018180fc7e1d38c"/><file name="system.xml" hash="7c7b2c0f151e904f7a82f32917aa8d09"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="BillysBilling_Invoicer.xml" hash="4b11b30f403a358332323f04da27d1d4"/></dir></target></contents>
23
  <compatible/>
24
  <dependencies><required><php><min>5.3.0</min><max>5.4.13</max></php></required></dependencies>
25
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Billys_Billing_Invoicer</name>
4
+ <version>1.0.5</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Billy's Billing Invoicer for Magento enables you to automatically submit invoices to Billy's Billing.</summary>
10
+ <description>Billy's Billing Invoicer for Magento uses Billy's Billing's API to submit invoices to Billy's Billing automatically from orders created in the Magento shop. When orders are invoiced in Magento, they are automatically send to Billy's Billing with:&amp;#xD;&#xD;
11
+ - General information about the order,&amp;#xD;&#xD;
12
+ - Information about the customer, and&amp;#xD;&#xD;
13
+ - Information about each product including shipping.&amp;#xD;&#xD;
14
+ &amp;#xD;&#xD;
15
+ This extension has been testing with the latest releases of version 1.5, 1.6 and 1.7.&amp;#xD;&#xD;
16
+ &amp;#xD;&#xD;
17
  When this extension has been installed, you should go to System Configuration and access the Billy's Billing configuration page. From here you enter an API key (you can get this from organization settings in Billy's Billing) and save the configuration. When this is done, you will be able to change the dropdown boxes for shipping product, sales account, VAT model, and bank account. After they have been selected, you are ready to use the extension.</description>
18
+ <notes> - Added contact message with order ID&#xD;
19
+ - Added customer email as external ID&#xD;
20
+ - Added product SKU as external ID&#xD;
21
+ - Added product SKU as product no.</notes>
22
  <authors><author><name>Billy's Billing</name><user>billysbilling</user><email>michael@billysbilling.com</email></author></authors>
23
+ <date>2013-07-02</date>
24
+ <time>17:40:39</time>
25
+ <contents><target name="magecommunity"><dir name="BillysBilling"><dir name="Invoicer"><dir name="Helper"><file name="Data.php" hash="2e73f30c86e3cb150b91856d2efeebf4"/></dir><dir name="Model"><file name="Accounts.php" hash="a6861ea516d74d199d52be6e4a8eeb1c"/><file name="Observer.php" hash="3fe1bee3467f9ca3baa96c4eb9f0a84a"/><file name="Products.php" hash="86953a3321a191587b6da1ab57626c53"/><file name="VatModels.php" hash="e87151fe22f857340476d1d4ebaeb31c"/><file name="YesNo.php" hash="0948b76080b9829e733980dad3649fd9"/><dir name="billysbilling-php"><dir name="Billy"><file name="Client.php" hash="b947948ae0063e2a121751782f44c751"/><file name="Exception.php" hash="239b2ecc8821b6e55faef561d0f3089c"/><file name="Request.php" hash="60d6c8d0661ff97cfc828cc785e7c942"/></dir><file name="bootstrap.php" hash="95d828828c4fdf4d338407f4a270c397"/></dir></dir><dir name="etc"><file name="config.xml" hash="4dc8b38cdb7703025cdeca5ab9c9a177"/><file name="system.xml" hash="7c7b2c0f151e904f7a82f32917aa8d09"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="BillysBilling_Invoicer.xml" hash="4b11b30f403a358332323f04da27d1d4"/></dir></target></contents>
26
  <compatible/>
27
  <dependencies><required><php><min>5.3.0</min><max>5.4.13</max></php></required></dependencies>
28
  </package>