Billys_Billing_Invoicer - Version 1.0.6

Version Notes

Added contact message customization

Download this release

Release Info

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


Code changes from version 1.0.5 to 1.0.6

app/code/community/BillysBilling/Invoicer/Model/Observer.php CHANGED
@@ -10,6 +10,7 @@ class BillysBilling_Invoicer_Model_Observer {
10
  private $bankAccountId = "";
11
  private $disablePayments = false;
12
  private $dueDateOffset = 0;
 
13
 
14
  private $client;
15
 
@@ -33,6 +34,7 @@ class BillysBilling_Invoicer_Model_Observer {
33
  $this->bankAccountId = Mage::getStoreConfig("billy/invoicer/bank_account");
34
  $this->disablePayments = Mage::getStoreConfig("billy/invoicer/disable_payments");
35
  $this->dueDateOffset = Mage::getStoreConfig("billy/invoicer/due_date_offset");
 
36
 
37
  // Include Billy's PHP SDK
38
  if (!class_exists('Billy_Client', false)) {
@@ -104,7 +106,7 @@ class BillysBilling_Invoicer_Model_Observer {
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(),
10
  private $bankAccountId = "";
11
  private $disablePayments = false;
12
  private $dueDateOffset = 0;
13
+ private $contactMessage = "";
14
 
15
  private $client;
16
 
34
  $this->bankAccountId = Mage::getStoreConfig("billy/invoicer/bank_account");
35
  $this->disablePayments = Mage::getStoreConfig("billy/invoicer/disable_payments");
36
  $this->dueDateOffset = Mage::getStoreConfig("billy/invoicer/due_date_offset");
37
+ $this->contactMessage = Mage::getStoreConfig("billy/invoicer/contact_message");
38
 
39
  // Include Billy's PHP SDK
40
  if (!class_exists('Billy_Client', false)) {
106
  $invoice = array(
107
  "type" => "invoice",
108
  "contactId" => $contactId,
109
+ "contactMessage" => str_replace("{order_id}", $order->getIncrementId(), $this->contactMessage),
110
  "entryDate" => $date,
111
  "dueDate" => $dueDate,
112
  "currencyId" => Mage::app()->getStore()->getCurrentCurrencyCode(),
app/code/community/BillysBilling/Invoicer/etc/system.xml CHANGED
@@ -93,6 +93,15 @@
93
  <show_in_website>0</show_in_website>
94
  <show_in_store>0</show_in_store>
95
  </due_date_offset>
 
 
 
 
 
 
 
 
 
96
  </fields>
97
  </invoicer>
98
  </groups>
93
  <show_in_website>0</show_in_website>
94
  <show_in_store>0</show_in_store>
95
  </due_date_offset>
96
+ <contact_message translate="label">
97
+ <label>Contact message</label>
98
+ <comment>Contact message to accompany the created invoice. Insert {order_id} for inserting the Order ID (e.g. "Order ID #{order_id}" for "Order ID #123456").</comment>
99
+ <frontend_type>text</frontend_type>
100
+ <sort_order>70</sort_order>
101
+ <show_in_default>1</show_in_default>
102
+ <show_in_website>0</show_in_website>
103
+ <show_in_store>0</show_in_store>
104
+ </contact_message>
105
  </fields>
106
  </invoicer>
107
  </groups>
package.xml CHANGED
@@ -1,28 +1,25 @@
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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Billys_Billing_Invoicer</name>
4
+ <version>1.0.6</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 contact message customization</notes>
 
 
 
19
  <authors><author><name>Billy's Billing</name><user>billysbilling</user><email>michael@billysbilling.com</email></author></authors>
20
+ <date>2013-07-25</date>
21
+ <time>17:13:43</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="32428f7ba5e5048fee27a93a5911200d"/><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="9d2ed460ff9d16ce45539e83034513a4"/></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>