boleto-e-deposito-by-gamuza - Version 0.0.1

Version Notes

* Boletos e depósitos para os bancos mais comuns.
* Emissão de boleto dinâmico on-line.
* Aviso de anti-popup.

Download this release

Release Info

Developer Gamuza Brasil
Extension boleto-e-deposito-by-gamuza
Version 0.0.1
Comparing to
See all releases


Version 0.0.1

Files changed (138) hide show
  1. app/code/local/Gamuza/Slips/Block/Adminhtml/Transactions.php +40 -0
  2. app/code/local/Gamuza/Slips/Block/Adminhtml/Transactions/Edit.php +47 -0
  3. app/code/local/Gamuza/Slips/Block/Adminhtml/Transactions/Edit/Form.php +39 -0
  4. app/code/local/Gamuza/Slips/Block/Adminhtml/Transactions/Edit/Tab/Form.php +85 -0
  5. app/code/local/Gamuza/Slips/Block/Adminhtml/Transactions/Edit/Tabs.php +50 -0
  6. app/code/local/Gamuza/Slips/Block/Adminhtml/Transactions/Grid.php +99 -0
  7. app/code/local/Gamuza/Slips/Block/Bb/Deposit.php +42 -0
  8. app/code/local/Gamuza/Slips/Block/Bb/Slip.php +207 -0
  9. app/code/local/Gamuza/Slips/Block/Bradesco/Deposit.php +42 -0
  10. app/code/local/Gamuza/Slips/Block/Bradesco/Slip.php +211 -0
  11. app/code/local/Gamuza/Slips/Block/Cef/Deposit.php +42 -0
  12. app/code/local/Gamuza/Slips/Block/Cef/Slip.php +208 -0
  13. app/code/local/Gamuza/Slips/Block/Hsbc/Deposit.php +42 -0
  14. app/code/local/Gamuza/Slips/Block/Hsbc/Slip.php +191 -0
  15. app/code/local/Gamuza/Slips/Block/Nossacaixa/Deposit.php +42 -0
  16. app/code/local/Gamuza/Slips/Block/Nossacaixa/Slip.php +203 -0
  17. app/code/local/Gamuza/Slips/Block/Real/Deposit.php +42 -0
  18. app/code/local/Gamuza/Slips/Block/Real/Slip.php +195 -0
  19. app/code/local/Gamuza/Slips/Block/Santander/Deposit.php +42 -0
  20. app/code/local/Gamuza/Slips/Block/Santander/Slip.php +199 -0
  21. app/code/local/Gamuza/Slips/Block/Standard/Form.php +76 -0
  22. app/code/local/Gamuza/Slips/Block/Standard/Info.php +81 -0
  23. app/code/local/Gamuza/Slips/Block/Unibanco/Deposit.php +61 -0
  24. app/code/local/Gamuza/Slips/Block/Unibanco/Slip.php +222 -0
  25. app/code/local/Gamuza/Slips/Helper/Data.php +31 -0
  26. app/code/local/Gamuza/Slips/Model/Config.php +64 -0
  27. app/code/local/Gamuza/Slips/Model/Mysql4/Transactions.php +35 -0
  28. app/code/local/Gamuza/Slips/Model/Mysql4/Transactions/Collection.php +35 -0
  29. app/code/local/Gamuza/Slips/Model/Observer/Invoice.php +38 -0
  30. app/code/local/Gamuza/Slips/Model/Standard.php +100 -0
  31. app/code/local/Gamuza/Slips/Model/System/Config/Source/Order/Status.php +43 -0
  32. app/code/local/Gamuza/Slips/Model/System/Config/Source/Payment/Types.php +43 -0
  33. app/code/local/Gamuza/Slips/Model/Transactions.php +35 -0
  34. app/code/local/Gamuza/Slips/controllers/Adminhtml/TransactionsController.php +65 -0
  35. app/code/local/Gamuza/Slips/controllers/StandardController.php +31 -0
  36. app/code/local/Gamuza/Slips/etc/adminhtml.xml +74 -0
  37. app/code/local/Gamuza/Slips/etc/config.xml +276 -0
  38. app/code/local/Gamuza/Slips/etc/system.xml +1520 -0
  39. app/code/local/Gamuza/Slips/sql/slips_setup/mysql4-install-0.0.1.php +48 -0
  40. app/code/local/Gamuza/Utils/Block/About.php +71 -0
  41. app/code/local/Gamuza/Utils/Block/Adminhtml/Sales/Order/Grid.php +35 -0
  42. app/code/local/Gamuza/Utils/Block/Adminhtml/Sales/Order/View.php +49 -0
  43. app/code/local/Gamuza/Utils/Block/Adminhtml/Widget/Grid/Column/Renderer/Expiration.php +42 -0
  44. app/code/local/Gamuza/Utils/Block/Adminhtml/Widget/Grid/Column/Renderer/Price.php +35 -0
  45. app/code/local/Gamuza/Utils/Block/Onepage/Success/Additional.php +42 -0
  46. app/code/local/Gamuza/Utils/Block/Onepage/Success/Info.php +57 -0
  47. app/code/local/Gamuza/Utils/Helper/Data.php +101 -0
  48. app/code/local/Gamuza/Utils/Model/Config.php +42 -0
  49. app/code/local/Gamuza/Utils/Model/Utils.php +35 -0
  50. app/code/local/Gamuza/Utils/controllers/Adminhtml/UtilsController.php +34 -0
  51. app/code/local/Gamuza/Utils/etc/adminhtml.xml +50 -0
  52. app/code/local/Gamuza/Utils/etc/config.xml +126 -0
  53. app/code/local/Gamuza/Utils/etc/system.xml +57 -0
  54. app/code/local/Gamuza/Utils/sql/utils_setup/mysql4-install-0.0.1.php +36 -0
  55. app/code/local/Varien/Data/Form/Element/Expiration.php +41 -0
  56. app/code/local/Varien/Data/Form/Element/Export/Esedex.php +49 -0
  57. app/code/local/Varien/Data/Form/Element/Export/Expressdelivery.php +49 -0
  58. app/code/local/Varien/Data/Form/Element/Export/Pac.php +49 -0
  59. app/code/local/Varien/Data/Form/Element/Export/Plus.php +49 -0
  60. app/code/local/Varien/Data/Form/Element/Export/Retire.php +49 -0
  61. app/code/local/Varien/Data/Form/Element/Export/Sedex.php +49 -0
  62. app/code/local/Varien/Data/Form/Element/Price.php +39 -0
  63. app/design/adminhtml/default/default/layout/slips.xml +36 -0
  64. app/design/adminhtml/default/default/template/slips/bb/deposit.phtml +29 -0
  65. app/design/adminhtml/default/default/template/slips/bb/slip.phtml +31 -0
  66. app/design/adminhtml/default/default/template/slips/bradesco/deposit.phtml +29 -0
  67. app/design/adminhtml/default/default/template/slips/bradesco/slip.phtml +31 -0
  68. app/design/adminhtml/default/default/template/slips/cef/deposit.phtml +29 -0
  69. app/design/adminhtml/default/default/template/slips/cef/slip.phtml +31 -0
  70. app/design/adminhtml/default/default/template/slips/hsbc/deposit.phtml +29 -0
  71. app/design/adminhtml/default/default/template/slips/hsbc/slip.phtml +31 -0
  72. app/design/adminhtml/default/default/template/slips/nossacaixa/deposit.phtml +29 -0
  73. app/design/adminhtml/default/default/template/slips/nossacaixa/slip.phtml +31 -0
  74. app/design/adminhtml/default/default/template/slips/real/deposit.phtml +29 -0
  75. app/design/adminhtml/default/default/template/slips/real/slip.phtml +31 -0
  76. app/design/adminhtml/default/default/template/slips/santander/deposit.phtml +29 -0
  77. app/design/adminhtml/default/default/template/slips/santander/slip.phtml +31 -0
  78. app/design/adminhtml/default/default/template/slips/standard/form.phtml +55 -0
  79. app/design/adminhtml/default/default/template/slips/standard/info.phtml +81 -0
  80. app/design/adminhtml/default/default/template/slips/unibanco/deposit.phtml +29 -0
  81. app/design/adminhtml/default/default/template/slips/unibanco/slip.phtml +31 -0
  82. app/design/frontend/default/default/layout/utils.xml +48 -0
  83. app/design/frontend/default/default/template/slips/bb/deposit.phtml +29 -0
  84. app/design/frontend/default/default/template/slips/bb/slip.phtml +31 -0
  85. app/design/frontend/default/default/template/slips/bradesco/deposit.phtml +29 -0
  86. app/design/frontend/default/default/template/slips/bradesco/slip.phtml +31 -0
  87. app/design/frontend/default/default/template/slips/cef/deposit.phtml +29 -0
  88. app/design/frontend/default/default/template/slips/cef/slip.phtml +31 -0
  89. app/design/frontend/default/default/template/slips/hsbc/deposit.phtml +29 -0
  90. app/design/frontend/default/default/template/slips/hsbc/slip.phtml +31 -0
  91. app/design/frontend/default/default/template/slips/nossacaixa/deposit.phtml +29 -0
  92. app/design/frontend/default/default/template/slips/nossacaixa/slip.phtml +31 -0
  93. app/design/frontend/default/default/template/slips/real/deposit.phtml +29 -0
  94. app/design/frontend/default/default/template/slips/real/slip.phtml +31 -0
  95. app/design/frontend/default/default/template/slips/santander/deposit.phtml +29 -0
  96. app/design/frontend/default/default/template/slips/santander/slip.phtml +31 -0
  97. app/design/frontend/default/default/template/slips/standard/form.phtml +55 -0
  98. app/design/frontend/default/default/template/slips/standard/info.phtml +81 -0
  99. app/design/frontend/default/default/template/slips/unibanco/deposit.phtml +29 -0
  100. app/design/frontend/default/default/template/slips/unibanco/slip.phtml +31 -0
  101. app/design/frontend/default/default/template/utils/onepage/success/additional.phtml +58 -0
  102. app/design/frontend/default/default/template/utils/onepage/success/info.phtml +116 -0
  103. app/etc/modules/Gamuza_Slips.xml +41 -0
  104. app/etc/modules/Gamuza_Utils.xml +43 -0
  105. package.xml +20 -0
  106. skin/adminhtml/default/default/images/gamuza/slips/BB_DEPOSIT.png +0 -0
  107. skin/adminhtml/default/default/images/gamuza/slips/BB_SLIP.png +0 -0
  108. skin/adminhtml/default/default/images/gamuza/slips/BRADESCO_DEPOSIT.png +0 -0
  109. skin/adminhtml/default/default/images/gamuza/slips/BRADESCO_SLIP.png +0 -0
  110. skin/adminhtml/default/default/images/gamuza/slips/CEF_DEPOSIT.png +0 -0
  111. skin/adminhtml/default/default/images/gamuza/slips/CEF_SLIP.png +0 -0
  112. skin/adminhtml/default/default/images/gamuza/slips/HSBC_DEPOSIT.png +0 -0
  113. skin/adminhtml/default/default/images/gamuza/slips/HSBC_SLIP.png +0 -0
  114. skin/adminhtml/default/default/images/gamuza/slips/NOSSACAIXA_DEPOSIT.png +0 -0
  115. skin/adminhtml/default/default/images/gamuza/slips/NOSSACAIXA_SLIP.png +0 -0
  116. skin/adminhtml/default/default/images/gamuza/slips/REAL_DEPOSIT.png +0 -0
  117. skin/adminhtml/default/default/images/gamuza/slips/REAL_SLIP.png +0 -0
  118. skin/adminhtml/default/default/images/gamuza/slips/SANTANDER_DEPOSIT.png +0 -0
  119. skin/adminhtml/default/default/images/gamuza/slips/SANTANDER_SLIP.png +0 -0
  120. skin/adminhtml/default/default/images/gamuza/slips/UNIBANCO_DEPOSIT.png +0 -0
  121. skin/adminhtml/default/default/images/gamuza/slips/UNIBANCO_SLIP.png +0 -0
  122. skin/adminhtml/default/default/images/gamuza/utils/gamuza-magento-modules.png +0 -0
  123. skin/frontend/default/default/images/gamuza/slips/BB_DEPOSIT.png +0 -0
  124. skin/frontend/default/default/images/gamuza/slips/BB_SLIP.png +0 -0
  125. skin/frontend/default/default/images/gamuza/slips/BRADESCO_DEPOSIT.png +0 -0
  126. skin/frontend/default/default/images/gamuza/slips/BRADESCO_SLIP.png +0 -0
  127. skin/frontend/default/default/images/gamuza/slips/CEF_DEPOSIT.png +0 -0
  128. skin/frontend/default/default/images/gamuza/slips/CEF_SLIP.png +0 -0
  129. skin/frontend/default/default/images/gamuza/slips/HSBC_DEPOSIT.png +0 -0
  130. skin/frontend/default/default/images/gamuza/slips/HSBC_SLIP.png +0 -0
  131. skin/frontend/default/default/images/gamuza/slips/NOSSACAIXA_DEPOSIT.png +0 -0
  132. skin/frontend/default/default/images/gamuza/slips/NOSSACAIXA_SLIP.png +0 -0
  133. skin/frontend/default/default/images/gamuza/slips/REAL_DEPOSIT.png +0 -0
  134. skin/frontend/default/default/images/gamuza/slips/REAL_SLIP.png +0 -0
  135. skin/frontend/default/default/images/gamuza/slips/SANTANDER_DEPOSIT.png +0 -0
  136. skin/frontend/default/default/images/gamuza/slips/SANTANDER_SLIP.png +0 -0
  137. skin/frontend/default/default/images/gamuza/slips/UNIBANCO_DEPOSIT.png +0 -0
  138. skin/frontend/default/default/images/gamuza/slips/UNIBANCO_SLIP.png +0 -0
app/code/local/Gamuza/Slips/Block/Adminhtml/Transactions.php ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Block_Adminhtml_Transactions
29
+ extends Mage_Adminhtml_Block_Widget_Grid_Container
30
+ {
31
+ public function __construct()
32
+ {
33
+ parent::__construct();
34
+
35
+ $this->_controller = "adminhtml_transactions";
36
+ $this->_blockGroup = "slips";
37
+ $this->_headerText = Mage::helper("slips")->__("Slip and Deposit Transactions Manager");
38
+ $this->_removeButton ('add');
39
+ }
40
+ }
app/code/local/Gamuza/Slips/Block/Adminhtml/Transactions/Edit.php ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Block_Adminhtml_Transactions_Edit
29
+ extends Mage_Adminhtml_Block_Widget_Form_Container
30
+ {
31
+ public function __construct()
32
+ {
33
+ parent::__construct();
34
+
35
+ $this->_objectId = "id";
36
+ $this->_blockGroup = "slips";
37
+ $this->_controller = "adminhtml_transactions";
38
+ $this->_removeButton ('save');
39
+ $this->_removeButton ('delete');
40
+ $this->_removeButton ('reset');
41
+ }
42
+
43
+ public function getHeaderText()
44
+ {
45
+ return Mage::helper("slips")->__("View Item '%s'", $this->htmlEscape(Mage::registry("slips_data")->getId()));
46
+ }
47
+ }
app/code/local/Gamuza/Slips/Block/Adminhtml/Transactions/Edit/Form.php ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Block_Adminhtml_Transactions_Edit_Form
29
+ extends Mage_Adminhtml_Block_Widget_Form
30
+ {
31
+ protected function _prepareForm()
32
+ {
33
+ $form = new Varien_Data_Form(array("id" => "edit_form"));
34
+ $form->setUseContainer(true);
35
+ $this->setForm($form);
36
+
37
+ return parent::_prepareForm();
38
+ }
39
+ }
app/code/local/Gamuza/Slips/Block/Adminhtml/Transactions/Edit/Tab/Form.php ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Block_Adminhtml_Transactions_Edit_Tab_Form
29
+ extends Mage_Adminhtml_Block_Widget_Form
30
+ {
31
+ protected function _prepareForm()
32
+ {
33
+ $data = Mage::registry("slips_data")->getData();
34
+
35
+ $form = new Varien_Data_Form();
36
+ $this->setForm($form);
37
+ $fieldset = $form->addFieldset("slips_form", array("legend"=>Mage::helper("slips")->__("Item Information")));
38
+
39
+ $fieldset->addField("order_id", "label", array(
40
+ "label" => Mage::helper("slips")->__("Order ID"),
41
+ "class" => "required-entry",
42
+ "required" => true,
43
+ "name" => "order_id",
44
+ "disabled" => true,
45
+ ));
46
+
47
+ $order_increment_id = Mage::getModel ('sales/order')->load ($data ['order_id'])->getIncrementId ();
48
+
49
+ $fieldset->addField("order_increment_id", "label", array(
50
+ "label" => Mage::helper("slips")->__("Order Increment ID"),
51
+ "class" => "required-entry",
52
+ "required" => true,
53
+ "disabled" => true,
54
+ "after_element_html" => $order_increment_id,
55
+ ));
56
+
57
+ $fieldset->addField("number", "label", array(
58
+ "label" => Mage::helper("slips")->__("Number"),
59
+ "class" => "required-entry",
60
+ "required" => true,
61
+ "name" => "number",
62
+ "disabled" => true,
63
+ ));
64
+
65
+ $fieldset->addField("expiration", "expiration", array(
66
+ "label" => Mage::helper("slips")->__("Expiration"),
67
+ "class" => "required-entry",
68
+ "required" => true,
69
+ "name" => "expiration",
70
+ "disabled" => true,
71
+ ));
72
+
73
+ $fieldset->addField("amount", "price", array(
74
+ "label" => Mage::helper("slips")->__("Amount"),
75
+ "class" => "required-entry",
76
+ "required" => true,
77
+ "name" => "amount",
78
+ "disabled" => true,
79
+ ));
80
+
81
+ $form->setValues($data);
82
+
83
+ return parent::_prepareForm();
84
+ }
85
+ }
app/code/local/Gamuza/Slips/Block/Adminhtml/Transactions/Edit/Tabs.php ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Block_Adminhtml_Transactions_Edit_Tabs
29
+ extends Mage_Adminhtml_Block_Widget_Tabs
30
+ {
31
+ public function __construct()
32
+ {
33
+ parent::__construct();
34
+
35
+ $this->setId("slips_transactions_tabs");
36
+ $this->setDestElementId("edit_form");
37
+ $this->setTitle(Mage::helper("slips")->__("Item Information"));
38
+ }
39
+
40
+ protected function _beforeToHtml()
41
+ {
42
+ $this->addTab("form_section", array(
43
+ "label" => Mage::helper("slips")->__("Item Information"),
44
+ "title" => Mage::helper("slips")->__("Item Information"),
45
+ "content" => $this->getLayout()->createBlock("slips/adminhtml_transactions_edit_tab_form")->toHtml(),
46
+ ));
47
+
48
+ return parent::_beforeToHtml();
49
+ }
50
+ }
app/code/local/Gamuza/Slips/Block/Adminhtml/Transactions/Grid.php ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Block_Adminhtml_Transactions_Grid
29
+ extends Mage_Adminhtml_Block_Widget_Grid
30
+ {
31
+ public function __construct()
32
+ {
33
+ parent::__construct();
34
+
35
+ $this->setId("slips_transactions_grid");
36
+ $this->setDefaultSort("id");
37
+ $this->setDefaultDir("ASC");
38
+ $this->setSaveParametersInSession(true);
39
+ }
40
+
41
+ protected function _prepareCollection()
42
+ {
43
+ $collection = Mage::getModel("slips/transactions")->getCollection();
44
+ $collection->getSelect()->join (array('table_sales_order' => 'sales_flat_order'),
45
+ 'main_table.order_id = table_sales_order.entity_id',
46
+ array('increment_id'));
47
+ $this->setCollection($collection);
48
+
49
+ return parent::_prepareCollection();
50
+ }
51
+
52
+ protected function _prepareColumns()
53
+ {
54
+ $this->addColumn("id", array(
55
+ "header" => Mage::helper("itaushopline")->__("ID"),
56
+ "align" =>"right",
57
+ "width" => "50px",
58
+ "index" => "id",
59
+ ));
60
+ $this->addColumn("order_id", array(
61
+ "header" => Mage::helper("itaushopline")->__("Order ID"),
62
+ "align" =>"left",
63
+ "width" => "50px",
64
+ "index" => "order_id",
65
+ ));
66
+ $this->addColumn("order_increment_id", array(
67
+ "header" => Mage::helper("itaushopline")->__("Order Increment ID"),
68
+ "align" =>"left",
69
+ "index" => "increment_id",
70
+ ));
71
+ $this->addColumn("number", array(
72
+ "header" => Mage::helper("itaushopline")->__("Number"),
73
+ "align" =>"left",
74
+ "index" => "number",
75
+ ));
76
+ $this->addColumn("expiration", array(
77
+ "header" => Mage::helper("itaushopline")->__("Expiration"),
78
+ "align" => "right",
79
+ "index" => "expiration",
80
+ "type" => "date",
81
+ "renderer" => "utils/adminhtml_widget_grid_column_renderer_expiration",
82
+ ));
83
+ $this->addColumn("amount", array(
84
+ "header" => Mage::helper("itaushopline")->__("Amount"),
85
+ "align" =>"right",
86
+ "index" => "amount",
87
+ "type" => "currency",
88
+ "currency" => "base_currency_code",
89
+ "renderer" => "utils/adminhtml_widget_grid_column_renderer_price"
90
+ ));
91
+
92
+ return parent::_prepareColumns();
93
+ }
94
+
95
+ public function getRowUrl($row)
96
+ {
97
+ return $this->getUrl("*/*/view", array("id" => $row->getId()));
98
+ }
99
+ }
app/code/local/Gamuza/Slips/Block/Bb/Deposit.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Block_Bb_Deposit
29
+ extends Mage_Core_Block_Template
30
+ {
31
+ public function getPaymentInfoHtml ($key, $field)
32
+ {
33
+ $_key = strtolower ($key);
34
+
35
+ return Mage::getStoreConfig ("payment/{$_key}_settings/{$field}");
36
+ }
37
+
38
+ public function _construct ()
39
+ {
40
+ $this->setTemplate ('slips/bb/deposit.phtml');
41
+ }
42
+ }
app/code/local/Gamuza/Slips/Block/Bb/Slip.php ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Block_Bb_Slip
29
+ extends Mage_Core_Block_Template
30
+ {
31
+ public function _getStoreConfig ($key, $field)
32
+ {
33
+ return Mage::getStoreConfig ("payment/{$key}_settings/$field");
34
+ }
35
+
36
+ public function getOrder ()
37
+ {
38
+ return Mage::registry ('current_order');
39
+ }
40
+
41
+ public function getSlipData ()
42
+ {
43
+ $order_id = $this->getOrder()->getId ();
44
+
45
+ $collection = Mage::getModel ('slips/transactions')->getCollection ();
46
+ $collection->getSelect()->where ("order_id={$order_id}");
47
+
48
+ return $collection->load()->getFirstItem()->toArray ();
49
+ }
50
+
51
+ public function getPaymentInfoHtml ($ccType)
52
+ {
53
+ $form = new Varien_Data_Form();
54
+
55
+ /*
56
+ * Slip Settings.
57
+ */
58
+ $fieldset = $form->addFieldset("bb_slip_fieldset", array ("legend" => null));
59
+ $fieldset->addField("tax", "hidden", array(
60
+ "name" => 'tax',
61
+ "value" => $this->_getStoreConfig ($ccType, 'tax'),
62
+ ));
63
+ $fieldset->addField("demonstrative1", "hidden", array(
64
+ "name" => 'demonstrative1',
65
+ "value" => $this->_getStoreConfig ($ccType, 'demonstrative1'),
66
+ ));
67
+ $fieldset->addField("demonstrative2", "hidden", array(
68
+ "name" => 'demonstrative2',
69
+ "value" => $this->_getStoreConfig ($ccType, 'demonstrative2'),
70
+ ));
71
+ $fieldset->addField("demonstrative3", "hidden", array(
72
+ "name" => 'demonstrative3',
73
+ "value" => $this->_getStoreConfig ($ccType, 'demonstrative3'),
74
+ ));
75
+ $fieldset->addField("instructions1", "hidden", array(
76
+ "name" => 'instructions1',
77
+ "value" => $this->_getStoreConfig ($ccType, 'instructions1'),
78
+ ));
79
+ $fieldset->addField("instructions2", "hidden", array(
80
+ "name" => 'instructions2',
81
+ "value" => $this->_getStoreConfig ($ccType, 'instructions2'),
82
+ ));
83
+ $fieldset->addField("instructions3", "hidden", array(
84
+ "name" => 'instructions3',
85
+ "value" => $this->_getStoreConfig ($ccType, 'instructions3'),
86
+ ));
87
+ $fieldset->addField("instructions4", "hidden", array(
88
+ "name" => 'instructions4',
89
+ "value" => $this->_getStoreConfig ($ccType, 'instructions4'),
90
+ ));
91
+ $fieldset->addField("acceptance", "hidden", array(
92
+ "name" => 'acceptance',
93
+ "value" => $this->_getStoreConfig ($ccType, 'acceptance'),
94
+ ));
95
+ $fieldset->addField("specie", "hidden", array(
96
+ "name" => 'specie',
97
+ "value" => $this->_getStoreConfig ($ccType, 'specie'),
98
+ ));
99
+ $fieldset->addField("specie_doc", "hidden", array(
100
+ "name" => 'specie_doc',
101
+ "value" => $this->_getStoreConfig ($ccType, 'specie_doc'),
102
+ ));
103
+ $fieldset->addField("agency", "hidden", array(
104
+ "name" => 'agency',
105
+ "value" => $this->_getStoreConfig ($ccType, 'agency'),
106
+ ));
107
+ $fieldset->addField("account", "hidden", array(
108
+ "name" => 'account',
109
+ "value" => $this->_getStoreConfig ($ccType, 'account'),
110
+ ));
111
+ $fieldset->addField("agreement", "hidden", array(
112
+ "name" => 'agreement',
113
+ "value" => $this->_getStoreConfig ($ccType, 'agreement'),
114
+ ));
115
+ $fieldset->addField("contract", "hidden", array(
116
+ "name" => 'contract',
117
+ "value" => $this->_getStoreConfig ($ccType, 'contract'),
118
+ ));
119
+ $fieldset->addField("portfolio", "hidden", array(
120
+ "name" => 'portfolio',
121
+ "value" => $this->_getStoreConfig ($ccType, 'portfolio'),
122
+ ));
123
+ $fieldset->addField("portfolio_variation", "hidden", array(
124
+ "name" => 'portfolio_variation',
125
+ "value" => $this->_getStoreConfig ($ccType, 'portfolio_variation'),
126
+ ));
127
+
128
+ /*
129
+ * Slip Transaction Data.
130
+ */
131
+ $slip_data = $this->getSlipData ();
132
+
133
+ $fieldset->addField("number", "hidden", array(
134
+ "name" => 'number',
135
+ "value" => $slip_data ['number'],
136
+ ));
137
+ $fieldset->addField("expiration", "hidden", array(
138
+ "name" => 'expiration',
139
+ "value" => $slip_data ['expiration'],
140
+ ));
141
+ $fieldset->addField("amount", "hidden", array(
142
+ "name" => 'amount',
143
+ "value" => $slip_data ['amount'],
144
+ ));
145
+
146
+ /*
147
+ * Order Information.
148
+ */
149
+ $_order = $this->getOrder ();
150
+ $order_id = $_order->getIncrementId ();
151
+ $billing_address = $_order->getBillingAddress ();
152
+ $customer_name = $billing_address->getName ();
153
+ $customer_address = $billing_address->getStreetFull ();
154
+ $customer_city = $billing_address->getCity ();
155
+ $customer_region = $billing_address->getRegion ();
156
+ $customer_postcode = $billing_address->getPostcode ();
157
+ $customer_city_region_postcode = "{$customer_city} - {$customer_region} - {$customer_postcode}";
158
+ $order_items_count = count($_order->getAllVisibleItems ());
159
+ $fieldset->addField("order_id", "hidden", array(
160
+ "name" => 'order_id',
161
+ "value" => $order_id,
162
+ ));
163
+ $fieldset->addField("customer_name", "hidden", array(
164
+ "name" => 'customer_name',
165
+ "value" => $customer_name,
166
+ ));
167
+ $fieldset->addField("customer_address", "hidden", array(
168
+ "name" => 'customer_address',
169
+ "value" => $customer_address,
170
+ ));
171
+ $fieldset->addField("customer_city_region_postcode", "hidden", array(
172
+ "name" => 'customer_city_region_postcode',
173
+ "value" => $customer_city_region_postcode,
174
+ ));
175
+
176
+ /*
177
+ * Company Information.
178
+ */
179
+ $company_address = Mage::getStoreConfig ('general/store_information/address');
180
+ $company_name = Mage::getStoreConfig ('general/store_information/name');
181
+ $company_logo_url = Mage::getStoreConfig ('design/header/logo_src');
182
+ $fieldset->addField("company_address", "hidden", array(
183
+ "name" => 'company_address',
184
+ "value" => $company_address,
185
+ ));
186
+ $fieldset->addField("company_name", "hidden", array(
187
+ "name" => 'company_name',
188
+ "value" => $company_name,
189
+ ));
190
+ $fieldset->addField("company_logo_url", "hidden", array(
191
+ "name" => 'company_logo_url',
192
+ "value" => $this->getSkinUrl ($company_logo_url),
193
+ ));
194
+
195
+ $fieldset->addField("submit", "submit", array(
196
+ "label" => Mage::helper ('slips')->__('Submit this transaction'),
197
+ "value" => Mage::helper ('slips')->__('Submit'),
198
+ ));
199
+
200
+ return $form->toHtml ();
201
+ }
202
+
203
+ public function _construct ()
204
+ {
205
+ $this->setTemplate ('slips/bb/slip.phtml');
206
+ }
207
+ }
app/code/local/Gamuza/Slips/Block/Bradesco/Deposit.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Block_Bradesco_Deposit
29
+ extends Mage_Core_Block_Template
30
+ {
31
+ public function getPaymentInfoHtml ($key, $field)
32
+ {
33
+ $_key = strtolower ($key);
34
+
35
+ return Mage::getStoreConfig ("payment/{$_key}_settings/{$field}");
36
+ }
37
+
38
+ public function _construct ()
39
+ {
40
+ $this->setTemplate ('slips/bradesco/deposit.phtml');
41
+ }
42
+ }
app/code/local/Gamuza/Slips/Block/Bradesco/Slip.php ADDED
@@ -0,0 +1,211 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Block_Bradesco_Slip
29
+ extends Mage_Core_Block_Template
30
+ {
31
+ public function _getStoreConfig ($key, $field)
32
+ {
33
+ return Mage::getStoreConfig ("payment/{$key}_settings/$field");
34
+ }
35
+
36
+ public function getOrder ()
37
+ {
38
+ return Mage::registry ('current_order');
39
+ }
40
+
41
+ public function getSlipData ()
42
+ {
43
+ $order_id = $this->getOrder()->getId ();
44
+
45
+ $collection = Mage::getModel ('slips/transactions')->getCollection ();
46
+ $collection->getSelect()->where ("order_id={$order_id}");
47
+
48
+ return $collection->load()->getFirstItem()->toArray ();
49
+ }
50
+
51
+ public function getPaymentInfoHtml ($ccType)
52
+ {
53
+ $form = new Varien_Data_Form();
54
+
55
+ /*
56
+ * Slip Settings.
57
+ */
58
+ $fieldset = $form->addFieldset("bradesco_slip_fieldset", array ("legend" => null));
59
+ $fieldset->addField("tax", "hidden", array(
60
+ "name" => 'tax',
61
+ "value" => $this->_getStoreConfig ($ccType, 'tax'),
62
+ ));
63
+ $fieldset->addField("demonstrative1", "hidden", array(
64
+ "name" => 'demonstrative1',
65
+ "value" => $this->_getStoreConfig ($ccType, 'demonstrative1'),
66
+ ));
67
+ $fieldset->addField("demonstrative2", "hidden", array(
68
+ "name" => 'demonstrative2',
69
+ "value" => $this->_getStoreConfig ($ccType, 'demonstrative2'),
70
+ ));
71
+ $fieldset->addField("demonstrative3", "hidden", array(
72
+ "name" => 'demonstrative3',
73
+ "value" => $this->_getStoreConfig ($ccType, 'demonstrative3'),
74
+ ));
75
+ $fieldset->addField("instructions1", "hidden", array(
76
+ "name" => 'instructions1',
77
+ "value" => $this->_getStoreConfig ($ccType, 'instructions1'),
78
+ ));
79
+ $fieldset->addField("instructions2", "hidden", array(
80
+ "name" => 'instructions2',
81
+ "value" => $this->_getStoreConfig ($ccType, 'instructions2'),
82
+ ));
83
+ $fieldset->addField("instructions3", "hidden", array(
84
+ "name" => 'instructions3',
85
+ "value" => $this->_getStoreConfig ($ccType, 'instructions3'),
86
+ ));
87
+ $fieldset->addField("instructions4", "hidden", array(
88
+ "name" => 'instructions4',
89
+ "value" => $this->_getStoreConfig ($ccType, 'instructions4'),
90
+ ));
91
+ $fieldset->addField("acceptance", "hidden", array(
92
+ "name" => 'acceptance',
93
+ "value" => $this->_getStoreConfig ($ccType, 'acceptance'),
94
+ ));
95
+ $fieldset->addField("specie", "hidden", array(
96
+ "name" => 'specie',
97
+ "value" => $this->_getStoreConfig ($ccType, 'specie'),
98
+ ));
99
+ $fieldset->addField("specie_doc", "hidden", array(
100
+ "name" => 'specie_doc',
101
+ "value" => $this->_getStoreConfig ($ccType, 'specie_doc'),
102
+ ));
103
+ $fieldset->addField("agency", "hidden", array(
104
+ "name" => 'agency',
105
+ "value" => $this->_getStoreConfig ($ccType, 'agency'),
106
+ ));
107
+ $fieldset->addField("agency_dv", "hidden", array(
108
+ "name" => 'agency_dv',
109
+ "value" => $this->_getStoreConfig ($ccType, 'agency_dv'),
110
+ ));
111
+ $fieldset->addField("account", "hidden", array(
112
+ "name" => 'account',
113
+ "value" => $this->_getStoreConfig ($ccType, 'account'),
114
+ ));
115
+ $fieldset->addField("account_dv", "hidden", array(
116
+ "name" => 'account_dv',
117
+ "value" => $this->_getStoreConfig ($ccType, 'account_dv'),
118
+ ));
119
+ $fieldset->addField("transferor_account", "hidden", array(
120
+ "name" => 'transferor_account',
121
+ "value" => $this->_getStoreConfig ($ccType, 'transferor_account'),
122
+ ));
123
+ $fieldset->addField("transferor_account_dv", "hidden", array(
124
+ "name" => 'transferor_account_dv',
125
+ "value" => $this->_getStoreConfig ($ccType, 'transferor_account_dv'),
126
+ ));
127
+ $fieldset->addField("portofio", "hidden", array(
128
+ "name" => 'portfolio',
129
+ "value" => $this->_getStoreConfig ($ccType, 'portfolio'),
130
+ ));
131
+
132
+ /*
133
+ * Slip Transaction Data.
134
+ */
135
+ $slip_data = $this->getSlipData ();
136
+
137
+ $fieldset->addField("number", "hidden", array(
138
+ "name" => 'number',
139
+ "value" => $slip_data ['number'],
140
+ ));
141
+ $fieldset->addField("expiration", "hidden", array(
142
+ "name" => 'expiration',
143
+ "value" => $slip_data ['expiration'],
144
+ ));
145
+ $fieldset->addField("amount", "hidden", array(
146
+ "name" => 'amount',
147
+ "value" => $slip_data ['amount'],
148
+ ));
149
+
150
+ /*
151
+ * Order Information.
152
+ */
153
+ $_order = $this->getOrder ();
154
+ $order_id = $_order->getIncrementId ();
155
+ $billing_address = $_order->getBillingAddress ();
156
+ $customer_name = $billing_address->getName ();
157
+ $customer_address = $billing_address->getStreetFull ();
158
+ $customer_city = $billing_address->getCity ();
159
+ $customer_region = $billing_address->getRegion ();
160
+ $customer_postcode = $billing_address->getPostcode ();
161
+ $customer_city_region_postcode = "{$customer_city} - {$customer_region} - {$customer_postcode}";
162
+ $order_items_count = count($_order->getAllVisibleItems ());
163
+ $fieldset->addField("order_id", "hidden", array(
164
+ "name" => 'order_id',
165
+ "value" => $order_id,
166
+ ));
167
+ $fieldset->addField("customer_name", "hidden", array(
168
+ "name" => 'customer_name',
169
+ "value" => $customer_name,
170
+ ));
171
+ $fieldset->addField("customer_address", "hidden", array(
172
+ "name" => 'customer_address',
173
+ "value" => $customer_address,
174
+ ));
175
+ $fieldset->addField("customer_city_region_postcode", "hidden", array(
176
+ "name" => 'customer_city_region_postcode',
177
+ "value" => $customer_city_region_postcode,
178
+ ));
179
+
180
+ /*
181
+ * Company Information.
182
+ */
183
+ $company_address = Mage::getStoreConfig ('general/store_information/address');
184
+ $company_name = Mage::getStoreConfig ('general/store_information/name');
185
+ $company_logo_url = Mage::getStoreConfig ('design/header/logo_src');
186
+ $fieldset->addField("company_address", "hidden", array(
187
+ "name" => 'company_address',
188
+ "value" => $company_address,
189
+ ));
190
+ $fieldset->addField("company_name", "hidden", array(
191
+ "name" => 'company_name',
192
+ "value" => $company_name,
193
+ ));
194
+ $fieldset->addField("company_logo_url", "hidden", array(
195
+ "name" => 'company_logo_url',
196
+ "value" => $this->getSkinUrl ($company_logo_url),
197
+ ));
198
+
199
+ $fieldset->addField("submit", "submit", array(
200
+ "label" => Mage::helper ('slips')->__('Submit this transaction'),
201
+ "value" => Mage::helper ('slips')->__('Submit'),
202
+ ));
203
+
204
+ return $form->toHtml ();
205
+ }
206
+
207
+ public function _construct ()
208
+ {
209
+ $this->setTemplate ('slips/bradesco/slip.phtml');
210
+ }
211
+ }
app/code/local/Gamuza/Slips/Block/Cef/Deposit.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Block_Cef_Deposit
29
+ extends Mage_Core_Block_Template
30
+ {
31
+ public function getPaymentInfoHtml ($key, $field)
32
+ {
33
+ $_key = strtolower ($key);
34
+
35
+ return Mage::getStoreConfig ("payment/{$_key}_settings/{$field}");
36
+ }
37
+
38
+ public function _construct ()
39
+ {
40
+ $this->setTemplate ('slips/cef/deposit.phtml');
41
+ }
42
+ }
app/code/local/Gamuza/Slips/Block/Cef/Slip.php ADDED
@@ -0,0 +1,208 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Block_Cef_Slip
29
+ extends Mage_Core_Block_Template
30
+ {
31
+ public function _getStoreConfig ($key, $field)
32
+ {
33
+ return Mage::getStoreConfig ("payment/{$key}_settings/$field");
34
+ }
35
+
36
+ public function getOrder ()
37
+ {
38
+ return Mage::registry ('current_order');
39
+ }
40
+
41
+ public function getSlipData ()
42
+ {
43
+ $order_id = $this->getOrder()->getId ();
44
+
45
+ $collection = Mage::getModel ('slips/transactions')->getCollection ();
46
+ $collection->getSelect()->where ("order_id={$order_id}");
47
+
48
+ return $collection->load()->getFirstItem()->toArray ();
49
+ }
50
+
51
+ public function getPaymentInfoHtml ($ccType)
52
+ {
53
+ $form = new Varien_Data_Form();
54
+
55
+ /*
56
+ * Slip Settings.
57
+ */
58
+ $fieldset = $form->addFieldset("santander_slip_fieldset", array ("legend" => null));
59
+ $fieldset->addField("tax", "hidden", array(
60
+ "name" => 'tax',
61
+ "value" => $this->_getStoreConfig ($ccType, 'tax'),
62
+ ));
63
+ $fieldset->addField("demonstrative1", "hidden", array(
64
+ "name" => 'demonstrative1',
65
+ "value" => $this->_getStoreConfig ($ccType, 'demonstrative1'),
66
+ ));
67
+ $fieldset->addField("demonstrative2", "hidden", array(
68
+ "name" => 'demonstrative2',
69
+ "value" => $this->_getStoreConfig ($ccType, 'demonstrative2'),
70
+ ));
71
+ $fieldset->addField("demonstrative3", "hidden", array(
72
+ "name" => 'demonstrative3',
73
+ "value" => $this->_getStoreConfig ($ccType, 'demonstrative3'),
74
+ ));
75
+ $fieldset->addField("instructions1", "hidden", array(
76
+ "name" => 'instructions1',
77
+ "value" => $this->_getStoreConfig ($ccType, 'instructions1'),
78
+ ));
79
+ $fieldset->addField("instructions2", "hidden", array(
80
+ "name" => 'instructions2',
81
+ "value" => $this->_getStoreConfig ($ccType, 'instructions2'),
82
+ ));
83
+ $fieldset->addField("instructions3", "hidden", array(
84
+ "name" => 'instructions3',
85
+ "value" => $this->_getStoreConfig ($ccType, 'instructions3'),
86
+ ));
87
+ $fieldset->addField("instructions4", "hidden", array(
88
+ "name" => 'instructions4',
89
+ "value" => $this->_getStoreConfig ($ccType, 'instructions4'),
90
+ ));
91
+ $fieldset->addField("acceptance", "hidden", array(
92
+ "name" => 'acceptance',
93
+ "value" => $this->_getStoreConfig ($ccType, 'acceptance'),
94
+ ));
95
+ $fieldset->addField("specie", "hidden", array(
96
+ "name" => 'specie',
97
+ "value" => $this->_getStoreConfig ($ccType, 'specie'),
98
+ ));
99
+ $fieldset->addField("specie_doc", "hidden", array(
100
+ "name" => 'specie_doc',
101
+ "value" => $this->_getStoreConfig ($ccType, 'specie_doc'),
102
+ ));
103
+ $fieldset->addField("agency", "hidden", array(
104
+ "name" => 'agency',
105
+ "value" => $this->_getStoreConfig ($ccType, 'agency'),
106
+ ));
107
+ $fieldset->addField("account", "hidden", array(
108
+ "name" => 'account',
109
+ "value" => $this->_getStoreConfig ($ccType, 'account'),
110
+ ));
111
+ $fieldset->addField("account_dv", "hidden", array(
112
+ "name" => 'account_dv',
113
+ "value" => $this->_getStoreConfig ($ccType, 'account_dv'),
114
+ ));
115
+ $fieldset->addField("transferor_account", "hidden", array(
116
+ "name" => 'transferor_account',
117
+ "value" => $this->_getStoreConfig ($ccType, 'transferor_account'),
118
+ ));
119
+ $fieldset->addField("transferor_account_dv", "hidden", array(
120
+ "name" => 'transferor_account_dv',
121
+ "value" => $this->_getStoreConfig ($ccType, 'transferor_account_dv'),
122
+ ));
123
+ $fieldset->addField("portfolio", "hidden", array(
124
+ "name" => 'portfolio',
125
+ "value" => $this->_getStoreConfig ($ccType, 'portfolio'),
126
+ ));
127
+
128
+ /*
129
+ * Slip Transaction Data.
130
+ */
131
+ $slip_data = $this->getSlipData ();
132
+
133
+ $fieldset->addField("number", "hidden", array(
134
+ "name" => 'number',
135
+ "value" => $slip_data ['number'],
136
+ ));
137
+ $fieldset->addField("expiration", "hidden", array(
138
+ "name" => 'expiration',
139
+ "value" => $slip_data ['expiration'],
140
+ ));
141
+ $fieldset->addField("amount", "hidden", array(
142
+ "name" => 'amount',
143
+ "value" => $slip_data ['amount'],
144
+ ));
145
+
146
+ /*
147
+ * Order Information.
148
+ */
149
+ $prefix = $this->_getStoreConfig ($ccType, 'prefix');
150
+ $_order = $this->getOrder ();
151
+ $order_id = $_order->getIncrementId ();
152
+ $billing_address = $_order->getBillingAddress ();
153
+ $customer_name = $billing_address->getName ();
154
+ $customer_address = $billing_address->getStreetFull ();
155
+ $customer_city = $billing_address->getCity ();
156
+ $customer_region = $billing_address->getRegion ();
157
+ $customer_postcode = $billing_address->getPostcode ();
158
+ $customer_city_region_postcode = "{$customer_city} - {$customer_region} - {$customer_postcode}";
159
+ $order_items_count = count($_order->getAllVisibleItems ());
160
+ $fieldset->addField("order_id", "hidden", array(
161
+ "name" => 'order_id',
162
+ "value" => $prefix . $order_id,
163
+ ));
164
+ $fieldset->addField("customer_name", "hidden", array(
165
+ "name" => 'customer_name',
166
+ "value" => $customer_name,
167
+ ));
168
+ $fieldset->addField("customer_address", "hidden", array(
169
+ "name" => 'customer_address',
170
+ "value" => $customer_address,
171
+ ));
172
+ $fieldset->addField("customer_city_region_postcode", "hidden", array(
173
+ "name" => 'customer_city_region_postcode',
174
+ "value" => $customer_city_region_postcode,
175
+ ));
176
+
177
+ /*
178
+ * Company Information.
179
+ */
180
+ $company_address = Mage::getStoreConfig ('general/store_information/address');
181
+ $company_name = Mage::getStoreConfig ('general/store_information/name');
182
+ $company_logo_url = Mage::getStoreConfig ('design/header/logo_src');
183
+ $fieldset->addField("company_address", "hidden", array(
184
+ "name" => 'company_address',
185
+ "value" => $company_address,
186
+ ));
187
+ $fieldset->addField("company_name", "hidden", array(
188
+ "name" => 'company_name',
189
+ "value" => $company_name,
190
+ ));
191
+ $fieldset->addField("company_logo_url", "hidden", array(
192
+ "name" => 'company_logo_url',
193
+ "value" => $this->getSkinUrl ($company_logo_url),
194
+ ));
195
+
196
+ $fieldset->addField("submit", "submit", array(
197
+ "label" => Mage::helper ('slips')->__('Submit this transaction'),
198
+ "value" => Mage::helper ('slips')->__('Submit'),
199
+ ));
200
+
201
+ return $form->toHtml ();
202
+ }
203
+
204
+ public function _construct ()
205
+ {
206
+ $this->setTemplate ('slips/cef/slip.phtml');
207
+ }
208
+ }
app/code/local/Gamuza/Slips/Block/Hsbc/Deposit.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Block_Hsbc_Deposit
29
+ extends Mage_Core_Block_Template
30
+ {
31
+ public function getPaymentInfoHtml ($key, $field)
32
+ {
33
+ $_key = strtolower ($key);
34
+
35
+ return Mage::getStoreConfig ("payment/{$_key}_settings/{$field}");
36
+ }
37
+
38
+ public function _construct ()
39
+ {
40
+ $this->setTemplate ('slips/hsbc/deposit.phtml');
41
+ }
42
+ }
app/code/local/Gamuza/Slips/Block/Hsbc/Slip.php ADDED
@@ -0,0 +1,191 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Block_Hsbc_Slip
29
+ extends Mage_Core_Block_Template
30
+ {
31
+ public function _getStoreConfig ($key, $field)
32
+ {
33
+ return Mage::getStoreConfig ("payment/{$key}_settings/$field");
34
+ }
35
+
36
+ public function getOrder ()
37
+ {
38
+ return Mage::registry ('current_order');
39
+ }
40
+
41
+ public function getSlipData ()
42
+ {
43
+ $order_id = $this->getOrder()->getId ();
44
+
45
+ $collection = Mage::getModel ('slips/transactions')->getCollection ();
46
+ $collection->getSelect()->where ("order_id={$order_id}");
47
+
48
+ return $collection->load()->getFirstItem()->toArray ();
49
+ }
50
+
51
+ public function getPaymentInfoHtml ($ccType)
52
+ {
53
+ $form = new Varien_Data_Form();
54
+
55
+ /*
56
+ * Slip Settings.
57
+ */
58
+ $fieldset = $form->addFieldset("santander_slip_fieldset", array ("legend" => null));
59
+ $fieldset->addField("tax", "hidden", array(
60
+ "name" => 'tax',
61
+ "value" => $this->_getStoreConfig ($ccType, 'tax'),
62
+ ));
63
+ $fieldset->addField("demonstrative1", "hidden", array(
64
+ "name" => 'demonstrative1',
65
+ "value" => $this->_getStoreConfig ($ccType, 'demonstrative1'),
66
+ ));
67
+ $fieldset->addField("demonstrative2", "hidden", array(
68
+ "name" => 'demonstrative2',
69
+ "value" => $this->_getStoreConfig ($ccType, 'demonstrative2'),
70
+ ));
71
+ $fieldset->addField("demonstrative3", "hidden", array(
72
+ "name" => 'demonstrative3',
73
+ "value" => $this->_getStoreConfig ($ccType, 'demonstrative3'),
74
+ ));
75
+ $fieldset->addField("instructions1", "hidden", array(
76
+ "name" => 'instructions1',
77
+ "value" => $this->_getStoreConfig ($ccType, 'instructions1'),
78
+ ));
79
+ $fieldset->addField("instructions2", "hidden", array(
80
+ "name" => 'instructions2',
81
+ "value" => $this->_getStoreConfig ($ccType, 'instructions2'),
82
+ ));
83
+ $fieldset->addField("instructions3", "hidden", array(
84
+ "name" => 'instructions3',
85
+ "value" => $this->_getStoreConfig ($ccType, 'instructions3'),
86
+ ));
87
+ $fieldset->addField("instructions4", "hidden", array(
88
+ "name" => 'instructions4',
89
+ "value" => $this->_getStoreConfig ($ccType, 'instructions4'),
90
+ ));
91
+ $fieldset->addField("acceptance", "hidden", array(
92
+ "name" => 'acceptance',
93
+ "value" => $this->_getStoreConfig ($ccType, 'acceptance'),
94
+ ));
95
+ $fieldset->addField("specie", "hidden", array(
96
+ "name" => 'specie',
97
+ "value" => $this->_getStoreConfig ($ccType, 'specie'),
98
+ ));
99
+ $fieldset->addField("specie_doc", "hidden", array(
100
+ "name" => 'specie_doc',
101
+ "value" => $this->_getStoreConfig ($ccType, 'specie_doc'),
102
+ ));
103
+ $fieldset->addField("transferor_account", "hidden", array(
104
+ "name" => 'transferor_account',
105
+ "value" => $this->_getStoreConfig ($ccType, 'transferor_account'),
106
+ ));
107
+ $fieldset->addField("portfolio", "hidden", array(
108
+ "name" => 'portfolio',
109
+ "value" => $this->_getStoreConfig ($ccType, 'portfolio'),
110
+ ));
111
+
112
+ /*
113
+ * Slip Transaction Data.
114
+ */
115
+ $slip_data = $this->getSlipData ();
116
+
117
+ $fieldset->addField("number", "hidden", array(
118
+ "name" => 'number',
119
+ "value" => $slip_data ['number'],
120
+ ));
121
+ $fieldset->addField("expiration", "hidden", array(
122
+ "name" => 'expiration',
123
+ "value" => $slip_data ['expiration'],
124
+ ));
125
+ $fieldset->addField("amount", "hidden", array(
126
+ "name" => 'amount',
127
+ "value" => $slip_data ['amount'],
128
+ ));
129
+
130
+ /*
131
+ * Order Information.
132
+ */
133
+ $_order = $this->getOrder ();
134
+ $order_id = $_order->getIncrementId ();
135
+ $billing_address = $_order->getBillingAddress ();
136
+ $customer_name = $billing_address->getName ();
137
+ $customer_address = $billing_address->getStreetFull ();
138
+ $customer_city = $billing_address->getCity ();
139
+ $customer_region = $billing_address->getRegion ();
140
+ $customer_postcode = $billing_address->getPostcode ();
141
+ $customer_city_region_postcode = "{$customer_city} - {$customer_region} - {$customer_postcode}";
142
+ $order_items_count = count($_order->getAllVisibleItems ());
143
+ $fieldset->addField("order_id", "hidden", array(
144
+ "name" => 'order_id',
145
+ "value" => $order_id,
146
+ ));
147
+ $fieldset->addField("customer_name", "hidden", array(
148
+ "name" => 'customer_name',
149
+ "value" => $customer_name,
150
+ ));
151
+ $fieldset->addField("customer_address", "hidden", array(
152
+ "name" => 'customer_address',
153
+ "value" => $customer_address,
154
+ ));
155
+ $fieldset->addField("customer_city_region_postcode", "hidden", array(
156
+ "name" => 'customer_city_region_postcode',
157
+ "value" => $customer_city_region_postcode,
158
+ ));
159
+
160
+ /*
161
+ * Company Information.
162
+ */
163
+ $company_address = Mage::getStoreConfig ('general/store_information/address');
164
+ $company_name = Mage::getStoreConfig ('general/store_information/name');
165
+ $company_logo_url = Mage::getStoreConfig ('design/header/logo_src');
166
+ $fieldset->addField("company_address", "hidden", array(
167
+ "name" => 'company_address',
168
+ "value" => $company_address,
169
+ ));
170
+ $fieldset->addField("company_name", "hidden", array(
171
+ "name" => 'company_name',
172
+ "value" => $company_name,
173
+ ));
174
+ $fieldset->addField("company_logo_url", "hidden", array(
175
+ "name" => 'company_logo_url',
176
+ "value" => $this->getSkinUrl ($company_logo_url),
177
+ ));
178
+
179
+ $fieldset->addField("submit", "submit", array(
180
+ "label" => Mage::helper ('slips')->__('Submit this transaction'),
181
+ "value" => Mage::helper ('slips')->__('Submit'),
182
+ ));
183
+
184
+ return $form->toHtml ();
185
+ }
186
+
187
+ public function _construct ()
188
+ {
189
+ $this->setTemplate ('slips/hsbc/slip.phtml');
190
+ }
191
+ }
app/code/local/Gamuza/Slips/Block/Nossacaixa/Deposit.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Block_Nossacaixa_Deposit
29
+ extends Mage_Core_Block_Template
30
+ {
31
+ public function getPaymentInfoHtml ($key, $field)
32
+ {
33
+ $_key = strtolower ($key);
34
+
35
+ return Mage::getStoreConfig ("payment/{$_key}_settings/{$field}");
36
+ }
37
+
38
+ public function _construct ()
39
+ {
40
+ $this->setTemplate ('slips/nossacaixa/deposit.phtml');
41
+ }
42
+ }
app/code/local/Gamuza/Slips/Block/Nossacaixa/Slip.php ADDED
@@ -0,0 +1,203 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Block_Nossacaixa_Slip
29
+ extends Mage_Core_Block_Template
30
+ {
31
+ public function _getStoreConfig ($key, $field)
32
+ {
33
+ return Mage::getStoreConfig ("payment/{$key}_settings/$field");
34
+ }
35
+
36
+ public function getOrder ()
37
+ {
38
+ return Mage::registry ('current_order');
39
+ }
40
+
41
+ public function getSlipData ()
42
+ {
43
+ $order_id = $this->getOrder()->getId ();
44
+
45
+ $collection = Mage::getModel ('slips/transactions')->getCollection ();
46
+ $collection->getSelect()->where ("order_id={$order_id}");
47
+
48
+ return $collection->load()->getFirstItem()->toArray ();
49
+ }
50
+
51
+ public function getPaymentInfoHtml ($ccType)
52
+ {
53
+ $form = new Varien_Data_Form();
54
+
55
+ /*
56
+ * Slip Settings.
57
+ */
58
+ $fieldset = $form->addFieldset("santander_slip_fieldset", array ("legend" => null));
59
+ $fieldset->addField("tax", "hidden", array(
60
+ "name" => 'tax',
61
+ "value" => $this->_getStoreConfig ($ccType, 'tax'),
62
+ ));
63
+ $fieldset->addField("demonstrative1", "hidden", array(
64
+ "name" => 'demonstrative1',
65
+ "value" => $this->_getStoreConfig ($ccType, 'demonstrative1'),
66
+ ));
67
+ $fieldset->addField("demonstrative2", "hidden", array(
68
+ "name" => 'demonstrative2',
69
+ "value" => $this->_getStoreConfig ($ccType, 'demonstrative2'),
70
+ ));
71
+ $fieldset->addField("demonstrative3", "hidden", array(
72
+ "name" => 'demonstrative3',
73
+ "value" => $this->_getStoreConfig ($ccType, 'demonstrative3'),
74
+ ));
75
+ $fieldset->addField("instructions1", "hidden", array(
76
+ "name" => 'instructions1',
77
+ "value" => $this->_getStoreConfig ($ccType, 'instructions1'),
78
+ ));
79
+ $fieldset->addField("instructions2", "hidden", array(
80
+ "name" => 'instructions2',
81
+ "value" => $this->_getStoreConfig ($ccType, 'instructions2'),
82
+ ));
83
+ $fieldset->addField("instructions3", "hidden", array(
84
+ "name" => 'instructions3',
85
+ "value" => $this->_getStoreConfig ($ccType, 'instructions3'),
86
+ ));
87
+ $fieldset->addField("instructions4", "hidden", array(
88
+ "name" => 'instructions4',
89
+ "value" => $this->_getStoreConfig ($ccType, 'instructions4'),
90
+ ));
91
+ $fieldset->addField("acceptance", "hidden", array(
92
+ "name" => 'acceptance',
93
+ "value" => $this->_getStoreConfig ($ccType, 'acceptance'),
94
+ ));
95
+ $fieldset->addField("specie", "hidden", array(
96
+ "name" => 'specie',
97
+ "value" => $this->_getStoreConfig ($ccType, 'specie'),
98
+ ));
99
+ $fieldset->addField("specie_doc", "hidden", array(
100
+ "name" => 'specie_doc',
101
+ "value" => $this->_getStoreConfig ($ccType, 'specie_doc'),
102
+ ));
103
+ $fieldset->addField("agency", "hidden", array(
104
+ "name" => 'agency',
105
+ "value" => $this->_getStoreConfig ($ccType, 'agency'),
106
+ ));
107
+ $fieldset->addField("transferor_account", "hidden", array(
108
+ "name" => 'transferor_account',
109
+ "value" => $this->_getStoreConfig ($ccType, 'transferor_account'),
110
+ ));
111
+ $fieldset->addField("transferor_account_dv", "hidden", array(
112
+ "name" => 'transferor_account_dv',
113
+ "value" => $this->_getStoreConfig ($ccType, 'transferor_account_dv'),
114
+ ));
115
+ $fieldset->addField("portfolio", "hidden", array(
116
+ "name" => 'portfolio',
117
+ "value" => $this->_getStoreConfig ($ccType, 'portfolio'),
118
+ ));
119
+ $fieldset->addField("modality_account", "hidden", array(
120
+ "name" => 'modality_account',
121
+ "value" => $this->_getStoreConfig ($ccType, 'modality_account'),
122
+ ));
123
+
124
+ /*
125
+ * Slip Transaction Data.
126
+ */
127
+ $slip_data = $this->getSlipData ();
128
+
129
+ $fieldset->addField("number", "hidden", array(
130
+ "name" => 'number',
131
+ "value" => $slip_data ['number'],
132
+ ));
133
+ $fieldset->addField("expiration", "hidden", array(
134
+ "name" => 'expiration',
135
+ "value" => $slip_data ['expiration'],
136
+ ));
137
+ $fieldset->addField("amount", "hidden", array(
138
+ "name" => 'amount',
139
+ "value" => $slip_data ['amount'],
140
+ ));
141
+
142
+ /*
143
+ * Order Information.
144
+ */
145
+ $_order = $this->getOrder ();
146
+ $order_id = $_order->getIncrementId ();
147
+ $billing_address = $_order->getBillingAddress ();
148
+ $customer_name = $billing_address->getName ();
149
+ $customer_address = $billing_address->getStreetFull ();
150
+ $customer_city = $billing_address->getCity ();
151
+ $customer_region = $billing_address->getRegion ();
152
+ $customer_postcode = $billing_address->getPostcode ();
153
+ $customer_city_region_postcode = "{$customer_city} - {$customer_region} - {$customer_postcode}";
154
+ $order_items_count = count($_order->getAllVisibleItems ());
155
+ $fieldset->addField("order_id", "hidden", array(
156
+ "name" => 'order_id',
157
+ "value" => $order_id,
158
+ ));
159
+ $fieldset->addField("customer_name", "hidden", array(
160
+ "name" => 'customer_name',
161
+ "value" => $customer_name,
162
+ ));
163
+ $fieldset->addField("customer_address", "hidden", array(
164
+ "name" => 'customer_address',
165
+ "value" => $customer_address,
166
+ ));
167
+ $fieldset->addField("customer_city_region_postcode", "hidden", array(
168
+ "name" => 'customer_city_region_postcode',
169
+ "value" => $customer_city_region_postcode,
170
+ ));
171
+
172
+ /*
173
+ * Company Information.
174
+ */
175
+ $company_address = Mage::getStoreConfig ('general/store_information/address');
176
+ $company_name = Mage::getStoreConfig ('general/store_information/name');
177
+ $company_logo_url = Mage::getStoreConfig ('design/header/logo_src');
178
+ $fieldset->addField("company_address", "hidden", array(
179
+ "name" => 'company_address',
180
+ "value" => $company_address,
181
+ ));
182
+ $fieldset->addField("company_name", "hidden", array(
183
+ "name" => 'company_name',
184
+ "value" => $company_name,
185
+ ));
186
+ $fieldset->addField("company_logo_url", "hidden", array(
187
+ "name" => 'company_logo_url',
188
+ "value" => $this->getSkinUrl ($company_logo_url),
189
+ ));
190
+
191
+ $fieldset->addField("submit", "submit", array(
192
+ "label" => Mage::helper ('slips')->__('Submit this transaction'),
193
+ "value" => Mage::helper ('slips')->__('Submit'),
194
+ ));
195
+
196
+ return $form->toHtml ();
197
+ }
198
+
199
+ public function _construct ()
200
+ {
201
+ $this->setTemplate ('slips/nossacaixa/slip.phtml');
202
+ }
203
+ }
app/code/local/Gamuza/Slips/Block/Real/Deposit.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Block_Real_Deposit
29
+ extends Mage_Core_Block_Template
30
+ {
31
+ public function getPaymentInfoHtml ($key, $field)
32
+ {
33
+ $_key = strtolower ($key);
34
+
35
+ return Mage::getStoreConfig ("payment/{$_key}_settings/{$field}");
36
+ }
37
+
38
+ public function _construct ()
39
+ {
40
+ $this->setTemplate ('slips/real/deposit.phtml');
41
+ }
42
+ }
app/code/local/Gamuza/Slips/Block/Real/Slip.php ADDED
@@ -0,0 +1,195 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Block_Real_Slip
29
+ extends Mage_Core_Block_Template
30
+ {
31
+ public function _getStoreConfig ($key, $field)
32
+ {
33
+ return Mage::getStoreConfig ("payment/{$key}_settings/$field");
34
+ }
35
+
36
+ public function getOrder ()
37
+ {
38
+ return Mage::registry ('current_order');
39
+ }
40
+
41
+ public function getSlipData ()
42
+ {
43
+ $order_id = $this->getOrder()->getId ();
44
+
45
+ $collection = Mage::getModel ('slips/transactions')->getCollection ();
46
+ $collection->getSelect()->where ("order_id={$order_id}");
47
+
48
+ return $collection->load()->getFirstItem()->toArray ();
49
+ }
50
+
51
+ public function getPaymentInfoHtml ($ccType)
52
+ {
53
+ $form = new Varien_Data_Form();
54
+
55
+ /*
56
+ * Slip Settings.
57
+ */
58
+ $fieldset = $form->addFieldset("santander_slip_fieldset", array ("legend" => null));
59
+ $fieldset->addField("tax", "hidden", array(
60
+ "name" => 'tax',
61
+ "value" => $this->_getStoreConfig ($ccType, 'tax'),
62
+ ));
63
+ $fieldset->addField("demonstrative1", "hidden", array(
64
+ "name" => 'demonstrative1',
65
+ "value" => $this->_getStoreConfig ($ccType, 'demonstrative1'),
66
+ ));
67
+ $fieldset->addField("demonstrative2", "hidden", array(
68
+ "name" => 'demonstrative2',
69
+ "value" => $this->_getStoreConfig ($ccType, 'demonstrative2'),
70
+ ));
71
+ $fieldset->addField("demonstrative3", "hidden", array(
72
+ "name" => 'demonstrative3',
73
+ "value" => $this->_getStoreConfig ($ccType, 'demonstrative3'),
74
+ ));
75
+ $fieldset->addField("instructions1", "hidden", array(
76
+ "name" => 'instructions1',
77
+ "value" => $this->_getStoreConfig ($ccType, 'instructions1'),
78
+ ));
79
+ $fieldset->addField("instructions2", "hidden", array(
80
+ "name" => 'instructions2',
81
+ "value" => $this->_getStoreConfig ($ccType, 'instructions2'),
82
+ ));
83
+ $fieldset->addField("instructions3", "hidden", array(
84
+ "name" => 'instructions3',
85
+ "value" => $this->_getStoreConfig ($ccType, 'instructions3'),
86
+ ));
87
+ $fieldset->addField("instructions4", "hidden", array(
88
+ "name" => 'instructions4',
89
+ "value" => $this->_getStoreConfig ($ccType, 'instructions4'),
90
+ ));
91
+ $fieldset->addField("acceptance", "hidden", array(
92
+ "name" => 'acceptance',
93
+ "value" => $this->_getStoreConfig ($ccType, 'acceptance'),
94
+ ));
95
+ $fieldset->addField("specie", "hidden", array(
96
+ "name" => 'specie',
97
+ "value" => $this->_getStoreConfig ($ccType, 'specie'),
98
+ ));
99
+ $fieldset->addField("specie_doc", "hidden", array(
100
+ "name" => 'specie_doc',
101
+ "value" => $this->_getStoreConfig ($ccType, 'specie_doc'),
102
+ ));
103
+ $fieldset->addField("agency", "hidden", array(
104
+ "name" => 'agency',
105
+ "value" => $this->_getStoreConfig ($ccType, 'agency'),
106
+ ));
107
+ $fieldset->addField("account", "hidden", array(
108
+ "name" => 'account',
109
+ "value" => $this->_getStoreConfig ($ccType, 'account'),
110
+ ));
111
+ $fieldset->addField("portfolio", "hidden", array(
112
+ "name" => 'portfolio',
113
+ "value" => $this->_getStoreConfig ($ccType, 'portfolio'),
114
+ ));
115
+
116
+ /*
117
+ * Slip Transaction Data.
118
+ */
119
+ $slip_data = $this->getSlipData ();
120
+
121
+ $fieldset->addField("number", "hidden", array(
122
+ "name" => 'number',
123
+ "value" => $slip_data ['number'],
124
+ ));
125
+ $fieldset->addField("expiration", "hidden", array(
126
+ "name" => 'expiration',
127
+ "value" => $slip_data ['expiration'],
128
+ ));
129
+ $fieldset->addField("amount", "hidden", array(
130
+ "name" => 'amount',
131
+ "value" => $slip_data ['amount'],
132
+ ));
133
+
134
+ /*
135
+ * Order Information.
136
+ */
137
+ $_order = $this->getOrder ();
138
+ $order_id = $_order->getIncrementId ();
139
+ $billing_address = $_order->getBillingAddress ();
140
+ $customer_name = $billing_address->getName ();
141
+ $customer_address = $billing_address->getStreetFull ();
142
+ $customer_city = $billing_address->getCity ();
143
+ $customer_region = $billing_address->getRegion ();
144
+ $customer_postcode = $billing_address->getPostcode ();
145
+ $customer_city_region_postcode = "{$customer_city} - {$customer_region} - {$customer_postcode}";
146
+ $order_items_count = count($_order->getAllVisibleItems ());
147
+ $fieldset->addField("order_id", "hidden", array(
148
+ "name" => 'order_id',
149
+ "value" => $order_id,
150
+ ));
151
+ $fieldset->addField("customer_name", "hidden", array(
152
+ "name" => 'customer_name',
153
+ "value" => $customer_name,
154
+ ));
155
+ $fieldset->addField("customer_address", "hidden", array(
156
+ "name" => 'customer_address',
157
+ "value" => $customer_address,
158
+ ));
159
+ $fieldset->addField("customer_city_region_postcode", "hidden", array(
160
+ "name" => 'customer_city_region_postcode',
161
+ "value" => $customer_city_region_postcode,
162
+ ));
163
+
164
+ /*
165
+ * Company Information.
166
+ */
167
+ $company_address = Mage::getStoreConfig ('general/store_information/address');
168
+ $company_name = Mage::getStoreConfig ('general/store_information/name');
169
+ $company_logo_url = Mage::getStoreConfig ('design/header/logo_src');
170
+ $fieldset->addField("company_address", "hidden", array(
171
+ "name" => 'company_address',
172
+ "value" => $company_address,
173
+ ));
174
+ $fieldset->addField("company_name", "hidden", array(
175
+ "name" => 'company_name',
176
+ "value" => $company_name,
177
+ ));
178
+ $fieldset->addField("company_logo_url", "hidden", array(
179
+ "name" => 'company_logo_url',
180
+ "value" => $this->getSkinUrl ($company_logo_url),
181
+ ));
182
+
183
+ $fieldset->addField("submit", "submit", array(
184
+ "label" => Mage::helper ('slips')->__('Submit this transaction'),
185
+ "value" => Mage::helper ('slips')->__('Submit'),
186
+ ));
187
+
188
+ return $form->toHtml ();
189
+ }
190
+
191
+ public function _construct ()
192
+ {
193
+ $this->setTemplate ('slips/real/slip.phtml');
194
+ }
195
+ }
app/code/local/Gamuza/Slips/Block/Santander/Deposit.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Block_Santander_Deposit
29
+ extends Mage_Core_Block_Template
30
+ {
31
+ public function getPaymentInfoHtml ($key, $field)
32
+ {
33
+ $_key = strtolower ($key);
34
+
35
+ return Mage::getStoreConfig ("payment/{$_key}_settings/{$field}");
36
+ }
37
+
38
+ public function _construct ()
39
+ {
40
+ $this->setTemplate ('slips/santander/deposit.phtml');
41
+ }
42
+ }
app/code/local/Gamuza/Slips/Block/Santander/Slip.php ADDED
@@ -0,0 +1,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Block_Santander_Slip
29
+ extends Mage_Core_Block_Template
30
+ {
31
+ public function _getStoreConfig ($key, $field)
32
+ {
33
+ return Mage::getStoreConfig ("payment/{$key}_settings/$field");
34
+ }
35
+
36
+ public function getOrder ()
37
+ {
38
+ return Mage::registry ('current_order');
39
+ }
40
+
41
+ public function getSlipData ()
42
+ {
43
+ $order_id = $this->getOrder()->getId ();
44
+
45
+ $collection = Mage::getModel ('slips/transactions')->getCollection ();
46
+ $collection->getSelect()->where ("order_id={$order_id}");
47
+
48
+ return $collection->load()->getFirstItem()->toArray ();
49
+ }
50
+
51
+ public function getPaymentInfoHtml ($ccType)
52
+ {
53
+ $form = new Varien_Data_Form();
54
+
55
+ /*
56
+ * Slip Settings.
57
+ */
58
+ $fieldset = $form->addFieldset("santander_slip_fieldset", array ("legend" => null));
59
+ $fieldset->addField("tax", "hidden", array(
60
+ "name" => 'tax',
61
+ "value" => $this->_getStoreConfig ($ccType, 'tax'),
62
+ ));
63
+ $fieldset->addField("demonstrative1", "hidden", array(
64
+ "name" => 'demonstrative1',
65
+ "value" => $this->_getStoreConfig ($ccType, 'demonstrative1'),
66
+ ));
67
+ $fieldset->addField("demonstrative2", "hidden", array(
68
+ "name" => 'demonstrative2',
69
+ "value" => $this->_getStoreConfig ($ccType, 'demonstrative2'),
70
+ ));
71
+ $fieldset->addField("demonstrative3", "hidden", array(
72
+ "name" => 'demonstrative3',
73
+ "value" => $this->_getStoreConfig ($ccType, 'demonstrative3'),
74
+ ));
75
+ $fieldset->addField("instructions1", "hidden", array(
76
+ "name" => 'instructions1',
77
+ "value" => $this->_getStoreConfig ($ccType, 'instructions1'),
78
+ ));
79
+ $fieldset->addField("instructions2", "hidden", array(
80
+ "name" => 'instructions2',
81
+ "value" => $this->_getStoreConfig ($ccType, 'instructions2'),
82
+ ));
83
+ $fieldset->addField("instructions3", "hidden", array(
84
+ "name" => 'instructions3',
85
+ "value" => $this->_getStoreConfig ($ccType, 'instructions3'),
86
+ ));
87
+ $fieldset->addField("instructions4", "hidden", array(
88
+ "name" => 'instructions4',
89
+ "value" => $this->_getStoreConfig ($ccType, 'instructions4'),
90
+ ));
91
+ $fieldset->addField("acceptance", "hidden", array(
92
+ "name" => 'acceptance',
93
+ "value" => $this->_getStoreConfig ($ccType, 'acceptance'),
94
+ ));
95
+ $fieldset->addField("specie", "hidden", array(
96
+ "name" => 'specie',
97
+ "value" => $this->_getStoreConfig ($ccType, 'specie'),
98
+ ));
99
+ $fieldset->addField("specie_doc", "hidden", array(
100
+ "name" => 'specie_doc',
101
+ "value" => $this->_getStoreConfig ($ccType, 'specie_doc'),
102
+ ));
103
+ $fieldset->addField("client_code", "hidden", array(
104
+ "name" => 'client_code',
105
+ "value" => $this->_getStoreConfig ($ccType, 'client_code'),
106
+ ));
107
+ $fieldset->addField("outlet", "hidden", array(
108
+ "name" => 'outlet',
109
+ "value" => $this->_getStoreConfig ($ccType, 'outlet'),
110
+ ));
111
+ $fieldset->addField("portfolio", "hidden", array(
112
+ "name" => 'portfolio',
113
+ "value" => $this->_getStoreConfig ($ccType, 'portfolio'),
114
+ ));
115
+ $fieldset->addField("portfolio_description", "hidden", array(
116
+ "name" => 'portfolio_description',
117
+ "value" => $this->_getStoreConfig ($ccType, 'portfolio_description'),
118
+ ));
119
+
120
+ /*
121
+ * Slip Transaction Data.
122
+ */
123
+ $slip_data = $this->getSlipData ();
124
+
125
+ $fieldset->addField("number", "hidden", array(
126
+ "name" => 'number',
127
+ "value" => $slip_data ['number'],
128
+ ));
129
+ $fieldset->addField("expiration", "hidden", array(
130
+ "name" => 'expiration',
131
+ "value" => $slip_data ['expiration'],
132
+ ));
133
+ $fieldset->addField("amount", "hidden", array(
134
+ "name" => 'amount',
135
+ "value" => $slip_data ['amount'],
136
+ ));
137
+
138
+ /*
139
+ * Order Information.
140
+ */
141
+ $_order = $this->getOrder ();
142
+ $order_id = $_order->getIncrementId ();
143
+ $billing_address = $_order->getBillingAddress ();
144
+ $customer_name = $billing_address->getName ();
145
+ $customer_address = $billing_address->getStreetFull ();
146
+ $customer_city = $billing_address->getCity ();
147
+ $customer_region = $billing_address->getRegion ();
148
+ $customer_postcode = $billing_address->getPostcode ();
149
+ $customer_city_region_postcode = "{$customer_city} - {$customer_region} - {$customer_postcode}";
150
+ $order_items_count = count($_order->getAllVisibleItems ());
151
+ $fieldset->addField("order_id", "hidden", array(
152
+ "name" => 'order_id',
153
+ "value" => $order_id,
154
+ ));
155
+ $fieldset->addField("customer_name", "hidden", array(
156
+ "name" => 'customer_name',
157
+ "value" => $customer_name,
158
+ ));
159
+ $fieldset->addField("customer_address", "hidden", array(
160
+ "name" => 'customer_address',
161
+ "value" => $customer_address,
162
+ ));
163
+ $fieldset->addField("customer_city_region_postcode", "hidden", array(
164
+ "name" => 'customer_city_region_postcode',
165
+ "value" => $customer_city_region_postcode,
166
+ ));
167
+
168
+ /*
169
+ * Company Information.
170
+ */
171
+ $company_address = Mage::getStoreConfig ('general/store_information/address');
172
+ $company_name = Mage::getStoreConfig ('general/store_information/name');
173
+ $company_logo_url = Mage::getStoreConfig ('design/header/logo_src');
174
+ $fieldset->addField("company_address", "hidden", array(
175
+ "name" => 'company_address',
176
+ "value" => $company_address,
177
+ ));
178
+ $fieldset->addField("company_name", "hidden", array(
179
+ "name" => 'company_name',
180
+ "value" => $company_name,
181
+ ));
182
+ $fieldset->addField("company_logo_url", "hidden", array(
183
+ "name" => 'company_logo_url',
184
+ "value" => $this->getSkinUrl ($company_logo_url),
185
+ ));
186
+
187
+ $fieldset->addField("submit", "submit", array(
188
+ "label" => Mage::helper ('slips')->__('Submit this transaction'),
189
+ "value" => Mage::helper ('slips')->__('Submit'),
190
+ ));
191
+
192
+ return $form->toHtml ();
193
+ }
194
+
195
+ public function _construct ()
196
+ {
197
+ $this->setTemplate ('slips/santander/slip.phtml');
198
+ }
199
+ }
app/code/local/Gamuza/Slips/Block/Standard/Form.php ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Block_Standard_Form
29
+ extends Mage_Payment_Block_Form
30
+ {
31
+ protected function _construct()
32
+ {
33
+ parent::_construct();
34
+
35
+ $this->setTemplate('slips/standard/form.phtml');
36
+ }
37
+
38
+ protected function _getConfig()
39
+ {
40
+ return Mage::getSingleton('slips/config');
41
+ }
42
+
43
+ public function getAvailableCcTypes()
44
+ {
45
+ $types = $this->_getConfig()->getCcTypes();
46
+ if ($method = $this->getMethod()) {
47
+ $availableTypes = $method->getConfigData('cctypes');
48
+ if ($availableTypes) {
49
+ $availableTypes = explode(',', $availableTypes);
50
+ foreach ($types as $code=>$name) {
51
+ if (!in_array($code, $availableTypes)) {
52
+ unset($types[$code]);
53
+ }
54
+ }
55
+ }
56
+ }
57
+
58
+ return $types;
59
+ }
60
+
61
+ protected function _toHtml()
62
+ {
63
+ Mage::dispatchEvent('payment_form_block_to_html_before', array(
64
+ 'block' => $this
65
+ ));
66
+
67
+ return parent::_toHtml();
68
+ }
69
+
70
+ public function _getStoreConfig ($key, $field)
71
+ {
72
+ $_key = strtolower ($key);
73
+
74
+ return Mage::getStoreConfig ("payment/{$_key}_settings/{$field}");
75
+ }
76
+ }
app/code/local/Gamuza/Slips/Block/Standard/Info.php ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Block_Standard_Info
29
+ extends Mage_Payment_Block_Info
30
+ {
31
+ protected function _construct ()
32
+ {
33
+ $this->setTemplate ('slips/standard/info.phtml');
34
+ }
35
+
36
+ public function getCcTypeName()
37
+ {
38
+ $types = Mage::getSingleton('slips/config')->getCcTypes();
39
+ $ccType = $this->getInfo()->getCcType();
40
+ if (isset($types[$ccType])) {
41
+ return $types[$ccType];
42
+ }
43
+ return (empty($ccType)) ? Mage::helper('slips')->__('N/A') : $ccType;
44
+ }
45
+
46
+ protected function _prepareSpecificInformation($transport = null)
47
+ {
48
+ if (null !== $this->_paymentSpecificInformation) {
49
+ return $this->_paymentSpecificInformation;
50
+ }
51
+ $transport = parent::_prepareSpecificInformation($transport);
52
+ $data = array();
53
+ if ($ccType = $this->getCcTypeName()) {
54
+ $data[Mage::helper('slips')->__('Type')] = Mage::helper ('slips')->__($ccType);
55
+ }
56
+ return $transport->setData(array_merge($data, $transport->getData()));
57
+ }
58
+
59
+ public function getOrder()
60
+ {
61
+ return Mage::registry('current_order');
62
+ }
63
+
64
+ public function _getStoreConfig ($field)
65
+ {
66
+ return Mage::getStoreConfig ("payment/slips_settings/{$field}");
67
+ }
68
+
69
+ public function getPaymentInfoHtml ()
70
+ {
71
+ if (!strcmp ($this->getRequest()->getRouteName (), 'checkout')
72
+ && !strcmp ($this->getRequest()->getControllerName (), 'onepage')
73
+ && !strcmp ($this->getRequest()->getActionName (), 'progress')) return;
74
+
75
+ if ($this->getOrder () == NULL) return;
76
+
77
+ $ccType = strtolower ($this->getInfo ()->getCcType ());
78
+
79
+ return Mage::app()->getLayout ()->createBlock ("slips/$ccType")->setCcType ($ccType)->toHtml ();
80
+ }
81
+ }
app/code/local/Gamuza/Slips/Block/Unibanco/Deposit.php ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Arquivo: Deposit.php
4
+ Resumo: Este módulo oferece a funcionalidade de Boletos e Depósitos.
5
+ Versão: 0.0.1
6
+ Autor: Eneias Ramos de Melo <eneias@gamuza.com.br>
7
+
8
+ Aviso: IMPORTANTE: Este software da Gamuza é fornecido a você pela Gamuza Technologies ("Gamuza"),
9
+ em consideração do seu consentimento para o seguintes termos, e seu uso, instalação,
10
+ sem modificação ou redistribuição deste software da Gamuza constitui aceitação destes termos.
11
+ Se você não concordar com estes termos, por favor não utilizar, instalar,
12
+ modificar ou redistribuir este software da Gamuza.
13
+
14
+ Em relação ao seu acordo para cumprir com os seguintes termos e sujeito a estes termos,
15
+ a Gamuza lhe concede uma licença pessoal, licença não-exclusiva,
16
+ sob direitos autorais da Gamuza neste software original da Gamuza (o "Software Gamuza"),
17
+ para utilizar, reproduzir, sem modificar ou redistribuir o Software Gamuza,
18
+ em formas de código-fonte e/ou binário.
19
+ Você deve manter este aviso e os seguintes textos e renúncias em todas as distribuições do Software Gamuza.
20
+ Nem o nome, marcas comerciais, marcas de serviço ou logotipos da Gamuza Techlogies
21
+ podem ser usados para endossar ou promover produtos derivados do Software Gamuza
22
+ sem prévia permissão por escrito da Gamuza.
23
+ Exceto como expressamente previsto no presente aviso, nenhum outro direito ou licenças,
24
+ expressa ou implícita, é concedida no presente documento pela Gamuza, incluindo mas não limitado
25
+ a qualquer direitos de patentes que podem ser violadas por seus trabalhos derivados
26
+ ou de outras obras em que o Software Gamuza podem ser incorporados.
27
+
28
+ O Software Gamuza é fornecido pela Gamuza em um "COMO ESTÁ".
29
+ GAMUZA NÃO DÁ NENHUMA GARANTIA, EXPRESSA OU IMPLÍCITA, INCLUINDO,
30
+ SEM LIMITAÇÃO AS GARANTIAS DE NÃO-INFRAÇÃO, COMERCIALIZAÇÃO E ADEQUAÇÃO PARA UM DETERMINADO FIM,
31
+ COM RESPEITO AO SOFTWARE GAMUZA OU SEU USO E OPERAÇÃO SOZINHO OU EM CONJUNTO COM SEUS PRODUTOS.
32
+
33
+ EM HIPÓTESE ALGUMA A GAMUZA SERÁ RESPONSÁVEL POR QUAISQUER DANOS ESPECIAIS, INDIRETOS,
34
+ EMERGENTES OU DANOS (INCLUINDO, MAS NÃO LIMITADO À AQUISIÇÃO DE SUBSTITUIR PRODUTOS OU SERVIÇOS,
35
+ PERDA DE USO, DADOS OU LUCROS OU INTERRUPÇÃO DE NEGÓCIO) DECORRENTE DE QUALQUER FORMA DE UTILIZAÇÃO,
36
+ REPRODUÇÃO, SEM MODIFICAÇÃO OU DISTRIBUIÇÃO DO SOFTWARE GAMUZA,
37
+ CAUSADOS E SEJA EM TEORIA DE CONTRATO, ATO ILÍCITO (INCLUINDO NEGLIGÊNCIA)
38
+ RESPONSABILIDADE OBJETIVA OU DE OUTRA FORMA, MESMO QUE TENHA SIDO AVISADO PELA GAMUZA
39
+ DA POSSIBILIDADE DE DANO.
40
+
41
+ Consulte os termos e condições referentes às licenças de software da Gamuza.
42
+ Acesse a página de informações legais da Gamuza no endereço: www.gamuza.com.br/legal/sla
43
+
44
+ Copyright (C) 2012 Gamuza Technologies. Todos os direitos reservados.
45
+ */
46
+
47
+ class Gamuza_Slips_Block_Unibanco_Deposit
48
+ extends Mage_Core_Block_Template
49
+ {
50
+ public function getPaymentInfoHtml ($key, $field)
51
+ {
52
+ $_key = strtolower ($key);
53
+
54
+ return Mage::getStoreConfig ("payment/{$_key}_settings/{$field}");
55
+ }
56
+
57
+ public function _construct ()
58
+ {
59
+ $this->setTemplate ('slips/unibanco/deposit.phtml');
60
+ }
61
+ }
app/code/local/Gamuza/Slips/Block/Unibanco/Slip.php ADDED
@@ -0,0 +1,222 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Arquivo: Slip.php
4
+ Resumo: Este módulo oferece a funcionalidade de Boletos e Depósitos.
5
+ Versão: 0.0.1
6
+ Autor: Eneias Ramos de Melo <eneias@gamuza.com.br>
7
+
8
+ Aviso: IMPORTANTE: Este software da Gamuza é fornecido a você pela Gamuza Technologies ("Gamuza"),
9
+ em consideração do seu consentimento para o seguintes termos, e seu uso, instalação,
10
+ sem modificação ou redistribuição deste software da Gamuza constitui aceitação destes termos.
11
+ Se você não concordar com estes termos, por favor não utilizar, instalar,
12
+ modificar ou redistribuir este software da Gamuza.
13
+
14
+ Em relação ao seu acordo para cumprir com os seguintes termos e sujeito a estes termos,
15
+ a Gamuza lhe concede uma licença pessoal, licença não-exclusiva,
16
+ sob direitos autorais da Gamuza neste software original da Gamuza (o "Software Gamuza"),
17
+ para utilizar, reproduzir, sem modificar ou redistribuir o Software Gamuza,
18
+ em formas de código-fonte e/ou binário.
19
+ Você deve manter este aviso e os seguintes textos e renúncias em todas as distribuições do Software Gamuza.
20
+ Nem o nome, marcas comerciais, marcas de serviço ou logotipos da Gamuza Techlogies
21
+ podem ser usados para endossar ou promover produtos derivados do Software Gamuza
22
+ sem prévia permissão por escrito da Gamuza.
23
+ Exceto como expressamente previsto no presente aviso, nenhum outro direito ou licenças,
24
+ expressa ou implícita, é concedida no presente documento pela Gamuza, incluindo mas não limitado
25
+ a qualquer direitos de patentes que podem ser violadas por seus trabalhos derivados
26
+ ou de outras obras em que o Software Gamuza podem ser incorporados.
27
+
28
+ O Software Gamuza é fornecido pela Gamuza em um "COMO ESTÁ".
29
+ GAMUZA NÃO DÁ NENHUMA GARANTIA, EXPRESSA OU IMPLÍCITA, INCLUINDO,
30
+ SEM LIMITAÇÃO AS GARANTIAS DE NÃO-INFRAÇÃO, COMERCIALIZAÇÃO E ADEQUAÇÃO PARA UM DETERMINADO FIM,
31
+ COM RESPEITO AO SOFTWARE GAMUZA OU SEU USO E OPERAÇÃO SOZINHO OU EM CONJUNTO COM SEUS PRODUTOS.
32
+
33
+ EM HIPÓTESE ALGUMA A GAMUZA SERÁ RESPONSÁVEL POR QUAISQUER DANOS ESPECIAIS, INDIRETOS,
34
+ EMERGENTES OU DANOS (INCLUINDO, MAS NÃO LIMITADO À AQUISIÇÃO DE SUBSTITUIR PRODUTOS OU SERVIÇOS,
35
+ PERDA DE USO, DADOS OU LUCROS OU INTERRUPÇÃO DE NEGÓCIO) DECORRENTE DE QUALQUER FORMA DE UTILIZAÇÃO,
36
+ REPRODUÇÃO, SEM MODIFICAÇÃO OU DISTRIBUIÇÃO DO SOFTWARE GAMUZA,
37
+ CAUSADOS E SEJA EM TEORIA DE CONTRATO, ATO ILÍCITO (INCLUINDO NEGLIGÊNCIA)
38
+ RESPONSABILIDADE OBJETIVA OU DE OUTRA FORMA, MESMO QUE TENHA SIDO AVISADO PELA GAMUZA
39
+ DA POSSIBILIDADE DE DANO.
40
+
41
+ Consulte os termos e condições referentes às licenças de software da Gamuza.
42
+ Acesse a página de informações legais da Gamuza no endereço: www.gamuza.com.br/legal/sla
43
+
44
+ Copyright (C) 2012 Gamuza Technologies. Todos os direitos reservados.
45
+ */
46
+
47
+ class Gamuza_Slips_Block_Unibanco_Slip
48
+ extends Mage_Core_Block_Template
49
+ {
50
+ public function _getStoreConfig ($key, $field)
51
+ {
52
+ return Mage::getStoreConfig ("payment/{$key}_settings/$field");
53
+ }
54
+
55
+ public function getOrder ()
56
+ {
57
+ return Mage::registry ('current_order');
58
+ }
59
+
60
+ public function getSlipData ()
61
+ {
62
+ $order_id = $this->getOrder()->getId ();
63
+
64
+ $collection = Mage::getModel ('slips/transactions')->getCollection ();
65
+ $collection->getSelect()->where ("order_id={$order_id}");
66
+
67
+ return $collection->load()->getFirstItem()->toArray ();
68
+ }
69
+
70
+ public function getPaymentInfoHtml ($ccType)
71
+ {
72
+ $form = new Varien_Data_Form();
73
+
74
+ /*
75
+ * Slip Settings.
76
+ */
77
+ $fieldset = $form->addFieldset("santander_slip_fieldset", array ("legend" => null));
78
+ $fieldset->addField("tax", "hidden", array(
79
+ "name" => 'tax',
80
+ "value" => $this->_getStoreConfig ($ccType, 'tax'),
81
+ ));
82
+ $fieldset->addField("demonstrative1", "hidden", array(
83
+ "name" => 'demonstrative1',
84
+ "value" => $this->_getStoreConfig ($ccType, 'demonstrative1'),
85
+ ));
86
+ $fieldset->addField("demonstrative2", "hidden", array(
87
+ "name" => 'demonstrative2',
88
+ "value" => $this->_getStoreConfig ($ccType, 'demonstrative2'),
89
+ ));
90
+ $fieldset->addField("demonstrative3", "hidden", array(
91
+ "name" => 'demonstrative3',
92
+ "value" => $this->_getStoreConfig ($ccType, 'demonstrative3'),
93
+ ));
94
+ $fieldset->addField("instructions1", "hidden", array(
95
+ "name" => 'instructions1',
96
+ "value" => $this->_getStoreConfig ($ccType, 'instructions1'),
97
+ ));
98
+ $fieldset->addField("instructions2", "hidden", array(
99
+ "name" => 'instructions2',
100
+ "value" => $this->_getStoreConfig ($ccType, 'instructions2'),
101
+ ));
102
+ $fieldset->addField("instructions3", "hidden", array(
103
+ "name" => 'instructions3',
104
+ "value" => $this->_getStoreConfig ($ccType, 'instructions3'),
105
+ ));
106
+ $fieldset->addField("instructions4", "hidden", array(
107
+ "name" => 'instructions4',
108
+ "value" => $this->_getStoreConfig ($ccType, 'instructions4'),
109
+ ));
110
+ $fieldset->addField("acceptance", "hidden", array(
111
+ "name" => 'acceptance',
112
+ "value" => $this->_getStoreConfig ($ccType, 'acceptance'),
113
+ ));
114
+ $fieldset->addField("specie", "hidden", array(
115
+ "name" => 'specie',
116
+ "value" => $this->_getStoreConfig ($ccType, 'specie'),
117
+ ));
118
+ $fieldset->addField("specie_doc", "hidden", array(
119
+ "name" => 'specie_doc',
120
+ "value" => $this->_getStoreConfig ($ccType, 'specie_doc'),
121
+ ));
122
+ $fieldset->addField("agency", "hidden", array(
123
+ "name" => 'agency',
124
+ "value" => $this->_getStoreConfig ($ccType, 'agency'),
125
+ ));
126
+ $fieldset->addField("account", "hidden", array(
127
+ "name" => 'account',
128
+ "value" => $this->_getStoreConfig ($ccType, 'account'),
129
+ ));
130
+ $fieldset->addField("account_dv", "hidden", array(
131
+ "name" => 'account_dv',
132
+ "value" => $this->_getStoreConfig ($ccType, 'account_dv'),
133
+ ));
134
+ $fieldset->addField("client_code", "hidden", array(
135
+ "name" => 'client_code',
136
+ "value" => $this->_getStoreConfig ($ccType, 'client_code'),
137
+ ));
138
+ $fieldset->addField("portfolio", "hidden", array(
139
+ "name" => 'portfolio',
140
+ "value" => $this->_getStoreConfig ($ccType, 'portfolio'),
141
+ ));
142
+
143
+ /*
144
+ * Slip Transaction Data.
145
+ */
146
+ $slip_data = $this->getSlipData ();
147
+
148
+ $fieldset->addField("number", "hidden", array(
149
+ "name" => 'number',
150
+ "value" => $slip_data ['number'],
151
+ ));
152
+ $fieldset->addField("expiration", "hidden", array(
153
+ "name" => 'expiration',
154
+ "value" => $slip_data ['expiration'],
155
+ ));
156
+ $fieldset->addField("amount", "hidden", array(
157
+ "name" => 'amount',
158
+ "value" => $slip_data ['amount'],
159
+ ));
160
+
161
+ /*
162
+ * Order Information.
163
+ */
164
+ $_order = $this->getOrder ();
165
+ $order_id = $_order->getIncrementId ();
166
+ $billing_address = $_order->getBillingAddress ();
167
+ $customer_name = $billing_address->getName ();
168
+ $customer_address = $billing_address->getStreetFull ();
169
+ $customer_city = $billing_address->getCity ();
170
+ $customer_region = $billing_address->getRegion ();
171
+ $customer_postcode = $billing_address->getPostcode ();
172
+ $customer_city_region_postcode = "{$customer_city} - {$customer_region} - {$customer_postcode}";
173
+ $order_items_count = count($_order->getAllVisibleItems ());
174
+ $fieldset->addField("order_id", "hidden", array(
175
+ "name" => 'order_id',
176
+ "value" => $order_id,
177
+ ));
178
+ $fieldset->addField("customer_name", "hidden", array(
179
+ "name" => 'customer_name',
180
+ "value" => $customer_name,
181
+ ));
182
+ $fieldset->addField("customer_address", "hidden", array(
183
+ "name" => 'customer_address',
184
+ "value" => $customer_address,
185
+ ));
186
+ $fieldset->addField("customer_city_region_postcode", "hidden", array(
187
+ "name" => 'customer_city_region_postcode',
188
+ "value" => $customer_city_region_postcode,
189
+ ));
190
+
191
+ /*
192
+ * Company Information.
193
+ */
194
+ $company_address = Mage::getStoreConfig ('general/store_information/address');
195
+ $company_name = Mage::getStoreConfig ('general/store_information/name');
196
+ $company_logo_url = Mage::getStoreConfig ('design/header/logo_src');
197
+ $fieldset->addField("company_address", "hidden", array(
198
+ "name" => 'company_address',
199
+ "value" => $company_address,
200
+ ));
201
+ $fieldset->addField("company_name", "hidden", array(
202
+ "name" => 'company_name',
203
+ "value" => $company_name,
204
+ ));
205
+ $fieldset->addField("company_logo_url", "hidden", array(
206
+ "name" => 'company_logo_url',
207
+ "value" => $this->getSkinUrl ($company_logo_url),
208
+ ));
209
+
210
+ $fieldset->addField("submit", "submit", array(
211
+ "label" => Mage::helper ('slips')->__('Submit this transaction'),
212
+ "value" => Mage::helper ('slips')->__('Submit'),
213
+ ));
214
+
215
+ return $form->toHtml ();
216
+ }
217
+
218
+ public function _construct ()
219
+ {
220
+ $this->setTemplate ('slips/unibanco/slip.phtml');
221
+ }
222
+ }
app/code/local/Gamuza/Slips/Helper/Data.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Helper_Data
29
+ extends Mage_Core_Helper_Abstract
30
+ {
31
+ }
app/code/local/Gamuza/Slips/Model/Config.php ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Model_Config
29
+ {
30
+ protected static $_methods;
31
+
32
+ public function getActiveMethods($store=null)
33
+ {
34
+ $methods = array();
35
+ $config = Mage::getStoreConfig('slips', $store);
36
+ foreach ($config as $code => $methodConfig) {
37
+ if (Mage::getStoreConfigFlag('slips/'.$code.'/active', $store)) {
38
+ if (array_key_exists('model', $methodConfig)) {
39
+ $methodModel = Mage::getModel($methodConfig['model']);
40
+ if ($methodModel && $methodModel->getConfigData('active', $store)) {
41
+ $methods[$code] = $this->_getMethod($code, $methodConfig);
42
+ }
43
+ }
44
+ }
45
+ }
46
+
47
+ return $methods;
48
+ }
49
+
50
+ public function getCcTypes()
51
+ {
52
+ $_types = Mage::getConfig()->getNode('global/payment/slips/types')->asArray();
53
+
54
+ // uasort($_types, array('Mage_Payment_Model_Config', 'compareCcTypes'));
55
+
56
+ $types = array();
57
+ foreach ($_types as $data) {
58
+ if (isset($data['code']) && isset($data['name'])) {
59
+ $types[$data['code']] = $data['name'];
60
+ }
61
+ }
62
+ return $types;
63
+ }
64
+ }
app/code/local/Gamuza/Slips/Model/Mysql4/Transactions.php ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Model_Mysql4_Transactions
29
+ extends Mage_Core_Model_Mysql4_Abstract
30
+ {
31
+ protected function _construct()
32
+ {
33
+ $this->_init("slips/transactions", "id");
34
+ }
35
+ }
app/code/local/Gamuza/Slips/Model/Mysql4/Transactions/Collection.php ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Model_Mysql4_Transactions_Collection
29
+ extends Mage_Core_Model_Mysql4_Collection_Abstract
30
+ {
31
+ public function _construct()
32
+ {
33
+ $this->_init("slips/transactions");
34
+ }
35
+ }
app/code/local/Gamuza/Slips/Model/Observer/Invoice.php ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Model_Observer_Invoice
29
+ {
30
+ public function capture ($observer)
31
+ {
32
+ $event = $observer->getEvent ();
33
+ $invoice = $event->getInvoice ();
34
+ if ($invoice->canCapture()) $invoice->capture()->save ();
35
+
36
+ return $this;
37
+ }
38
+ }
app/code/local/Gamuza/Slips/Model/Standard.php ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Model_Standard
29
+ extends Mage_Payment_Model_Method_Abstract
30
+ {
31
+
32
+ protected $_code = 'slips_standard';
33
+
34
+ protected $_canAuthorize = true;
35
+ protected $_canCapture = true;
36
+
37
+ protected $_formBlockType = 'slips/standard_form';
38
+ protected $_infoBlockType = 'slips/standard_info';
39
+
40
+ public function _getOrderPlaceRedirectUrl ()
41
+ {
42
+ return Mage::getUrl ('slips/standard/redirect', array ('_secure' => true));
43
+ }
44
+
45
+ public function _getOrderIncrementPrefix ($order_store_id)
46
+ {
47
+ $order_entity_type = Mage::getModel('eav/entity_type')->loadByCode ('order');
48
+ $order_entity_type_id = $order_entity_type->getId ();
49
+ $order_entity_type_increment_per_store = $order_entity_type->getIncrementPerStore ();
50
+ if ($order_entity_type_increment_per_store)
51
+ {
52
+ $order_entity_type_pad_length = $order_entity_type->getIncrementPadLength ();
53
+ $order_entity_type_pad_char = $order_entity_type->getIncrementPadChar ();
54
+ $order_entity_store_increment_prefix = Mage::getModel ('eav/entity_store')->loadByEntityStore ($order_entity_type_id, $order_store_id)->getIncrementPrefix ();
55
+
56
+ return (int) $order_entity_store_increment_prefix . str_pad ('0', $order_entity_type_pad_length, $order_entity_type_pad_char);
57
+ }
58
+
59
+ return 0;
60
+ }
61
+
62
+ public function _getStoreConfig ($key, $field)
63
+ {
64
+ $_key = strtolower ($key);
65
+
66
+ return Mage::getStoreConfig ("payment/{$_key}_settings/$field");
67
+ }
68
+
69
+ public function authorize (Varien_Object $payment, $amount)
70
+ {
71
+ $order = $payment->getOrder ();
72
+ $order_id = $order->getId ();
73
+ $order_increment_id = $order->getIncrementId ();
74
+ $store_id = $order->getStoreId ();
75
+
76
+ $ccType = $payment->getCcType ();
77
+
78
+ $expiration = strtotime ('+' . $this->_getStoreConfig ($ccType, 'expiration') . 'days');
79
+ $transaction_expiration = date ('Y-m-d', $expiration);
80
+ $increment = $this->_getStoreConfig ('slips', 'order_id_increment');
81
+
82
+ $order_increment_prefix = $this->_getOrderIncrementPrefix ($store_id);
83
+ $number = ($order_increment_id - $order_increment_prefix) + $increment;
84
+
85
+ $data = array ('order_id' => $order_id, 'amount' => $amount, 'expiration' => $transaction_expiration, 'number' => $number);
86
+ $result = Mage::helper ('utils')->insert ('gamuza_slips_transactions', $data);
87
+ if (!$result)
88
+ {
89
+ Mage::throwException(Mage::helper ('slips')->__('Unable to save the Slip and Deposit informations. Please verify your database.'));
90
+ }
91
+
92
+ $this->setStore($payment->getOrder()->getStoreId());
93
+ $payment->setAmount($amount);
94
+ $payment->setLastTransId($order_id);
95
+ $payment->setStatus(self::STATUS_APPROVED);
96
+
97
+ return $this;
98
+ }
99
+
100
+ }
app/code/local/Gamuza/Slips/Model/System/Config/Source/Order/Status.php ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Model_System_Config_Source_Order_Status
29
+ extends Mage_Adminhtml_Model_System_Config_Source_Order_Status
30
+ {
31
+ // set null to enable all possible
32
+ protected $_stateStatuses = array(
33
+ Mage_Sales_Model_Order::STATE_NEW,
34
+ Mage_Sales_Model_Order::STATE_PENDING_PAYMENT,
35
+ /*
36
+ Mage_Sales_Model_Order::STATE_PROCESSING,
37
+ Mage_Sales_Model_Order::STATE_COMPLETE,
38
+ Mage_Sales_Model_Order::STATE_CLOSED,
39
+ Mage_Sales_Model_Order::STATE_CANCELED,
40
+ Mage_Sales_Model_Order::STATE_HOLDED,
41
+ */
42
+ );
43
+ }
app/code/local/Gamuza/Slips/Model/System/Config/Source/Payment/Types.php ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Model_System_Config_Source_Payment_Types
29
+ {
30
+ public function toOptionArray()
31
+ {
32
+ $options = array();
33
+
34
+ foreach (Mage::getSingleton('slips/config')->getCcTypes() as $code => $name) {
35
+ $options[] = array(
36
+ 'value' => $code,
37
+ 'label' => Mage::helper ('slips')->__($name),
38
+ );
39
+ }
40
+
41
+ return $options;
42
+ }
43
+ }
app/code/local/Gamuza/Slips/Model/Transactions.php ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Model_Transactions
29
+ extends Mage_Core_Model_Abstract
30
+ {
31
+ protected function _construct()
32
+ {
33
+ $this->_init("slips/transactions");
34
+ }
35
+ }
app/code/local/Gamuza/Slips/controllers/Adminhtml/TransactionsController.php ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_Adminhtml_TransactionsController
29
+ extends Mage_Adminhtml_Controller_Action
30
+ {
31
+ protected function _initAction()
32
+ {
33
+ $this->loadLayout()->_setActiveMenu("slips/transactions")->_addBreadcrumb(Mage::helper("adminhtml")->__("Transactions Manager"),Mage::helper("adminhtml")->__("Transactions Manager"));
34
+
35
+ return $this;
36
+ }
37
+
38
+ public function indexAction()
39
+ {
40
+ $this->_initAction();
41
+ $this->renderLayout();
42
+ }
43
+
44
+ public function viewAction()
45
+ {
46
+ $brandsId = $this->getRequest()->getParam("id");
47
+ $brandsModel = Mage::getModel("slips/transactions")->load($brandsId);
48
+ if ($brandsModel->getId() || $brandsId == 0) {
49
+ Mage::register("slips_data", $brandsModel);
50
+ $this->loadLayout();
51
+ $this->_setActiveMenu("slips/transactions");
52
+ $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Slip and Deposit Transactions Manager"), Mage::helper("adminhtml")->__("Slip and Deposit Transactions Manager"));
53
+ $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Slip and Deposit Transactions Description"), Mage::helper("adminhtml")->__("Slip and Deposit Transactions Description"));
54
+ $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
55
+ $this->_addContent($this->getLayout()->createBlock("slips/adminhtml_transactions_edit"))->_addLeft($this->getLayout()->createBlock("slips/adminhtml_transactions_edit_tabs"));
56
+ $this->renderLayout();
57
+ }
58
+ else
59
+ {
60
+ Mage::getSingleton("adminhtml/session")->addError(Mage::helper("slips")->__("Item does not exist."));
61
+
62
+ $this->_redirect("*/*/");
63
+ }
64
+ }
65
+ }
app/code/local/Gamuza/Slips/controllers/StandardController.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Slips_StandardController
29
+ extends Mage_Core_Controller_Front_Action
30
+ {
31
+ }
app/code/local/Gamuza/Slips/etc/adminhtml.xml ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!--
3
+ /*
4
+ * Gamuza Slips - Slips and Deposits for Magento platform.
5
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ *
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
+ * Library General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA 02110-1301, USA.
21
+ */
22
+
23
+ /*
24
+ * See the AUTHORS file for a list of people on the Gamuza Team.
25
+ * See the ChangeLog files for a list of changes.
26
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
27
+ */
28
+ -->
29
+
30
+ <config>
31
+ <menu>
32
+ <gamuza translate="title" module="slips">
33
+ <title>Gamuza</title>
34
+ <sort_order>1000</sort_order>
35
+ <children>
36
+ <slips_transactions translate="title" module="slips">
37
+ <title>Manage Slip and Deposit Transactions</title>
38
+ <action>slips/adminhtml_transactions</action>
39
+ <sort_order>2000</sort_order>
40
+ </slips_transactions>
41
+ </children>
42
+ </gamuza>
43
+ </menu>
44
+ <acl>
45
+ <resources>
46
+ <admin>
47
+ <children>
48
+ <system>
49
+ <children>
50
+ <config>
51
+ <children>
52
+ <payment translate="title" module="slips">
53
+ <title>Gamuza Slips and Deposits Section</title>
54
+ <sort_order>2000</sort_order>
55
+ </payment>
56
+ </children>
57
+ </config>
58
+ </children>
59
+ </system>
60
+ <gamuza translate="title" module="slips">
61
+ <title>Gamuza</title>
62
+ <sort_order>1000</sort_order>
63
+ <children>
64
+ <slips_transactions translate="title" module="slips">
65
+ <title>Manage Slip and Deposit Transactions</title>
66
+ <sort_order>2000</sort_order>
67
+ </slips_transactions>
68
+ </children>
69
+ </gamuza>
70
+ </children>
71
+ </admin>
72
+ </resources>
73
+ </acl>
74
+ </config>
app/code/local/Gamuza/Slips/etc/config.xml ADDED
@@ -0,0 +1,276 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!--
3
+ /*
4
+ * Gamuza Slips - Slips and Deposits for Magento platform.
5
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ *
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
+ * Library General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA 02110-1301, USA.
21
+ */
22
+
23
+ /*
24
+ * See the AUTHORS file for a list of people on the Gamuza Team.
25
+ * See the ChangeLog files for a list of changes.
26
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
27
+ */
28
+ -->
29
+
30
+ <config>
31
+ <modules>
32
+ <Gamuza_Slips>
33
+ <version>0.0.1</version>
34
+ </Gamuza_Slips>
35
+ </modules>
36
+ <global>
37
+ <helpers>
38
+ <slips>
39
+ <class>Gamuza_Slips_Helper</class>
40
+ </slips>
41
+ </helpers>
42
+ <blocks>
43
+ <slips>
44
+ <class>Gamuza_Slips_Block</class>
45
+ </slips>
46
+ </blocks>
47
+ <models>
48
+ <slips>
49
+ <class>Gamuza_Slips_Model</class>
50
+ <resourceModel>slips_mysql4</resourceModel>
51
+ </slips>
52
+ <slips_mysql4>
53
+ <class>Gamuza_Slips_Model_Mysql4</class>
54
+ <entities>
55
+ <transactions>
56
+ <table>gamuza_slips_transactions</table>
57
+ </transactions>
58
+ </entities>
59
+ </slips_mysql4>
60
+ </models>
61
+ <resources>
62
+ <slips_setup>
63
+ <setup>
64
+ <module>Gamuza_Slips</module>
65
+ </setup>
66
+ <connection>
67
+ <use>core_setup</use>
68
+ </connection>
69
+ </slips_setup>
70
+ <slips_write>
71
+ <connection>
72
+ <use>core_write</use>
73
+ </connection>
74
+ </slips_write>
75
+ <slips_read>
76
+ <connection>
77
+ <use>core_read</use>
78
+ </connection>
79
+ </slips_read>
80
+ </resources>
81
+ <payment>
82
+ <slips>
83
+ <types>
84
+ <BRADESCO_DEPOSIT>
85
+ <code>BRADESCO_DEPOSIT</code>
86
+ <name>Bradesco Deposit</name>
87
+ <order>0</order>
88
+ </BRADESCO_DEPOSIT>
89
+ <BRADESCO_SLIP>
90
+ <code>BRADESCO_SLIP</code>
91
+ <name>Bradesco Slip</name>
92
+ <order>1</order>
93
+ </BRADESCO_SLIP>
94
+ <SANTANDER_DEPOSIT>
95
+ <code>SANTANDER_DEPOSIT</code>
96
+ <name>Santander Deposit</name>
97
+ <order>0</order>
98
+ </SANTANDER_DEPOSIT>
99
+ <SANTANDER_SLIP>
100
+ <code>SANTANDER_SLIP</code>
101
+ <name>Santander Slip</name>
102
+ <order>1</order>
103
+ </SANTANDER_SLIP>
104
+ <BB_DEPOSIT>
105
+ <code>BB_DEPOSIT</code>
106
+ <name>Banco do Brasil Deposit</name>
107
+ <order>0</order>
108
+ </BB_DEPOSIT>
109
+ <BB_SLIP>
110
+ <code>BB_SLIP</code>
111
+ <name>Banco do Brasil Slip</name>
112
+ <order>1</order>
113
+ </BB_SLIP>
114
+ <UNIBANCO_DEPOSIT>
115
+ <code>UNIBANCO_DEPOSIT</code>
116
+ <name>Unibanco Deposit</name>
117
+ <order>0</order>
118
+ </UNIBANCO_DEPOSIT>
119
+ <UNIBANCO_SLIP>
120
+ <code>UNIBANCO_SLIP</code>
121
+ <name>Unibanco Slip</name>
122
+ <order>1</order>
123
+ </UNIBANCO_SLIP>
124
+ <CEF_DEPOSIT>
125
+ <code>CEF_DEPOSIT</code>
126
+ <name>CEF Deposit</name>
127
+ <order>0</order>
128
+ </CEF_DEPOSIT>
129
+ <CEF_SLIP>
130
+ <code>CEF_SLIP</code>
131
+ <name>CEF Slip</name>
132
+ <order>1</order>
133
+ </CEF_SLIP>
134
+ <HSBC_DEPOSIT>
135
+ <code>HSBC_DEPOSIT</code>
136
+ <name>HSBC Deposit</name>
137
+ <order>0</order>
138
+ </HSBC_DEPOSIT>
139
+ <HSBC_SLIP>
140
+ <code>HSBC_SLIP</code>
141
+ <name>HSBC Slip</name>
142
+ <order>1</order>
143
+ </HSBC_SLIP>
144
+ <REAL_DEPOSIT>
145
+ <code>REAL_DEPOSIT</code>
146
+ <name>Real Deposit</name>
147
+ <order>0</order>
148
+ </REAL_DEPOSIT>
149
+ <REAL_SLIP>
150
+ <code>REAL_SLIP</code>
151
+ <name>Real Slip</name>
152
+ <order>1</order>
153
+ </REAL_SLIP>
154
+ <NOSSACAIXA_DEPOSIT>
155
+ <code>NOSSACAIXA_DEPOSIT</code>
156
+ <name>Nossa Caixa Deposit</name>
157
+ <order>0</order>
158
+ </NOSSACAIXA_DEPOSIT>
159
+ <NOSSACAIXA_SLIP>
160
+ <code>NOSSACAIXA_SLIP</code>
161
+ <name>Nossa Caixa Slip</name>
162
+ <order>1</order>
163
+ </NOSSACAIXA_SLIP>
164
+ </types>
165
+ </slips>
166
+ </payment>
167
+ <events>
168
+ <sales_order_invoice_register>
169
+ <observers>
170
+ <gamuza_slips_observer_invoice_register>
171
+ <type>singleton</type>
172
+ <class>slips/observer_invoice</class>
173
+ <method>capture</method>
174
+ </gamuza_slips_observer_invoice_register>
175
+ </observers>
176
+ </sales_order_invoice_register>
177
+ </events>
178
+ </global>
179
+ <admin>
180
+ <routers>
181
+ <slips>
182
+ <use>admin</use>
183
+ <args>
184
+ <module>Gamuza_Slips</module>
185
+ <frontName>slips</frontName>
186
+ </args>
187
+ </slips>
188
+ </routers>
189
+ </admin>
190
+ <frontend>
191
+ <routers>
192
+ <slips>
193
+ <use>standard</use>
194
+ <args>
195
+ <module>Gamuza_Slips</module>
196
+ <frontname>slips</frontname>
197
+ </args>
198
+ </slips>
199
+ </routers>
200
+ <layout>
201
+ <updates>
202
+ <slips>
203
+ <file>slips.xml</file>
204
+ </slips>
205
+ </updates>
206
+ </layout>
207
+ <translate>
208
+ <modules>
209
+ <Gamuza_Slips>
210
+ <files>
211
+ <default>Gamuza_Slips.csv</default>
212
+ </files>
213
+ </Gamuza_Slips>
214
+ </modules>
215
+ </translate>
216
+ </frontend>
217
+ <adminhtml>
218
+ <translate>
219
+ <modules>
220
+ <Gamuza_Slips>
221
+ <files>
222
+ <default>Gamuza_Slips.csv</default>
223
+ </files>
224
+ </Gamuza_Slips>
225
+ </modules>
226
+ </translate>
227
+ <layout>
228
+ <updates>
229
+ <slips>
230
+ <file>slips.xml</file>
231
+ </slips>
232
+ </updates>
233
+ </layout>
234
+ </adminhtml>
235
+ <default>
236
+ <payment>
237
+ <slips_standard>
238
+ <active>1</active>
239
+ <title>Slips and Desposits</title>
240
+ <order_status>pending_payment</order_status>
241
+ <cctypes>
242
+ BRADESCO_DEPOSIT,BRADESCO_SLIP,SANTANDER_DEPOSIT,SANTANDER_SLIP,
243
+ BB_DEPOSIT,BB_SLIP,UNIBANCO_DEPOSIT,UNIBANCO_SLIP,
244
+ CEF_DEPOSIT,CEF_SLIP,HSBC_DEPOSIT,HSBC_SLIP
245
+ REAL_DEPOSIT,REAL_SLIP,NOSSACAIXA_DEPOSIT,NOSSACAIXA_SLIP
246
+ </cctypes>
247
+ <model>slips/standard</model>
248
+ <payment_action>authorize</payment_action>
249
+ </slips_standard>
250
+ <bradesco_slip_settings>
251
+ <submit_url>http://slips.gamuza.com.br/bradesco.php</submit_url>
252
+ </bradesco_slip_settings>
253
+ <santander_slip_settings>
254
+ <submit_url>http://slips.gamuza.com.br/santander.php</submit_url>
255
+ </santander_slip_settings>
256
+ <bb_slip_settings>
257
+ <submit_url>http://slips.gamuza.com.br/bb.php</submit_url>
258
+ </bb_slip_settings>
259
+ <unibanco_slip_settings>
260
+ <submit_url>http://slips.gamuza.com.br/unibanco.php</submit_url>
261
+ </unibanco_slip_settings>
262
+ <cef_slip_settings>
263
+ <submit_url>http://slips.gamuza.com.br/cef.php</submit_url>
264
+ </cef_slip_settings>
265
+ <hsbc_slip_settings>
266
+ <submit_url>http://slips.gamuza.com.br/hsbc.php</submit_url>
267
+ </hsbc_slip_settings>
268
+ <real_slip_settings>
269
+ <submit_url>http://slips.gamuza.com.br/real.php</submit_url>
270
+ </real_slip_settings>
271
+ <nossacaixa_slip_settings>
272
+ <submit_url>http://slips.gamuza.com.br/nossacaixa.php</submit_url>
273
+ </nossacaixa_slip_settings>
274
+ </payment>
275
+ </default>
276
+ </config>
app/code/local/Gamuza/Slips/etc/system.xml ADDED
@@ -0,0 +1,1520 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!--
3
+ /*
4
+ * Gamuza Slips - Slips and Deposits for Magento platform.
5
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ *
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
+ * Library General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA 02110-1301, USA.
21
+ */
22
+
23
+ /*
24
+ * See the AUTHORS file for a list of people on the Gamuza Team.
25
+ * See the ChangeLog files for a list of changes.
26
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
27
+ */
28
+ -->
29
+
30
+ <config>
31
+ <tabs>
32
+ <gamuza translate="label" module="slips">
33
+ <label>Gamuza</label>
34
+ <sort_order>0</sort_order>
35
+ </gamuza>
36
+ </tabs>
37
+ <sections>
38
+ <payment translate="label" module="slips">
39
+ <tab>gamuza</tab>
40
+ <sort_order>2000</sort_order>
41
+ <groups>
42
+ <slips_standard translate="label" module="slips">
43
+ <label>Slips and Deposits</label>
44
+ <frontend_type>text</frontend_type>
45
+ <sort_order>0</sort_order>
46
+ <show_in_default>1</show_in_default>
47
+ <show_in_website>1</show_in_website>
48
+ <show_in_store>1</show_in_store>
49
+ <fields>
50
+ <active translate="label">
51
+ <label>Enabled</label>
52
+ <frontend_type>select</frontend_type>
53
+ <source_model>adminhtml/system_config_source_yesno</source_model>
54
+ <sort_order>0</sort_order>
55
+ <show_in_default>1</show_in_default>
56
+ <show_in_website>1</show_in_website>
57
+ <show_in_store>1</show_in_store>
58
+ </active>
59
+ <title translate="label">
60
+ <label>Title</label>
61
+ <frontend_type>text</frontend_type>
62
+ <sort_order>1</sort_order>
63
+ <show_in_default>1</show_in_default>
64
+ <show_in_website>1</show_in_website>
65
+ <show_in_store>1</show_in_store>
66
+ </title>
67
+ <order_status translate="label">
68
+ <label>New Order Status</label>
69
+ <frontend_type>select</frontend_type>
70
+ <source_model>slips/system_config_source_order_status</source_model>
71
+ <sort_order>2</sort_order>
72
+ <show_in_default>1</show_in_default>
73
+ <show_in_website>1</show_in_website>
74
+ <show_in_store>1</show_in_store>
75
+ </order_status>
76
+ <cctypes translate="label">
77
+ <label>Slip and Desposit Types</label>
78
+ <frontend_type>multiselect</frontend_type>
79
+ <source_model>slips/system_config_source_payment_types</source_model>
80
+ <sort_order>3</sort_order>
81
+ <show_in_default>1</show_in_default>
82
+ <show_in_website>1</show_in_website>
83
+ <show_in_store>1</show_in_store>
84
+ <can_be_empty>0</can_be_empty>
85
+ </cctypes>
86
+ <allowspecific translate="label">
87
+ <label>Payment Applicable From</label>
88
+ <frontend_type>select</frontend_type>
89
+ <sort_order>4</sort_order>
90
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
91
+ <show_in_default>1</show_in_default>
92
+ <show_in_website>1</show_in_website>
93
+ <show_in_store>1</show_in_store>
94
+ </allowspecific>
95
+ <specificcountry translate="label">
96
+ <label>Countries Payment Applicable From</label>
97
+ <frontend_type>multiselect</frontend_type>
98
+ <sort_order>5</sort_order>
99
+ <source_model>adminhtml/system_config_source_country</source_model>
100
+ <show_in_default>1</show_in_default>
101
+ <show_in_website>1</show_in_website>
102
+ <show_in_store>1</show_in_store>
103
+ <depends><allowspecific>1</allowspecific></depends>
104
+ </specificcountry>
105
+ <sort_order translate="label">
106
+ <label>Sort Order</label>
107
+ <frontend_type>text</frontend_type>
108
+ <sort_order>6</sort_order>
109
+ <show_in_default>1</show_in_default>
110
+ <show_in_website>1</show_in_website>
111
+ <show_in_store>1</show_in_store>
112
+ </sort_order>
113
+ </fields>
114
+ </slips_standard>
115
+ <slips_settings>
116
+ <label>Slips and Deposits - Settings</label>
117
+ <frontend_type>text</frontend_type>
118
+ <sort_order>0</sort_order>
119
+ <show_in_default>1</show_in_default>
120
+ <show_in_website>1</show_in_website>
121
+ <show_in_store>1</show_in_store>
122
+ <fields>
123
+ <order_id_increment translate="label">
124
+ <label>Order ID Increment</label>
125
+ <frontend_type>text</frontend_type>
126
+ <sort_order>0</sort_order>
127
+ <show_in_default>1</show_in_default>
128
+ <show_in_website>1</show_in_website>
129
+ <show_in_store>1</show_in_store>
130
+ </order_id_increment>
131
+ </fields>
132
+ </slips_settings>
133
+ <bradesco_deposit_settings>
134
+ <label>Bradesco Deposit - Settings</label>
135
+ <frontend_type>text</frontend_type>
136
+ <sort_order>0</sort_order>
137
+ <show_in_default>1</show_in_default>
138
+ <show_in_website>1</show_in_website>
139
+ <show_in_store>1</show_in_store>
140
+ <fields>
141
+ <information translate="label">
142
+ <label>Information</label>
143
+ <frontend_type>textarea</frontend_type>
144
+ <sort_order>0</sort_order>
145
+ <show_in_default>1</show_in_default>
146
+ <show_in_website>1</show_in_website>
147
+ <show_in_store>1</show_in_store>
148
+ </information>
149
+ </fields>
150
+ </bradesco_deposit_settings>
151
+ <bradesco_slip_settings>
152
+ <label>Bradesco Slip - Settings</label>
153
+ <frontend_type>text</frontend_type>
154
+ <sort_order>0</sort_order>
155
+ <show_in_default>1</show_in_default>
156
+ <show_in_website>1</show_in_website>
157
+ <show_in_store>1</show_in_store>
158
+ <fields>
159
+ <expiration translate="label">
160
+ <label>Expiration</label>
161
+ <frontend_type>text</frontend_type>
162
+ <sort_order>0</sort_order>
163
+ <show_in_default>1</show_in_default>
164
+ <show_in_website>1</show_in_website>
165
+ <show_in_store>1</show_in_store>
166
+ </expiration>
167
+ <tax translate="label">
168
+ <label>Tax</label>
169
+ <frontend_type>text</frontend_type>
170
+ <sort_order>1</sort_order>
171
+ <show_in_default>1</show_in_default>
172
+ <show_in_website>1</show_in_website>
173
+ <show_in_store>1</show_in_store>
174
+ </tax>
175
+ <demonstrative1 translate="label">
176
+ <label>Demonstrative 1</label>
177
+ <frontend_type>text</frontend_type>
178
+ <sort_order>2</sort_order>
179
+ <show_in_default>1</show_in_default>
180
+ <show_in_website>1</show_in_website>
181
+ <show_in_store>1</show_in_store>
182
+ </demonstrative1>
183
+ <demonstrative2 translate="label">
184
+ <label>Demonstrative 2</label>
185
+ <frontend_type>text</frontend_type>
186
+ <sort_order>3</sort_order>
187
+ <show_in_default>1</show_in_default>
188
+ <show_in_website>1</show_in_website>
189
+ <show_in_store>1</show_in_store>
190
+ </demonstrative2>
191
+ <demonstrative3 translate="label">
192
+ <label>Demonstrative 3</label>
193
+ <frontend_type>text</frontend_type>
194
+ <sort_order>4</sort_order>
195
+ <show_in_default>1</show_in_default>
196
+ <show_in_website>1</show_in_website>
197
+ <show_in_store>1</show_in_store>
198
+ </demonstrative3>
199
+ <instructions1 translate="label">
200
+ <label>Instructions 1</label>
201
+ <frontend_type>text</frontend_type>
202
+ <sort_order>5</sort_order>
203
+ <show_in_default>1</show_in_default>
204
+ <show_in_website>1</show_in_website>
205
+ <show_in_store>1</show_in_store>
206
+ </instructions1>
207
+ <instructions2 translate="label">
208
+ <label>Instructions 2</label>
209
+ <frontend_type>text</frontend_type>
210
+ <sort_order>6</sort_order>
211
+ <show_in_default>1</show_in_default>
212
+ <show_in_website>1</show_in_website>
213
+ <show_in_store>1</show_in_store>
214
+ </instructions2>
215
+ <instructions3 translate="label">
216
+ <label>Instructions 3</label>
217
+ <frontend_type>text</frontend_type>
218
+ <sort_order>7</sort_order>
219
+ <show_in_default>1</show_in_default>
220
+ <show_in_website>1</show_in_website>
221
+ <show_in_store>1</show_in_store>
222
+ </instructions3>
223
+ <instructions4 translate="label">
224
+ <label>Instructions 4</label>
225
+ <frontend_type>text</frontend_type>
226
+ <sort_order>8</sort_order>
227
+ <show_in_default>1</show_in_default>
228
+ <show_in_website>1</show_in_website>
229
+ <show_in_store>1</show_in_store>
230
+ </instructions4>
231
+ <acceptance translate="label">
232
+ <label>Acceptance</label>
233
+ <frontend_type>text</frontend_type>
234
+ <sort_order>9</sort_order>
235
+ <show_in_default>1</show_in_default>
236
+ <show_in_website>1</show_in_website>
237
+ <show_in_store>1</show_in_store>
238
+ </acceptance>
239
+ <specie translate="label">
240
+ <label>Specie</label>
241
+ <frontend_type>text</frontend_type>
242
+ <sort_order>10</sort_order>
243
+ <show_in_default>1</show_in_default>
244
+ <show_in_website>1</show_in_website>
245
+ <show_in_store>1</show_in_store>
246
+ </specie>
247
+ <specie_doc translate="label">
248
+ <label>Specie Doc.</label>
249
+ <frontend_type>text</frontend_type>
250
+ <sort_order>11</sort_order>
251
+ <show_in_default>1</show_in_default>
252
+ <show_in_website>1</show_in_website>
253
+ <show_in_store>1</show_in_store>
254
+ </specie_doc>
255
+ <agency translate="label">
256
+ <label>Agency</label>
257
+ <frontend_type>text</frontend_type>
258
+ <sort_order>12</sort_order>
259
+ <show_in_default>1</show_in_default>
260
+ <show_in_website>1</show_in_website>
261
+ <show_in_store>1</show_in_store>
262
+ </agency>
263
+ <agency_dv translate="label">
264
+ <label>Agency DV</label>
265
+ <frontend_type>text</frontend_type>
266
+ <sort_order>13</sort_order>
267
+ <show_in_default>1</show_in_default>
268
+ <show_in_website>1</show_in_website>
269
+ <show_in_store>1</show_in_store>
270
+ </agency_dv>
271
+ <account translate="label">
272
+ <label>Account</label>
273
+ <frontend_type>text</frontend_type>
274
+ <sort_order>14</sort_order>
275
+ <show_in_default>1</show_in_default>
276
+ <show_in_website>1</show_in_website>
277
+ <show_in_store>1</show_in_store>
278
+ </account>
279
+ <account_dv translate="label">
280
+ <label>Account DV</label>
281
+ <frontend_type>text</frontend_type>
282
+ <sort_order>15</sort_order>
283
+ <show_in_default>1</show_in_default>
284
+ <show_in_website>1</show_in_website>
285
+ <show_in_store>1</show_in_store>
286
+ </account_dv>
287
+ <transferor_account translate="label">
288
+ <label>Transferor Account</label>
289
+ <frontend_type>text</frontend_type>
290
+ <sort_order>16</sort_order>
291
+ <show_in_default>1</show_in_default>
292
+ <show_in_website>1</show_in_website>
293
+ <show_in_store>1</show_in_store>
294
+ </transferor_account>
295
+ <transferor_account_dv translate="label">
296
+ <label>Transferor Account DV</label>
297
+ <frontend_type>text</frontend_type>
298
+ <sort_order>17</sort_order>
299
+ <show_in_default>1</show_in_default>
300
+ <show_in_website>1</show_in_website>
301
+ <show_in_store>1</show_in_store>
302
+ </transferor_account_dv>
303
+ <portfolio translate="label">
304
+ <label>Portfolio</label>
305
+ <frontend_type>text</frontend_type>
306
+ <sort_order>18</sort_order>
307
+ <show_in_default>1</show_in_default>
308
+ <show_in_website>1</show_in_website>
309
+ <show_in_store>1</show_in_store>
310
+ </portfolio>
311
+ <submit_url translate="label">
312
+ <label>Submit URL</label>
313
+ <frontend_type>text</frontend_type>
314
+ <sort_order>19</sort_order>
315
+ <show_in_default>1</show_in_default>
316
+ <show_in_website>1</show_in_website>
317
+ <show_in_store>1</show_in_store>
318
+ </submit_url>
319
+ </fields>
320
+ </bradesco_slip_settings>
321
+ <santander_deposit_settings>
322
+ <label>Santander Deposit - Settings</label>
323
+ <frontend_type>text</frontend_type>
324
+ <sort_order>0</sort_order>
325
+ <show_in_default>1</show_in_default>
326
+ <show_in_website>1</show_in_website>
327
+ <show_in_store>1</show_in_store>
328
+ <fields>
329
+ <information translate="label">
330
+ <label>Information</label>
331
+ <frontend_type>textarea</frontend_type>
332
+ <sort_order>0</sort_order>
333
+ <show_in_default>1</show_in_default>
334
+ <show_in_website>1</show_in_website>
335
+ <show_in_store>1</show_in_store>
336
+ </information>
337
+ </fields>
338
+ </santander_deposit_settings>
339
+ <santander_slip_settings>
340
+ <label>Santander Slip - Settings</label>
341
+ <frontend_type>text</frontend_type>
342
+ <sort_order>0</sort_order>
343
+ <show_in_default>1</show_in_default>
344
+ <show_in_website>1</show_in_website>
345
+ <show_in_store>1</show_in_store>
346
+ <fields>
347
+ <expiration translate="label">
348
+ <label>Expiration</label>
349
+ <frontend_type>text</frontend_type>
350
+ <sort_order>0</sort_order>
351
+ <show_in_default>1</show_in_default>
352
+ <show_in_website>1</show_in_website>
353
+ <show_in_store>1</show_in_store>
354
+ </expiration>
355
+ <tax translate="label">
356
+ <label>Tax</label>
357
+ <frontend_type>text</frontend_type>
358
+ <sort_order>1</sort_order>
359
+ <show_in_default>1</show_in_default>
360
+ <show_in_website>1</show_in_website>
361
+ <show_in_store>1</show_in_store>
362
+ </tax>
363
+ <demonstrative1 translate="label">
364
+ <label>Demonstrative 1</label>
365
+ <frontend_type>text</frontend_type>
366
+ <sort_order>2</sort_order>
367
+ <show_in_default>1</show_in_default>
368
+ <show_in_website>1</show_in_website>
369
+ <show_in_store>1</show_in_store>
370
+ </demonstrative1>
371
+ <demonstrative2 translate="label">
372
+ <label>Demonstrative 2</label>
373
+ <frontend_type>text</frontend_type>
374
+ <sort_order>3</sort_order>
375
+ <show_in_default>1</show_in_default>
376
+ <show_in_website>1</show_in_website>
377
+ <show_in_store>1</show_in_store>
378
+ </demonstrative2>
379
+ <demonstrative3 translate="label">
380
+ <label>Demonstrative 3</label>
381
+ <frontend_type>text</frontend_type>
382
+ <sort_order>4</sort_order>
383
+ <show_in_default>1</show_in_default>
384
+ <show_in_website>1</show_in_website>
385
+ <show_in_store>1</show_in_store>
386
+ </demonstrative3>
387
+ <instructions1 translate="label">
388
+ <label>Instructions 1</label>
389
+ <frontend_type>text</frontend_type>
390
+ <sort_order>5</sort_order>
391
+ <show_in_default>1</show_in_default>
392
+ <show_in_website>1</show_in_website>
393
+ <show_in_store>1</show_in_store>
394
+ </instructions1>
395
+ <instructions2 translate="label">
396
+ <label>Instructions 2</label>
397
+ <frontend_type>text</frontend_type>
398
+ <sort_order>6</sort_order>
399
+ <show_in_default>1</show_in_default>
400
+ <show_in_website>1</show_in_website>
401
+ <show_in_store>1</show_in_store>
402
+ </instructions2>
403
+ <instructions3 translate="label">
404
+ <label>Instructions 3</label>
405
+ <frontend_type>text</frontend_type>
406
+ <sort_order>7</sort_order>
407
+ <show_in_default>1</show_in_default>
408
+ <show_in_website>1</show_in_website>
409
+ <show_in_store>1</show_in_store>
410
+ </instructions3>
411
+ <instructions4 translate="label">
412
+ <label>Instructions 4</label>
413
+ <frontend_type>text</frontend_type>
414
+ <sort_order>8</sort_order>
415
+ <show_in_default>1</show_in_default>
416
+ <show_in_website>1</show_in_website>
417
+ <show_in_store>1</show_in_store>
418
+ </instructions4>
419
+ <acceptance translate="label">
420
+ <label>Acceptance</label>
421
+ <frontend_type>text</frontend_type>
422
+ <sort_order>9</sort_order>
423
+ <show_in_default>1</show_in_default>
424
+ <show_in_website>1</show_in_website>
425
+ <show_in_store>1</show_in_store>
426
+ </acceptance>
427
+ <specie translate="label">
428
+ <label>Specie</label>
429
+ <frontend_type>text</frontend_type>
430
+ <sort_order>10</sort_order>
431
+ <show_in_default>1</show_in_default>
432
+ <show_in_website>1</show_in_website>
433
+ <show_in_store>1</show_in_store>
434
+ </specie>
435
+ <specie_doc translate="label">
436
+ <label>Specie Doc.</label>
437
+ <frontend_type>text</frontend_type>
438
+ <sort_order>11</sort_order>
439
+ <show_in_default>1</show_in_default>
440
+ <show_in_website>1</show_in_website>
441
+ <show_in_store>1</show_in_store>
442
+ </specie_doc>
443
+ <client_code translate="label">
444
+ <label>Client Code</label>
445
+ <frontend_type>text</frontend_type>
446
+ <sort_order>12</sort_order>
447
+ <show_in_default>1</show_in_default>
448
+ <show_in_website>1</show_in_website>
449
+ <show_in_store>1</show_in_store>
450
+ </client_code>
451
+ <outlet translate="label">
452
+ <label>Outlet</label>
453
+ <frontend_type>text</frontend_type>
454
+ <sort_order>13</sort_order>
455
+ <show_in_default>1</show_in_default>
456
+ <show_in_website>1</show_in_website>
457
+ <show_in_store>1</show_in_store>
458
+ </outlet>
459
+ <portfolio translate="label">
460
+ <label>Portfolio</label>
461
+ <frontend_type>text</frontend_type>
462
+ <sort_order>14</sort_order>
463
+ <show_in_default>1</show_in_default>
464
+ <show_in_website>1</show_in_website>
465
+ <show_in_store>1</show_in_store>
466
+ </portfolio>
467
+ <portfolio_description translate="label">
468
+ <label>Portfolio Description</label>
469
+ <frontend_type>text</frontend_type>
470
+ <sort_order>15</sort_order>
471
+ <show_in_default>1</show_in_default>
472
+ <show_in_website>1</show_in_website>
473
+ <show_in_store>1</show_in_store>
474
+ </portfolio_description>
475
+ <submit_url translate="label">
476
+ <label>Submit URL</label>
477
+ <frontend_type>text</frontend_type>
478
+ <sort_order>16</sort_order>
479
+ <show_in_default>1</show_in_default>
480
+ <show_in_website>1</show_in_website>
481
+ <show_in_store>1</show_in_store>
482
+ </submit_url>
483
+ </fields>
484
+ </santander_slip_settings>
485
+ <bb_deposit_settings>
486
+ <label>Banco do Brasil Deposit - Settings</label>
487
+ <frontend_type>text</frontend_type>
488
+ <sort_order>0</sort_order>
489
+ <show_in_default>1</show_in_default>
490
+ <show_in_website>1</show_in_website>
491
+ <show_in_store>1</show_in_store>
492
+ <fields>
493
+ <information translate="label">
494
+ <label>Information</label>
495
+ <frontend_type>textarea</frontend_type>
496
+ <sort_order>0</sort_order>
497
+ <show_in_default>1</show_in_default>
498
+ <show_in_website>1</show_in_website>
499
+ <show_in_store>1</show_in_store>
500
+ </information>
501
+ </fields>
502
+ </bb_deposit_settings>
503
+ <bb_slip_settings>
504
+ <label>Banco do Brasil Slip - Settings</label>
505
+ <frontend_type>text</frontend_type>
506
+ <sort_order>0</sort_order>
507
+ <show_in_default>1</show_in_default>
508
+ <show_in_website>1</show_in_website>
509
+ <show_in_store>1</show_in_store>
510
+ <fields>
511
+ <expiration translate="label">
512
+ <label>Expiration</label>
513
+ <frontend_type>text</frontend_type>
514
+ <sort_order>0</sort_order>
515
+ <show_in_default>1</show_in_default>
516
+ <show_in_website>1</show_in_website>
517
+ <show_in_store>1</show_in_store>
518
+ </expiration>
519
+ <tax translate="label">
520
+ <label>Tax</label>
521
+ <frontend_type>text</frontend_type>
522
+ <sort_order>1</sort_order>
523
+ <show_in_default>1</show_in_default>
524
+ <show_in_website>1</show_in_website>
525
+ <show_in_store>1</show_in_store>
526
+ </tax>
527
+ <demonstrative1 translate="label">
528
+ <label>Demonstrative 1</label>
529
+ <frontend_type>text</frontend_type>
530
+ <sort_order>2</sort_order>
531
+ <show_in_default>1</show_in_default>
532
+ <show_in_website>1</show_in_website>
533
+ <show_in_store>1</show_in_store>
534
+ </demonstrative1>
535
+ <demonstrative2 translate="label">
536
+ <label>Demonstrative 2</label>
537
+ <frontend_type>text</frontend_type>
538
+ <sort_order>3</sort_order>
539
+ <show_in_default>1</show_in_default>
540
+ <show_in_website>1</show_in_website>
541
+ <show_in_store>1</show_in_store>
542
+ </demonstrative2>
543
+ <demonstrative3 translate="label">
544
+ <label>Demonstrative 3</label>
545
+ <frontend_type>text</frontend_type>
546
+ <sort_order>4</sort_order>
547
+ <show_in_default>1</show_in_default>
548
+ <show_in_website>1</show_in_website>
549
+ <show_in_store>1</show_in_store>
550
+ </demonstrative3>
551
+ <instructions1 translate="label">
552
+ <label>Instructions 1</label>
553
+ <frontend_type>text</frontend_type>
554
+ <sort_order>5</sort_order>
555
+ <show_in_default>1</show_in_default>
556
+ <show_in_website>1</show_in_website>
557
+ <show_in_store>1</show_in_store>
558
+ </instructions1>
559
+ <instructions2 translate="label">
560
+ <label>Instructions 2</label>
561
+ <frontend_type>text</frontend_type>
562
+ <sort_order>6</sort_order>
563
+ <show_in_default>1</show_in_default>
564
+ <show_in_website>1</show_in_website>
565
+ <show_in_store>1</show_in_store>
566
+ </instructions2>
567
+ <instructions3 translate="label">
568
+ <label>Instructions 3</label>
569
+ <frontend_type>text</frontend_type>
570
+ <sort_order>7</sort_order>
571
+ <show_in_default>1</show_in_default>
572
+ <show_in_website>1</show_in_website>
573
+ <show_in_store>1</show_in_store>
574
+ </instructions3>
575
+ <instructions4 translate="label">
576
+ <label>Instructions 4</label>
577
+ <frontend_type>text</frontend_type>
578
+ <sort_order>8</sort_order>
579
+ <show_in_default>1</show_in_default>
580
+ <show_in_website>1</show_in_website>
581
+ <show_in_store>1</show_in_store>
582
+ </instructions4>
583
+ <acceptance translate="label">
584
+ <label>Acceptance</label>
585
+ <frontend_type>text</frontend_type>
586
+ <sort_order>9</sort_order>
587
+ <show_in_default>1</show_in_default>
588
+ <show_in_website>1</show_in_website>
589
+ <show_in_store>1</show_in_store>
590
+ </acceptance>
591
+ <specie translate="label">
592
+ <label>Specie</label>
593
+ <frontend_type>text</frontend_type>
594
+ <sort_order>10</sort_order>
595
+ <show_in_default>1</show_in_default>
596
+ <show_in_website>1</show_in_website>
597
+ <show_in_store>1</show_in_store>
598
+ </specie>
599
+ <specie_doc translate="label">
600
+ <label>Specie Doc.</label>
601
+ <frontend_type>text</frontend_type>
602
+ <sort_order>11</sort_order>
603
+ <show_in_default>1</show_in_default>
604
+ <show_in_website>1</show_in_website>
605
+ <show_in_store>1</show_in_store>
606
+ </specie_doc>
607
+ <agency translate="label">
608
+ <label>Agency</label>
609
+ <frontend_type>text</frontend_type>
610
+ <sort_order>12</sort_order>
611
+ <show_in_default>1</show_in_default>
612
+ <show_in_website>1</show_in_website>
613
+ <show_in_store>1</show_in_store>
614
+ </agency>
615
+ <account translate="label">
616
+ <label>Account</label>
617
+ <frontend_type>text</frontend_type>
618
+ <sort_order>13</sort_order>
619
+ <show_in_default>1</show_in_default>
620
+ <show_in_website>1</show_in_website>
621
+ <show_in_store>1</show_in_store>
622
+ </account>
623
+ <agreement translate="label">
624
+ <label>Agreement</label>
625
+ <frontend_type>text</frontend_type>
626
+ <sort_order>14</sort_order>
627
+ <show_in_default>1</show_in_default>
628
+ <show_in_website>1</show_in_website>
629
+ <show_in_store>1</show_in_store>
630
+ </agreement>
631
+ <contract translate="label">
632
+ <label>Contract</label>
633
+ <frontend_type>text</frontend_type>
634
+ <sort_order>15</sort_order>
635
+ <show_in_default>1</show_in_default>
636
+ <show_in_website>1</show_in_website>
637
+ <show_in_store>1</show_in_store>
638
+ </contract>
639
+ <portfolio translate="label">
640
+ <label>Portfolio</label>
641
+ <frontend_type>text</frontend_type>
642
+ <sort_order>16</sort_order>
643
+ <show_in_default>1</show_in_default>
644
+ <show_in_website>1</show_in_website>
645
+ <show_in_store>1</show_in_store>
646
+ </portfolio>
647
+ <portfolio_variation translate="label">
648
+ <label>Portfolio Variation</label>
649
+ <frontend_type>text</frontend_type>
650
+ <sort_order>17</sort_order>
651
+ <show_in_default>1</show_in_default>
652
+ <show_in_website>1</show_in_website>
653
+ <show_in_store>1</show_in_store>
654
+ </portfolio_variation>
655
+ <agreement_formation translate="label">
656
+ <label>Agreement Formation</label>
657
+ <frontend_type>text</frontend_type>
658
+ <sort_order>18</sort_order>
659
+ <show_in_default>1</show_in_default>
660
+ <show_in_website>1</show_in_website>
661
+ <show_in_store>1</show_in_store>
662
+ </agreement_formation>
663
+ <number_formation translate="label">
664
+ <label>Number Formation</label>
665
+ <frontend_type>text</frontend_type>
666
+ <sort_order>19</sort_order>
667
+ <show_in_default>1</show_in_default>
668
+ <show_in_website>1</show_in_website>
669
+ <show_in_store>1</show_in_store>
670
+ </number_formation>
671
+ <submit_url translate="label">
672
+ <label>Submit URL</label>
673
+ <frontend_type>text</frontend_type>
674
+ <sort_order>20</sort_order>
675
+ <show_in_default>1</show_in_default>
676
+ <show_in_website>1</show_in_website>
677
+ <show_in_store>1</show_in_store>
678
+ </submit_url>
679
+ </fields>
680
+ </bb_slip_settings>
681
+ <unibanco_deposit_settings>
682
+ <label>Unibanco Deposit - Settings</label>
683
+ <frontend_type>text</frontend_type>
684
+ <sort_order>0</sort_order>
685
+ <show_in_default>1</show_in_default>
686
+ <show_in_website>1</show_in_website>
687
+ <show_in_store>1</show_in_store>
688
+ <fields>
689
+ <information translate="label">
690
+ <label>Information</label>
691
+ <frontend_type>textarea</frontend_type>
692
+ <sort_order>0</sort_order>
693
+ <show_in_default>1</show_in_default>
694
+ <show_in_website>1</show_in_website>
695
+ <show_in_store>1</show_in_store>
696
+ </information>
697
+ </fields>
698
+ </unibanco_deposit_settings>
699
+ <unibanco_slip_settings>
700
+ <label>Unibanco Slip - Settings</label>
701
+ <frontend_type>text</frontend_type>
702
+ <sort_order>0</sort_order>
703
+ <show_in_default>1</show_in_default>
704
+ <show_in_website>1</show_in_website>
705
+ <show_in_store>1</show_in_store>
706
+ <fields>
707
+ <expiration translate="label">
708
+ <label>Expiration</label>
709
+ <frontend_type>text</frontend_type>
710
+ <sort_order>0</sort_order>
711
+ <show_in_default>1</show_in_default>
712
+ <show_in_website>1</show_in_website>
713
+ <show_in_store>1</show_in_store>
714
+ </expiration>
715
+ <tax translate="label">
716
+ <label>Tax</label>
717
+ <frontend_type>text</frontend_type>
718
+ <sort_order>1</sort_order>
719
+ <show_in_default>1</show_in_default>
720
+ <show_in_website>1</show_in_website>
721
+ <show_in_store>1</show_in_store>
722
+ </tax>
723
+ <demonstrative1 translate="label">
724
+ <label>Demonstrative 1</label>
725
+ <frontend_type>text</frontend_type>
726
+ <sort_order>2</sort_order>
727
+ <show_in_default>1</show_in_default>
728
+ <show_in_website>1</show_in_website>
729
+ <show_in_store>1</show_in_store>
730
+ </demonstrative1>
731
+ <demonstrative2 translate="label">
732
+ <label>Demonstrative 2</label>
733
+ <frontend_type>text</frontend_type>
734
+ <sort_order>3</sort_order>
735
+ <show_in_default>1</show_in_default>
736
+ <show_in_website>1</show_in_website>
737
+ <show_in_store>1</show_in_store>
738
+ </demonstrative2>
739
+ <demonstrative3 translate="label">
740
+ <label>Demonstrative 3</label>
741
+ <frontend_type>text</frontend_type>
742
+ <sort_order>4</sort_order>
743
+ <show_in_default>1</show_in_default>
744
+ <show_in_website>1</show_in_website>
745
+ <show_in_store>1</show_in_store>
746
+ </demonstrative3>
747
+ <instructions1 translate="label">
748
+ <label>Instructions 1</label>
749
+ <frontend_type>text</frontend_type>
750
+ <sort_order>5</sort_order>
751
+ <show_in_default>1</show_in_default>
752
+ <show_in_website>1</show_in_website>
753
+ <show_in_store>1</show_in_store>
754
+ </instructions1>
755
+ <instructions2 translate="label">
756
+ <label>Instructions 2</label>
757
+ <frontend_type>text</frontend_type>
758
+ <sort_order>6</sort_order>
759
+ <show_in_default>1</show_in_default>
760
+ <show_in_website>1</show_in_website>
761
+ <show_in_store>1</show_in_store>
762
+ </instructions2>
763
+ <instructions3 translate="label">
764
+ <label>Instructions 3</label>
765
+ <frontend_type>text</frontend_type>
766
+ <sort_order>7</sort_order>
767
+ <show_in_default>1</show_in_default>
768
+ <show_in_website>1</show_in_website>
769
+ <show_in_store>1</show_in_store>
770
+ </instructions3>
771
+ <instructions4 translate="label">
772
+ <label>Instructions 4</label>
773
+ <frontend_type>text</frontend_type>
774
+ <sort_order>8</sort_order>
775
+ <show_in_default>1</show_in_default>
776
+ <show_in_website>1</show_in_website>
777
+ <show_in_store>1</show_in_store>
778
+ </instructions4>
779
+ <acceptance translate="label">
780
+ <label>Acceptance</label>
781
+ <frontend_type>text</frontend_type>
782
+ <sort_order>9</sort_order>
783
+ <show_in_default>1</show_in_default>
784
+ <show_in_website>1</show_in_website>
785
+ <show_in_store>1</show_in_store>
786
+ </acceptance>
787
+ <specie translate="label">
788
+ <label>Specie</label>
789
+ <frontend_type>text</frontend_type>
790
+ <sort_order>10</sort_order>
791
+ <show_in_default>1</show_in_default>
792
+ <show_in_website>1</show_in_website>
793
+ <show_in_store>1</show_in_store>
794
+ </specie>
795
+ <specie_doc translate="label">
796
+ <label>Specie Doc.</label>
797
+ <frontend_type>text</frontend_type>
798
+ <sort_order>11</sort_order>
799
+ <show_in_default>1</show_in_default>
800
+ <show_in_website>1</show_in_website>
801
+ <show_in_store>1</show_in_store>
802
+ </specie_doc>
803
+ <agency translate="label">
804
+ <label>Agency</label>
805
+ <frontend_type>text</frontend_type>
806
+ <sort_order>12</sort_order>
807
+ <show_in_default>1</show_in_default>
808
+ <show_in_website>1</show_in_website>
809
+ <show_in_store>1</show_in_store>
810
+ </agency>
811
+ <account translate="label">
812
+ <label>Account</label>
813
+ <frontend_type>text</frontend_type>
814
+ <sort_order>13</sort_order>
815
+ <show_in_default>1</show_in_default>
816
+ <show_in_website>1</show_in_website>
817
+ <show_in_store>1</show_in_store>
818
+ </account>
819
+ <account_dv translate="label">
820
+ <label>Account DV</label>
821
+ <frontend_type>text</frontend_type>
822
+ <sort_order>13</sort_order>
823
+ <show_in_default>1</show_in_default>
824
+ <show_in_website>1</show_in_website>
825
+ <show_in_store>1</show_in_store>
826
+ </account_dv>
827
+ <client_code translate="label">
828
+ <label>Client Code</label>
829
+ <frontend_type>text</frontend_type>
830
+ <sort_order>14</sort_order>
831
+ <show_in_default>1</show_in_default>
832
+ <show_in_website>1</show_in_website>
833
+ <show_in_store>1</show_in_store>
834
+ </client_code>
835
+ <portfolio translate="label">
836
+ <label>Portfolio</label>
837
+ <frontend_type>text</frontend_type>
838
+ <sort_order>16</sort_order>
839
+ <show_in_default>1</show_in_default>
840
+ <show_in_website>1</show_in_website>
841
+ <show_in_store>1</show_in_store>
842
+ </portfolio>
843
+ <submit_url translate="label">
844
+ <label>Submit URL</label>
845
+ <frontend_type>text</frontend_type>
846
+ <sort_order>20</sort_order>
847
+ <show_in_default>1</show_in_default>
848
+ <show_in_website>1</show_in_website>
849
+ <show_in_store>1</show_in_store>
850
+ </submit_url>
851
+ </fields>
852
+ </unibanco_slip_settings>
853
+ <cef_deposit_settings>
854
+ <label>CEF Deposit - Settings</label>
855
+ <frontend_type>text</frontend_type>
856
+ <sort_order>0</sort_order>
857
+ <show_in_default>1</show_in_default>
858
+ <show_in_website>1</show_in_website>
859
+ <show_in_store>1</show_in_store>
860
+ <fields>
861
+ <information translate="label">
862
+ <label>Information</label>
863
+ <frontend_type>textarea</frontend_type>
864
+ <sort_order>0</sort_order>
865
+ <show_in_default>1</show_in_default>
866
+ <show_in_website>1</show_in_website>
867
+ <show_in_store>1</show_in_store>
868
+ </information>
869
+ </fields>
870
+ </cef_deposit_settings>
871
+ <cef_slip_settings>
872
+ <label>CEF Slip - Settings</label>
873
+ <frontend_type>text</frontend_type>
874
+ <sort_order>0</sort_order>
875
+ <show_in_default>1</show_in_default>
876
+ <show_in_website>1</show_in_website>
877
+ <show_in_store>1</show_in_store>
878
+ <fields>
879
+ <expiration translate="label">
880
+ <label>Expiration</label>
881
+ <frontend_type>text</frontend_type>
882
+ <sort_order>0</sort_order>
883
+ <show_in_default>1</show_in_default>
884
+ <show_in_website>1</show_in_website>
885
+ <show_in_store>1</show_in_store>
886
+ </expiration>
887
+ <tax translate="label">
888
+ <label>Tax</label>
889
+ <frontend_type>text</frontend_type>
890
+ <sort_order>1</sort_order>
891
+ <show_in_default>1</show_in_default>
892
+ <show_in_website>1</show_in_website>
893
+ <show_in_store>1</show_in_store>
894
+ </tax>
895
+ <prefix translate="label">
896
+ <label>Prefix</label>
897
+ <frontend_type>text</frontend_type>
898
+ <sort_order>1</sort_order>
899
+ <show_in_default>1</show_in_default>
900
+ <show_in_website>1</show_in_website>
901
+ <show_in_store>1</show_in_store>
902
+ </prefix>
903
+ <demonstrative1 translate="label">
904
+ <label>Demonstrative 1</label>
905
+ <frontend_type>text</frontend_type>
906
+ <sort_order>2</sort_order>
907
+ <show_in_default>1</show_in_default>
908
+ <show_in_website>1</show_in_website>
909
+ <show_in_store>1</show_in_store>
910
+ </demonstrative1>
911
+ <demonstrative2 translate="label">
912
+ <label>Demonstrative 2</label>
913
+ <frontend_type>text</frontend_type>
914
+ <sort_order>3</sort_order>
915
+ <show_in_default>1</show_in_default>
916
+ <show_in_website>1</show_in_website>
917
+ <show_in_store>1</show_in_store>
918
+ </demonstrative2>
919
+ <demonstrative3 translate="label">
920
+ <label>Demonstrative 3</label>
921
+ <frontend_type>text</frontend_type>
922
+ <sort_order>4</sort_order>
923
+ <show_in_default>1</show_in_default>
924
+ <show_in_website>1</show_in_website>
925
+ <show_in_store>1</show_in_store>
926
+ </demonstrative3>
927
+ <instructions1 translate="label">
928
+ <label>Instructions 1</label>
929
+ <frontend_type>text</frontend_type>
930
+ <sort_order>5</sort_order>
931
+ <show_in_default>1</show_in_default>
932
+ <show_in_website>1</show_in_website>
933
+ <show_in_store>1</show_in_store>
934
+ </instructions1>
935
+ <instructions2 translate="label">
936
+ <label>Instructions 2</label>
937
+ <frontend_type>text</frontend_type>
938
+ <sort_order>6</sort_order>
939
+ <show_in_default>1</show_in_default>
940
+ <show_in_website>1</show_in_website>
941
+ <show_in_store>1</show_in_store>
942
+ </instructions2>
943
+ <instructions3 translate="label">
944
+ <label>Instructions 3</label>
945
+ <frontend_type>text</frontend_type>
946
+ <sort_order>7</sort_order>
947
+ <show_in_default>1</show_in_default>
948
+ <show_in_website>1</show_in_website>
949
+ <show_in_store>1</show_in_store>
950
+ </instructions3>
951
+ <instructions4 translate="label">
952
+ <label>Instructions 4</label>
953
+ <frontend_type>text</frontend_type>
954
+ <sort_order>8</sort_order>
955
+ <show_in_default>1</show_in_default>
956
+ <show_in_website>1</show_in_website>
957
+ <show_in_store>1</show_in_store>
958
+ </instructions4>
959
+ <acceptance translate="label">
960
+ <label>Acceptance</label>
961
+ <frontend_type>text</frontend_type>
962
+ <sort_order>9</sort_order>
963
+ <show_in_default>1</show_in_default>
964
+ <show_in_website>1</show_in_website>
965
+ <show_in_store>1</show_in_store>
966
+ </acceptance>
967
+ <specie translate="label">
968
+ <label>Specie</label>
969
+ <frontend_type>text</frontend_type>
970
+ <sort_order>10</sort_order>
971
+ <show_in_default>1</show_in_default>
972
+ <show_in_website>1</show_in_website>
973
+ <show_in_store>1</show_in_store>
974
+ </specie>
975
+ <specie_doc translate="label">
976
+ <label>Specie Doc.</label>
977
+ <frontend_type>text</frontend_type>
978
+ <sort_order>11</sort_order>
979
+ <show_in_default>1</show_in_default>
980
+ <show_in_website>1</show_in_website>
981
+ <show_in_store>1</show_in_store>
982
+ </specie_doc>
983
+ <agency translate="label">
984
+ <label>Agency</label>
985
+ <frontend_type>text</frontend_type>
986
+ <sort_order>12</sort_order>
987
+ <show_in_default>1</show_in_default>
988
+ <show_in_website>1</show_in_website>
989
+ <show_in_store>1</show_in_store>
990
+ </agency>
991
+ <account translate="label">
992
+ <label>Account</label>
993
+ <frontend_type>text</frontend_type>
994
+ <sort_order>13</sort_order>
995
+ <show_in_default>1</show_in_default>
996
+ <show_in_website>1</show_in_website>
997
+ <show_in_store>1</show_in_store>
998
+ </account>
999
+ <account_dv translate="label">
1000
+ <label>Account DV</label>
1001
+ <frontend_type>text</frontend_type>
1002
+ <sort_order>13</sort_order>
1003
+ <show_in_default>1</show_in_default>
1004
+ <show_in_website>1</show_in_website>
1005
+ <show_in_store>1</show_in_store>
1006
+ </account_dv>
1007
+ <transferor_account translate="label">
1008
+ <label>Transferor Account</label>
1009
+ <frontend_type>text</frontend_type>
1010
+ <sort_order>14</sort_order>
1011
+ <show_in_default>1</show_in_default>
1012
+ <show_in_website>1</show_in_website>
1013
+ <show_in_store>1</show_in_store>
1014
+ </transferor_account>
1015
+ <transferor_account_dv translate="label">
1016
+ <label>Transferor Account DV</label>
1017
+ <frontend_type>text</frontend_type>
1018
+ <sort_order>14</sort_order>
1019
+ <show_in_default>1</show_in_default>
1020
+ <show_in_website>1</show_in_website>
1021
+ <show_in_store>1</show_in_store>
1022
+ </transferor_account_dv>
1023
+ <portfolio translate="label">
1024
+ <label>Portfolio</label>
1025
+ <frontend_type>text</frontend_type>
1026
+ <sort_order>16</sort_order>
1027
+ <show_in_default>1</show_in_default>
1028
+ <show_in_website>1</show_in_website>
1029
+ <show_in_store>1</show_in_store>
1030
+ </portfolio>
1031
+ <submit_url translate="label">
1032
+ <label>Submit URL</label>
1033
+ <frontend_type>text</frontend_type>
1034
+ <sort_order>20</sort_order>
1035
+ <show_in_default>1</show_in_default>
1036
+ <show_in_website>1</show_in_website>
1037
+ <show_in_store>1</show_in_store>
1038
+ </submit_url>
1039
+ </fields>
1040
+ </cef_slip_settings>
1041
+ <hsbc_deposit_settings>
1042
+ <label>HSBC Deposit - Settings</label>
1043
+ <frontend_type>text</frontend_type>
1044
+ <sort_order>0</sort_order>
1045
+ <show_in_default>1</show_in_default>
1046
+ <show_in_website>1</show_in_website>
1047
+ <show_in_store>1</show_in_store>
1048
+ <fields>
1049
+ <information translate="label">
1050
+ <label>Information</label>
1051
+ <frontend_type>textarea</frontend_type>
1052
+ <sort_order>0</sort_order>
1053
+ <show_in_default>1</show_in_default>
1054
+ <show_in_website>1</show_in_website>
1055
+ <show_in_store>1</show_in_store>
1056
+ </information>
1057
+ </fields>
1058
+ </hsbc_deposit_settings>
1059
+ <hsbc_slip_settings>
1060
+ <label>HSBC Slip - Settings</label>
1061
+ <frontend_type>text</frontend_type>
1062
+ <sort_order>0</sort_order>
1063
+ <show_in_default>1</show_in_default>
1064
+ <show_in_website>1</show_in_website>
1065
+ <show_in_store>1</show_in_store>
1066
+ <fields>
1067
+ <expiration translate="label">
1068
+ <label>Expiration</label>
1069
+ <frontend_type>text</frontend_type>
1070
+ <sort_order>0</sort_order>
1071
+ <show_in_default>1</show_in_default>
1072
+ <show_in_website>1</show_in_website>
1073
+ <show_in_store>1</show_in_store>
1074
+ </expiration>
1075
+ <tax translate="label">
1076
+ <label>Tax</label>
1077
+ <frontend_type>text</frontend_type>
1078
+ <sort_order>1</sort_order>
1079
+ <show_in_default>1</show_in_default>
1080
+ <show_in_website>1</show_in_website>
1081
+ <show_in_store>1</show_in_store>
1082
+ </tax>
1083
+ <demonstrative1 translate="label">
1084
+ <label>Demonstrative 1</label>
1085
+ <frontend_type>text</frontend_type>
1086
+ <sort_order>2</sort_order>
1087
+ <show_in_default>1</show_in_default>
1088
+ <show_in_website>1</show_in_website>
1089
+ <show_in_store>1</show_in_store>
1090
+ </demonstrative1>
1091
+ <demonstrative2 translate="label">
1092
+ <label>Demonstrative 2</label>
1093
+ <frontend_type>text</frontend_type>
1094
+ <sort_order>3</sort_order>
1095
+ <show_in_default>1</show_in_default>
1096
+ <show_in_website>1</show_in_website>
1097
+ <show_in_store>1</show_in_store>
1098
+ </demonstrative2>
1099
+ <demonstrative3 translate="label">
1100
+ <label>Demonstrative 3</label>
1101
+ <frontend_type>text</frontend_type>
1102
+ <sort_order>4</sort_order>
1103
+ <show_in_default>1</show_in_default>
1104
+ <show_in_website>1</show_in_website>
1105
+ <show_in_store>1</show_in_store>
1106
+ </demonstrative3>
1107
+ <instructions1 translate="label">
1108
+ <label>Instructions 1</label>
1109
+ <frontend_type>text</frontend_type>
1110
+ <sort_order>5</sort_order>
1111
+ <show_in_default>1</show_in_default>
1112
+ <show_in_website>1</show_in_website>
1113
+ <show_in_store>1</show_in_store>
1114
+ </instructions1>
1115
+ <instructions2 translate="label">
1116
+ <label>Instructions 2</label>
1117
+ <frontend_type>text</frontend_type>
1118
+ <sort_order>6</sort_order>
1119
+ <show_in_default>1</show_in_default>
1120
+ <show_in_website>1</show_in_website>
1121
+ <show_in_store>1</show_in_store>
1122
+ </instructions2>
1123
+ <instructions3 translate="label">
1124
+ <label>Instructions 3</label>
1125
+ <frontend_type>text</frontend_type>
1126
+ <sort_order>7</sort_order>
1127
+ <show_in_default>1</show_in_default>
1128
+ <show_in_website>1</show_in_website>
1129
+ <show_in_store>1</show_in_store>
1130
+ </instructions3>
1131
+ <instructions4 translate="label">
1132
+ <label>Instructions 4</label>
1133
+ <frontend_type>text</frontend_type>
1134
+ <sort_order>8</sort_order>
1135
+ <show_in_default>1</show_in_default>
1136
+ <show_in_website>1</show_in_website>
1137
+ <show_in_store>1</show_in_store>
1138
+ </instructions4>
1139
+ <acceptance translate="label">
1140
+ <label>Acceptance</label>
1141
+ <frontend_type>text</frontend_type>
1142
+ <sort_order>9</sort_order>
1143
+ <show_in_default>1</show_in_default>
1144
+ <show_in_website>1</show_in_website>
1145
+ <show_in_store>1</show_in_store>
1146
+ </acceptance>
1147
+ <specie translate="label">
1148
+ <label>Specie</label>
1149
+ <frontend_type>text</frontend_type>
1150
+ <sort_order>10</sort_order>
1151
+ <show_in_default>1</show_in_default>
1152
+ <show_in_website>1</show_in_website>
1153
+ <show_in_store>1</show_in_store>
1154
+ </specie>
1155
+ <specie_doc translate="label">
1156
+ <label>Specie Doc.</label>
1157
+ <frontend_type>text</frontend_type>
1158
+ <sort_order>11</sort_order>
1159
+ <show_in_default>1</show_in_default>
1160
+ <show_in_website>1</show_in_website>
1161
+ <show_in_store>1</show_in_store>
1162
+ </specie_doc>
1163
+ <transferor_account translate="label">
1164
+ <label>Transferor Account</label>
1165
+ <frontend_type>text</frontend_type>
1166
+ <sort_order>12</sort_order>
1167
+ <show_in_default>1</show_in_default>
1168
+ <show_in_website>1</show_in_website>
1169
+ <show_in_store>1</show_in_store>
1170
+ </transferor_account>
1171
+ <portfolio translate="label">
1172
+ <label>Portfolio</label>
1173
+ <frontend_type>text</frontend_type>
1174
+ <sort_order>16</sort_order>
1175
+ <show_in_default>1</show_in_default>
1176
+ <show_in_website>1</show_in_website>
1177
+ <show_in_store>1</show_in_store>
1178
+ </portfolio>
1179
+ <submit_url translate="label">
1180
+ <label>Submit URL</label>
1181
+ <frontend_type>text</frontend_type>
1182
+ <sort_order>20</sort_order>
1183
+ <show_in_default>1</show_in_default>
1184
+ <show_in_website>1</show_in_website>
1185
+ <show_in_store>1</show_in_store>
1186
+ </submit_url>
1187
+ </fields>
1188
+ </hsbc_slip_settings>
1189
+ <real_deposit_settings>
1190
+ <label>Real Deposit - Settings</label>
1191
+ <frontend_type>text</frontend_type>
1192
+ <sort_order>0</sort_order>
1193
+ <show_in_default>1</show_in_default>
1194
+ <show_in_website>1</show_in_website>
1195
+ <show_in_store>1</show_in_store>
1196
+ <fields>
1197
+ <information translate="label">
1198
+ <label>Information</label>
1199
+ <frontend_type>textarea</frontend_type>
1200
+ <sort_order>0</sort_order>
1201
+ <show_in_default>1</show_in_default>
1202
+ <show_in_website>1</show_in_website>
1203
+ <show_in_store>1</show_in_store>
1204
+ </information>
1205
+ </fields>
1206
+ </real_deposit_settings>
1207
+ <real_slip_settings>
1208
+ <label>Real Slip - Settings</label>
1209
+ <frontend_type>text</frontend_type>
1210
+ <sort_order>0</sort_order>
1211
+ <show_in_default>1</show_in_default>
1212
+ <show_in_website>1</show_in_website>
1213
+ <show_in_store>1</show_in_store>
1214
+ <fields>
1215
+ <expiration translate="label">
1216
+ <label>Expiration</label>
1217
+ <frontend_type>text</frontend_type>
1218
+ <sort_order>0</sort_order>
1219
+ <show_in_default>1</show_in_default>
1220
+ <show_in_website>1</show_in_website>
1221
+ <show_in_store>1</show_in_store>
1222
+ </expiration>
1223
+ <tax translate="label">
1224
+ <label>Tax</label>
1225
+ <frontend_type>text</frontend_type>
1226
+ <sort_order>1</sort_order>
1227
+ <show_in_default>1</show_in_default>
1228
+ <show_in_website>1</show_in_website>
1229
+ <show_in_store>1</show_in_store>
1230
+ </tax>
1231
+ <demonstrative1 translate="label">
1232
+ <label>Demonstrative 1</label>
1233
+ <frontend_type>text</frontend_type>
1234
+ <sort_order>2</sort_order>
1235
+ <show_in_default>1</show_in_default>
1236
+ <show_in_website>1</show_in_website>
1237
+ <show_in_store>1</show_in_store>
1238
+ </demonstrative1>
1239
+ <demonstrative2 translate="label">
1240
+ <label>Demonstrative 2</label>
1241
+ <frontend_type>text</frontend_type>
1242
+ <sort_order>3</sort_order>
1243
+ <show_in_default>1</show_in_default>
1244
+ <show_in_website>1</show_in_website>
1245
+ <show_in_store>1</show_in_store>
1246
+ </demonstrative2>
1247
+ <demonstrative3 translate="label">
1248
+ <label>Demonstrative 3</label>
1249
+ <frontend_type>text</frontend_type>
1250
+ <sort_order>4</sort_order>
1251
+ <show_in_default>1</show_in_default>
1252
+ <show_in_website>1</show_in_website>
1253
+ <show_in_store>1</show_in_store>
1254
+ </demonstrative3>
1255
+ <instructions1 translate="label">
1256
+ <label>Instructions 1</label>
1257
+ <frontend_type>text</frontend_type>
1258
+ <sort_order>5</sort_order>
1259
+ <show_in_default>1</show_in_default>
1260
+ <show_in_website>1</show_in_website>
1261
+ <show_in_store>1</show_in_store>
1262
+ </instructions1>
1263
+ <instructions2 translate="label">
1264
+ <label>Instructions 2</label>
1265
+ <frontend_type>text</frontend_type>
1266
+ <sort_order>6</sort_order>
1267
+ <show_in_default>1</show_in_default>
1268
+ <show_in_website>1</show_in_website>
1269
+ <show_in_store>1</show_in_store>
1270
+ </instructions2>
1271
+ <instructions3 translate="label">
1272
+ <label>Instructions 3</label>
1273
+ <frontend_type>text</frontend_type>
1274
+ <sort_order>7</sort_order>
1275
+ <show_in_default>1</show_in_default>
1276
+ <show_in_website>1</show_in_website>
1277
+ <show_in_store>1</show_in_store>
1278
+ </instructions3>
1279
+ <instructions4 translate="label">
1280
+ <label>Instructions 4</label>
1281
+ <frontend_type>text</frontend_type>
1282
+ <sort_order>8</sort_order>
1283
+ <show_in_default>1</show_in_default>
1284
+ <show_in_website>1</show_in_website>
1285
+ <show_in_store>1</show_in_store>
1286
+ </instructions4>
1287
+ <acceptance translate="label">
1288
+ <label>Acceptance</label>
1289
+ <frontend_type>text</frontend_type>
1290
+ <sort_order>9</sort_order>
1291
+ <show_in_default>1</show_in_default>
1292
+ <show_in_website>1</show_in_website>
1293
+ <show_in_store>1</show_in_store>
1294
+ </acceptance>
1295
+ <specie translate="label">
1296
+ <label>Specie</label>
1297
+ <frontend_type>text</frontend_type>
1298
+ <sort_order>10</sort_order>
1299
+ <show_in_default>1</show_in_default>
1300
+ <show_in_website>1</show_in_website>
1301
+ <show_in_store>1</show_in_store>
1302
+ </specie>
1303
+ <specie_doc translate="label">
1304
+ <label>Specie Doc.</label>
1305
+ <frontend_type>text</frontend_type>
1306
+ <sort_order>11</sort_order>
1307
+ <show_in_default>1</show_in_default>
1308
+ <show_in_website>1</show_in_website>
1309
+ <show_in_store>1</show_in_store>
1310
+ </specie_doc>
1311
+ <agency translate="label">
1312
+ <label>Agency</label>
1313
+ <frontend_type>text</frontend_type>
1314
+ <sort_order>12</sort_order>
1315
+ <show_in_default>1</show_in_default>
1316
+ <show_in_website>1</show_in_website>
1317
+ <show_in_store>1</show_in_store>
1318
+ </agency>
1319
+ <account translate="label">
1320
+ <label>Account</label>
1321
+ <frontend_type>text</frontend_type>
1322
+ <sort_order>16</sort_order>
1323
+ <show_in_default>1</show_in_default>
1324
+ <show_in_website>1</show_in_website>
1325
+ <show_in_store>1</show_in_store>
1326
+ </account>
1327
+ <portfolio translate="label">
1328
+ <label>Portfolio</label>
1329
+ <frontend_type>text</frontend_type>
1330
+ <sort_order>16</sort_order>
1331
+ <show_in_default>1</show_in_default>
1332
+ <show_in_website>1</show_in_website>
1333
+ <show_in_store>1</show_in_store>
1334
+ </portfolio>
1335
+ <submit_url translate="label">
1336
+ <label>Submit URL</label>
1337
+ <frontend_type>text</frontend_type>
1338
+ <sort_order>20</sort_order>
1339
+ <show_in_default>1</show_in_default>
1340
+ <show_in_website>1</show_in_website>
1341
+ <show_in_store>1</show_in_store>
1342
+ </submit_url>
1343
+ </fields>
1344
+ </real_slip_settings>
1345
+ <nossacaixa_deposit_settings>
1346
+ <label>Nossa Caixa Deposit - Settings</label>
1347
+ <frontend_type>text</frontend_type>
1348
+ <sort_order>0</sort_order>
1349
+ <show_in_default>1</show_in_default>
1350
+ <show_in_website>1</show_in_website>
1351
+ <show_in_store>1</show_in_store>
1352
+ <fields>
1353
+ <information translate="label">
1354
+ <label>Information</label>
1355
+ <frontend_type>textarea</frontend_type>
1356
+ <sort_order>0</sort_order>
1357
+ <show_in_default>1</show_in_default>
1358
+ <show_in_website>1</show_in_website>
1359
+ <show_in_store>1</show_in_store>
1360
+ </information>
1361
+ </fields>
1362
+ </nossacaixa_deposit_settings>
1363
+ <nossacaixa_slip_settings>
1364
+ <label>Nossa Caixa Slip - Settings</label>
1365
+ <frontend_type>text</frontend_type>
1366
+ <sort_order>0</sort_order>
1367
+ <show_in_default>1</show_in_default>
1368
+ <show_in_website>1</show_in_website>
1369
+ <show_in_store>1</show_in_store>
1370
+ <fields>
1371
+ <expiration translate="label">
1372
+ <label>Expiration</label>
1373
+ <frontend_type>text</frontend_type>
1374
+ <sort_order>0</sort_order>
1375
+ <show_in_default>1</show_in_default>
1376
+ <show_in_website>1</show_in_website>
1377
+ <show_in_store>1</show_in_store>
1378
+ </expiration>
1379
+ <tax translate="label">
1380
+ <label>Tax</label>
1381
+ <frontend_type>text</frontend_type>
1382
+ <sort_order>1</sort_order>
1383
+ <show_in_default>1</show_in_default>
1384
+ <show_in_website>1</show_in_website>
1385
+ <show_in_store>1</show_in_store>
1386
+ </tax>
1387
+ <demonstrative1 translate="label">
1388
+ <label>Demonstrative 1</label>
1389
+ <frontend_type>text</frontend_type>
1390
+ <sort_order>2</sort_order>
1391
+ <show_in_default>1</show_in_default>
1392
+ <show_in_website>1</show_in_website>
1393
+ <show_in_store>1</show_in_store>
1394
+ </demonstrative1>
1395
+ <demonstrative2 translate="label">
1396
+ <label>Demonstrative 2</label>
1397
+ <frontend_type>text</frontend_type>
1398
+ <sort_order>3</sort_order>
1399
+ <show_in_default>1</show_in_default>
1400
+ <show_in_website>1</show_in_website>
1401
+ <show_in_store>1</show_in_store>
1402
+ </demonstrative2>
1403
+ <demonstrative3 translate="label">
1404
+ <label>Demonstrative 3</label>
1405
+ <frontend_type>text</frontend_type>
1406
+ <sort_order>4</sort_order>
1407
+ <show_in_default>1</show_in_default>
1408
+ <show_in_website>1</show_in_website>
1409
+ <show_in_store>1</show_in_store>
1410
+ </demonstrative3>
1411
+ <instructions1 translate="label">
1412
+ <label>Instructions 1</label>
1413
+ <frontend_type>text</frontend_type>
1414
+ <sort_order>5</sort_order>
1415
+ <show_in_default>1</show_in_default>
1416
+ <show_in_website>1</show_in_website>
1417
+ <show_in_store>1</show_in_store>
1418
+ </instructions1>
1419
+ <instructions2 translate="label">
1420
+ <label>Instructions 2</label>
1421
+ <frontend_type>text</frontend_type>
1422
+ <sort_order>6</sort_order>
1423
+ <show_in_default>1</show_in_default>
1424
+ <show_in_website>1</show_in_website>
1425
+ <show_in_store>1</show_in_store>
1426
+ </instructions2>
1427
+ <instructions3 translate="label">
1428
+ <label>Instructions 3</label>
1429
+ <frontend_type>text</frontend_type>
1430
+ <sort_order>7</sort_order>
1431
+ <show_in_default>1</show_in_default>
1432
+ <show_in_website>1</show_in_website>
1433
+ <show_in_store>1</show_in_store>
1434
+ </instructions3>
1435
+ <instructions4 translate="label">
1436
+ <label>Instructions 4</label>
1437
+ <frontend_type>text</frontend_type>
1438
+ <sort_order>8</sort_order>
1439
+ <show_in_default>1</show_in_default>
1440
+ <show_in_website>1</show_in_website>
1441
+ <show_in_store>1</show_in_store>
1442
+ </instructions4>
1443
+ <acceptance translate="label">
1444
+ <label>Acceptance</label>
1445
+ <frontend_type>text</frontend_type>
1446
+ <sort_order>9</sort_order>
1447
+ <show_in_default>1</show_in_default>
1448
+ <show_in_website>1</show_in_website>
1449
+ <show_in_store>1</show_in_store>
1450
+ </acceptance>
1451
+ <specie translate="label">
1452
+ <label>Specie</label>
1453
+ <frontend_type>text</frontend_type>
1454
+ <sort_order>10</sort_order>
1455
+ <show_in_default>1</show_in_default>
1456
+ <show_in_website>1</show_in_website>
1457
+ <show_in_store>1</show_in_store>
1458
+ </specie>
1459
+ <specie_doc translate="label">
1460
+ <label>Specie Doc.</label>
1461
+ <frontend_type>text</frontend_type>
1462
+ <sort_order>11</sort_order>
1463
+ <show_in_default>1</show_in_default>
1464
+ <show_in_website>1</show_in_website>
1465
+ <show_in_store>1</show_in_store>
1466
+ </specie_doc>
1467
+ <agency translate="label">
1468
+ <label>Agency</label>
1469
+ <frontend_type>text</frontend_type>
1470
+ <sort_order>12</sort_order>
1471
+ <show_in_default>1</show_in_default>
1472
+ <show_in_website>1</show_in_website>
1473
+ <show_in_store>1</show_in_store>
1474
+ </agency>
1475
+ <transferor_account translate="label">
1476
+ <label>Transferor Account</label>
1477
+ <frontend_type>text</frontend_type>
1478
+ <sort_order>16</sort_order>
1479
+ <show_in_default>1</show_in_default>
1480
+ <show_in_website>1</show_in_website>
1481
+ <show_in_store>1</show_in_store>
1482
+ </transferor_account>
1483
+ <transferor_account_dv translate="label">
1484
+ <label>Transferor Account DV</label>
1485
+ <frontend_type>text</frontend_type>
1486
+ <sort_order>16</sort_order>
1487
+ <show_in_default>1</show_in_default>
1488
+ <show_in_website>1</show_in_website>
1489
+ <show_in_store>1</show_in_store>
1490
+ </transferor_account_dv>
1491
+ <portfolio translate="label">
1492
+ <label>Portfolio</label>
1493
+ <frontend_type>text</frontend_type>
1494
+ <sort_order>16</sort_order>
1495
+ <show_in_default>1</show_in_default>
1496
+ <show_in_website>1</show_in_website>
1497
+ <show_in_store>1</show_in_store>
1498
+ </portfolio>
1499
+ <modality_account translate="label">
1500
+ <label>Modality Account</label>
1501
+ <frontend_type>text</frontend_type>
1502
+ <sort_order>16</sort_order>
1503
+ <show_in_default>1</show_in_default>
1504
+ <show_in_website>1</show_in_website>
1505
+ <show_in_store>1</show_in_store>
1506
+ </modality_account>
1507
+ <submit_url translate="label">
1508
+ <label>Submit URL</label>
1509
+ <frontend_type>text</frontend_type>
1510
+ <sort_order>20</sort_order>
1511
+ <show_in_default>1</show_in_default>
1512
+ <show_in_website>1</show_in_website>
1513
+ <show_in_store>1</show_in_store>
1514
+ </submit_url>
1515
+ </fields>
1516
+ </nossacaixa_slip_settings>
1517
+ </groups>
1518
+ </payment>
1519
+ </sections>
1520
+ </config>
app/code/local/Gamuza/Slips/sql/slips_setup/mysql4-install-0.0.1.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ $installer = $this;
29
+ $installer->startSetup();
30
+ $sqlBlock = <<<SQLBLOCK
31
+ CREATE TABLE gamuza_slips_transactions (
32
+ id int(11) unsigned NOT NULL AUTO_INCREMENT,
33
+ order_id int(11) unsigned NOT NULL,
34
+ amount float unsigned NOT NULL,
35
+ number char(11) NOT NULL,
36
+ expiration date NOT NULL,
37
+ PRIMARY KEY (id),
38
+ KEY order_id (order_id),
39
+ KEY amount (amount),
40
+ KEY number (number),
41
+ KEY expiration (expiration)
42
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
43
+ SQLBLOCK;
44
+ $installer->run($sqlBlock);
45
+ //demo
46
+ //Mage::getModel('core/url_rewrite')->setId(null);
47
+ //demo
48
+ $installer->endSetup();
app/code/local/Gamuza/Utils/Block/About.php ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Utils - Basic features for magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Utils_Block_About
29
+ extends Mage_Adminhtml_Block_System_Config_Form_Fieldset
30
+ {
31
+ public function render (Varien_Data_Form_Element_Abstract $element)
32
+ {
33
+ $logo = $this->getSkinUrl ('images/gamuza/utils/gamuza-magento-modules.png');
34
+
35
+ $html = <<<htmlBlock
36
+ <table>
37
+ <tr>
38
+ <td width="50%" style="vertical-align:middle;">
39
+ <h2><p>
40
+ Gamuza Magento Modules
41
+ </p></h2>
42
+ <h4>
43
+ <p>
44
+ <h3>Plataforma Magento</h3><br/>
45
+ A plataforma Magento atende a mais de 110.000 lojas virtuais em todo o mundo e é suportada por um ecossistema global de parceiros de solução e desenvolvedores.<br/>
46
+ <br/>
47
+ Somente o a plataforma Magento oferece um alto grau de flexibilidade e controle sobre a experiência do usuário, catálogo de produtos, gerenciamento vendas, estoque e muitas outras funcionalidades para melhorar a sua loja online.<br/>
48
+ <br/>
49
+ <h3>Desenvolvimento de Módulos</h3><br/>
50
+ Devido a essa flexibilidade, é possível extender inúmeras funcionalidades da plataforma Magento para simplificar o dia-a-dia usando módulos customizados para essas tarefas.<br/>
51
+ <br/>
52
+ E a Gamuza possui uma divisão especializada na criação de módulos poderosos, simples e intuitivos para a plataforma Magento.<br/>
53
+ <br/>
54
+ <h3>Turbine sua Loja Virtual</h3>
55
+ <br/>
56
+ Aumente todo o potencial de suas vendas e de sua plataforma Magentocom funcionalidades específicas para seu segmento de negócio.<br/>
57
+ <br/>
58
+ <a href="http://www.gamuza.com.br/magento" target="_blank">Faça contato e solicite uma proposta!</a>
59
+ </p>
60
+ </h4>
61
+ </td>
62
+ <td width="50%" style="vertical-align:middle;">
63
+ <img src="{$logo}" />
64
+ </td>
65
+ </tr>
66
+ </table>
67
+ htmlBlock;
68
+
69
+ return $html;
70
+ }
71
+ }
app/code/local/Gamuza/Utils/Block/Adminhtml/Sales/Order/Grid.php ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Utils - Basic features for magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Utils_Block_Adminhtml_Sales_Order_Grid
29
+ extends Mage_Adminhtml_Block_Sales_Order_Grid
30
+ {
31
+ public function __construct()
32
+ {
33
+ parent::__construct();
34
+ }
35
+ }
app/code/local/Gamuza/Utils/Block/Adminhtml/Sales/Order/View.php ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Utils - Basic features for magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Utils_Block_Adminhtml_Sales_Order_View
29
+ extends Mage_Adminhtml_Block_Sales_Order_View
30
+ {
31
+ public function __construct()
32
+ {
33
+ parent::__construct();
34
+
35
+ if (Mage::getStoreConfig('labels/settings/active') && $this->getOrder()->hasInvoices ())
36
+ {
37
+ $this->_addButton('order_label', array(
38
+ 'label' => Mage::helper('labels')->__('Label'),
39
+ 'onclick' => "popWin ('" . $this->getLabelUrl () . "', '','width=400,height=585,resizable=no,scrollbars=no')",
40
+ 'class' => 'go'
41
+ ));
42
+ }
43
+ }
44
+
45
+ public function getLabelUrl()
46
+ {
47
+ return $this->getUrl('labels/adminhtml_labels/carrier');
48
+ }
49
+ }
app/code/local/Gamuza/Utils/Block/Adminhtml/Widget/Grid/Column/Renderer/Expiration.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Utils - Basic features for magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Utils_Block_Adminhtml_Widget_Grid_Column_Renderer_Expiration
29
+ extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Date
30
+ {
31
+ public function render (Varien_Object $row)
32
+ {
33
+ $content = parent::render ($row);
34
+
35
+ $today = strtotime (date ('Y-m-d'));
36
+ $value = strtotime ($row->getData($this->getColumn()->getIndex()));
37
+
38
+ $color = $value > $today ? 'green' : 'red';
39
+
40
+ return "<span style='color:{$color};font-weight:bold;'>$content</span>";
41
+ }
42
+ }
app/code/local/Gamuza/Utils/Block/Adminhtml/Widget/Grid/Column/Renderer/Price.php ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Utils - Basic features for magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Utils_Block_Adminhtml_Widget_Grid_Column_Renderer_Price
29
+ extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Price
30
+ {
31
+ protected function _getCurrencyCode($row)
32
+ {
33
+ return Mage::app()->getLocale()->currency (Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol();
34
+ }
35
+ }
app/code/local/Gamuza/Utils/Block/Onepage/Success/Additional.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Utils - Basic features for magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Utils_Block_Onepage_Success_Additional
29
+ extends Mage_Core_Block_Template
30
+ {
31
+
32
+ protected function _construct ()
33
+ {
34
+ $this->setTemplate ('utils/onepage/success/additional.phtml');
35
+ }
36
+
37
+ public function getOrder ()
38
+ {
39
+ return Mage::registry ('current_order');
40
+ }
41
+
42
+ }
app/code/local/Gamuza/Utils/Block/Onepage/Success/Info.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Utils - Basic features for magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Utils_Block_Onepage_Success_Info
29
+ extends Mage_Core_Block_Template
30
+ {
31
+
32
+ protected function _construct ()
33
+ {
34
+ $this->_loadValidOrder ();
35
+
36
+ $this->setTemplate ('utils/onepage/success/info.phtml');
37
+ }
38
+
39
+ public function _loadValidOrder ()
40
+ {
41
+ $orderId = Mage::getSingleton('checkout/session')->getLastOrderId();
42
+ $order = Mage::getModel('sales/order')->load($orderId);
43
+
44
+ Mage::register ('current_order', $order);
45
+ }
46
+
47
+ public function getOrder ()
48
+ {
49
+ return Mage::registry ('current_order');
50
+ }
51
+
52
+ public function getPaymentInfoHtml ()
53
+ {
54
+ return $this->helper('payment')->getInfoBlock($this->getOrder()->getPayment())->toHtml ();
55
+ }
56
+
57
+ }
app/code/local/Gamuza/Utils/Helper/Data.php ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Utils - Basic features for magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Utils_Helper_Data
29
+ extends Mage_Core_Helper_Abstract
30
+ {
31
+ public function getCoreResource ()
32
+ {
33
+ return Mage::getSingleton ('core/resource');
34
+ }
35
+
36
+ public function sql ($tableName, $fields, $conditions)
37
+ {
38
+ $resource = $this->getCoreResource ();
39
+ $read = $resource->getConnection ('core_read');
40
+ $table = $resource->getTableName ($tableName);
41
+
42
+ $select = $read->select ()
43
+ ->from ($table, $fields)
44
+ ->where ($conditions);
45
+ $rows = $read->fetchAll ($select);
46
+
47
+ return $rows;
48
+ }
49
+
50
+ public function update ($tableName, $fields, $conditions)
51
+ {
52
+ $resource = $this->getCoreResource ();
53
+ $write = $resource->getConnection ('core_write');
54
+ $table = $resource->getTableName ($tableName);
55
+
56
+ $write->beginTransaction ();
57
+ $result = $write->update ($table, $fields, $conditions);
58
+ $write->commit ();
59
+
60
+ return $result;
61
+ }
62
+
63
+ public function insert ($tableName, $fields)
64
+ {
65
+ $resource = $this->getCoreResource ();
66
+ $write = $resource->getConnection ('core_write');
67
+ $table = $resource->getTableName ($tableName);
68
+
69
+ $write->beginTransaction ();
70
+ $result = $write->insert ($table, $fields);
71
+ $write->commit ();
72
+
73
+ return $result;
74
+ }
75
+
76
+ public function delete ($tableName, $conditions)
77
+ {
78
+ $resource = $this->getCoreResource ();
79
+ $write = $resource->getConnection ('core_write');
80
+ $table = $resource->getTableName ($tableName);
81
+
82
+ $conds = array($write->quoteInto($conditions));
83
+ $write->beginTransaction ();
84
+ try
85
+ {
86
+ $result = $write->delete ($table, $conds);
87
+ }
88
+ catch (Exception $e)
89
+ {
90
+ $result = $e->getMessage ();
91
+ }
92
+ $write->commit ();
93
+
94
+ return $result;
95
+ }
96
+
97
+ public function getCurrencySymbol ()
98
+ {
99
+ return Mage::app()->getLocale()->currency (Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol();
100
+ }
101
+ }
app/code/local/Gamuza/Utils/Model/Config.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Utils - Basic features for magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Utils_Model_Config
29
+ {
30
+ public function getYesNo ()
31
+ {
32
+ return array (1 => Mage::helper('catalog')->__('Enabled'), 0 => Mage::helper('catalog')->__('Disabled'));
33
+ }
34
+
35
+ public function getStores ()
36
+ {
37
+ $stores = Mage::app()->getStores ();
38
+ foreach ($stores as $value) $result [$value->getId ()] = $value->getName ();
39
+
40
+ return $result;
41
+ }
42
+ }
app/code/local/Gamuza/Utils/Model/Utils.php ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Utils - Basic features for magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Utils_Model_Utils
29
+ extends Mage_Core_Model_Abstract
30
+ {
31
+ protected function _construct()
32
+ {
33
+ $this->_init("utils/utils");
34
+ }
35
+ }
app/code/local/Gamuza/Utils/controllers/Adminhtml/UtilsController.php ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Utils - Basic features for magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Gamuza_Labels_Adminhtml_LabelsController
29
+ extends Mage_Adminhtml_Controller_Action
30
+ {
31
+
32
+
33
+
34
+ }
app/code/local/Gamuza/Utils/etc/adminhtml.xml ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!--
3
+ /*
4
+ * Gamuza Utils - Basic features for magento platform.
5
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ *
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
+ * Library General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA 02110-1301, USA.
21
+ */
22
+
23
+ /*
24
+ * See the AUTHORS file for a list of people on the Gamuza Team.
25
+ * See the ChangeLog files for a list of changes.
26
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
27
+ */
28
+ -->
29
+ <config>
30
+ <acl>
31
+ <resources>
32
+ <admin>
33
+ <children>
34
+ <system>
35
+ <children>
36
+ <config>
37
+ <children>
38
+ <utils translate="title" module="utils">
39
+ <title>Gamuza Utils Section</title>
40
+ <sort_order>1000</sort_order>
41
+ </utils>
42
+ </children>
43
+ </config>
44
+ </children>
45
+ </system>
46
+ </children>
47
+ </admin>
48
+ </resources>
49
+ </acl>
50
+ </config>
app/code/local/Gamuza/Utils/etc/config.xml ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!--
3
+ /*
4
+ * Gamuza Utils - Basic features for magento platform.
5
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ *
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
+ * Library General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA 02110-1301, USA.
21
+ */
22
+
23
+ /*
24
+ * See the AUTHORS file for a list of people on the Gamuza Team.
25
+ * See the ChangeLog files for a list of changes.
26
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
27
+ */
28
+ -->
29
+
30
+ <config>
31
+ <modules>
32
+ <Gamuza_Utils>
33
+ <version>0.0.1</version>
34
+ </Gamuza_Utils>
35
+ </modules>
36
+ <global>
37
+ <helpers>
38
+ <utils>
39
+ <class>Gamuza_Utils_Helper</class>
40
+ </utils>
41
+ </helpers>
42
+ <blocks>
43
+ <utils>
44
+ <class>Gamuza_Utils_Block</class>
45
+ </utils>
46
+ <adminhtml>
47
+ <rewrite>
48
+ <sales_order_grid>Gamuza_Utils_Block_Adminhtml_Sales_Order_Grid</sales_order_grid>
49
+ <sales_order_view>Gamuza_Utils_Block_Adminhtml_Sales_Order_View</sales_order_view>
50
+ </rewrite>
51
+ </adminhtml>
52
+ </blocks>
53
+ <models>
54
+ <utils>
55
+ <class>Gamuza_Utils_Model</class>
56
+ </utils>
57
+ </models>
58
+ <resources>
59
+ <utils_setup>
60
+ <setup>
61
+ <module>Gamuza_Utils</module>
62
+ </setup>
63
+ <connection>
64
+ <use>core_setup</use>
65
+ </connection>
66
+ </utils_setup>
67
+ <utils_write>
68
+ <connection>
69
+ <use>core_write</use>
70
+ </connection>
71
+ </utils_write>
72
+ <utils_read>
73
+ <connection>
74
+ <use>core_read</use>
75
+ </connection>
76
+ </utils_read>
77
+ </resources>
78
+ </global>
79
+ <admin>
80
+ <routers>
81
+ <utils>
82
+ <use>admin</use>
83
+ <args>
84
+ <module>Gamuza_Utils</module>
85
+ <frontName>utils</frontName>
86
+ </args>
87
+ </utils>
88
+ </routers>
89
+ </admin>
90
+ <frontend>
91
+ <translate>
92
+ <modules>
93
+ <Gamuza_Utils>
94
+ <files>
95
+ <default>Gamuza_Utils.csv</default>
96
+ </files>
97
+ </Gamuza_Utils>
98
+ </modules>
99
+ </translate>
100
+ <layout>
101
+ <updates>
102
+ <utils>
103
+ <file>utils.xml</file>
104
+ </utils>
105
+ </updates>
106
+ </layout>
107
+ </frontend>
108
+ <adminhtml>
109
+ <translate>
110
+ <modules>
111
+ <Gamuza_Utils>
112
+ <files>
113
+ <default>Gamuza_Utils.csv</default>
114
+ </files>
115
+ </Gamuza_Utils>
116
+ </modules>
117
+ </translate>
118
+ <layout>
119
+ <updates>
120
+ <utils>
121
+ <file>utils.xml</file>
122
+ </utils>
123
+ </updates>
124
+ </layout>
125
+ </adminhtml>
126
+ </config>
app/code/local/Gamuza/Utils/etc/system.xml ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!--
3
+ /*
4
+ * Gamuza Utils - Basic features for magento platform.
5
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ *
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
+ * Library General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA 02110-1301, USA.
21
+ */
22
+
23
+ /*
24
+ * See the AUTHORS file for a list of people on the Gamuza Team.
25
+ * See the ChangeLog files for a list of changes.
26
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
27
+ */
28
+ -->
29
+
30
+ <config>
31
+ <tabs>
32
+ <gamuza translate="label" module="utils">
33
+ <label>Gamuza</label>
34
+ <sort_order>1000</sort_order>
35
+ </gamuza>
36
+ </tabs>
37
+ <sections>
38
+ <utils translate="label" module="utils">
39
+ <label>Utils</label>
40
+ <tab>gamuza</tab>
41
+ <frontend_type>text</frontend_type>
42
+ <sort_order>1000</sort_order>
43
+ <show_in_default>1</show_in_default>
44
+ <show_in_website>1</show_in_website>
45
+ <show_in_store>1</show_in_store>
46
+ <groups>
47
+ <about_us>
48
+ <frontend_model>utils/about</frontend_model>
49
+ <sort_order>1000</sort_order>
50
+ <show_in_default>1</show_in_default>
51
+ <show_in_website>1</show_in_website>
52
+ <show_in_store>1</show_in_store>
53
+ </about_us>
54
+ </groups>
55
+ </utils>
56
+ </sections>
57
+ </config>
app/code/local/Gamuza/Utils/sql/utils_setup/mysql4-install-0.0.1.php ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Utils - Basic features for magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ $installer = $this;
29
+ $installer->startSetup();
30
+ $sqlBlock = <<<SQLBLOCK
31
+ SQLBLOCK;
32
+ $installer->run($sqlBlock);
33
+ //demo
34
+ //Mage::getModel('core/url_rewrite')->setId(null);
35
+ //demo
36
+ $installer->endSetup();
app/code/local/Varien/Data/Form/Element/Expiration.php ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Utils - Basic features for magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Varien_Data_Form_Element_Expiration
29
+ extends Varien_Data_Form_Element_Abstract
30
+ {
31
+ public function getElementHtml()
32
+ {
33
+ $value = strtotime ($this->getEscapedValue ());
34
+ $today = strtotime (date ('Y-m-d'));
35
+
36
+ $color = $value > $today ? 'green' : 'red';
37
+ $result = utf8_encode (strftime ('%c', $value));
38
+
39
+ return "<span style='color:{$color};font-weight:bold'>{$result}</span>";
40
+ }
41
+ }
app/code/local/Varien/Data/Form/Element/Export/Esedex.php ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Utils - Basic features for magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Varien_Data_Form_Element_Export_Esedex
29
+ extends Varien_Data_Form_Element_Abstract
30
+ {
31
+ public function getElementHtml()
32
+ {
33
+ $buttonBlock = $this->getForm()->getParent()->getLayout()->createBlock('adminhtml/widget_button');
34
+
35
+ $params = array(
36
+ 'website' => $buttonBlock->getRequest()->getParam('website')
37
+ );
38
+
39
+ $data = array(
40
+ 'label' => Mage::helper('freight')->__('Export e-Sedex to CSV'),
41
+ 'onclick' => "setLocation('" . Mage::helper('adminhtml')->getUrl('freight/adminhtml_freights/export', $params) . "carrier/esedex')",
42
+ 'class' => chr(0),
43
+ );
44
+
45
+ $html = $buttonBlock->setData($data)->toHtml();
46
+
47
+ return $html;
48
+ }
49
+ }
app/code/local/Varien/Data/Form/Element/Export/Expressdelivery.php ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Utils - Basic features for magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Varien_Data_Form_Element_Export_Expressdelivery
29
+ extends Varien_Data_Form_Element_Abstract
30
+ {
31
+ public function getElementHtml()
32
+ {
33
+ $buttonBlock = $this->getForm()->getParent()->getLayout()->createBlock('adminhtml/widget_button');
34
+
35
+ $params = array(
36
+ 'website' => $buttonBlock->getRequest()->getParam('website')
37
+ );
38
+
39
+ $data = array(
40
+ 'label' => Mage::helper('freight')->__('Export Express Delivery to CSV'),
41
+ 'onclick' => "setLocation('" . Mage::helper('adminhtml')->getUrl('freight/adminhtml_freights/export', $params) . "carrier/expressdelivery')",
42
+ 'class' => chr(0),
43
+ );
44
+
45
+ $html = $buttonBlock->setData($data)->toHtml();
46
+
47
+ return $html;
48
+ }
49
+ }
app/code/local/Varien/Data/Form/Element/Export/Pac.php ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Utils - Basic features for magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Varien_Data_Form_Element_Export_Pac
29
+ extends Varien_Data_Form_Element_Abstract
30
+ {
31
+ public function getElementHtml()
32
+ {
33
+ $buttonBlock = $this->getForm()->getParent()->getLayout()->createBlock('adminhtml/widget_button');
34
+
35
+ $params = array(
36
+ 'website' => $buttonBlock->getRequest()->getParam('website')
37
+ );
38
+
39
+ $data = array(
40
+ 'label' => Mage::helper('freight')->__('Export PAC to CSV'),
41
+ 'onclick' => "setLocation('" . Mage::helper('adminhtml')->getUrl('freight/adminhtml_freights/export', $params) . "carrier/pac')",
42
+ 'class' => chr(0),
43
+ );
44
+
45
+ $html = $buttonBlock->setData($data)->toHtml();
46
+
47
+ return $html;
48
+ }
49
+ }
app/code/local/Varien/Data/Form/Element/Export/Plus.php ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Utils - Basic features for magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Varien_Data_Form_Element_Export_Plus
29
+ extends Varien_Data_Form_Element_Abstract
30
+ {
31
+ public function getElementHtml()
32
+ {
33
+ $buttonBlock = $this->getForm()->getParent()->getLayout()->createBlock('adminhtml/widget_button');
34
+
35
+ $params = array(
36
+ 'website' => $buttonBlock->getRequest()->getParam('website')
37
+ );
38
+
39
+ $data = array(
40
+ 'label' => Mage::helper('freight')->__('Export Plus to CSV'),
41
+ 'onclick' => "setLocation('" . Mage::helper('adminhtml')->getUrl('freight/adminhtml_freights/export', $params) . "carrier/plus')",
42
+ 'class' => chr(0),
43
+ );
44
+
45
+ $html = $buttonBlock->setData($data)->toHtml();
46
+
47
+ return $html;
48
+ }
49
+ }
app/code/local/Varien/Data/Form/Element/Export/Retire.php ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Utils - Basic features for magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Varien_Data_Form_Element_Export_Retire
29
+ extends Varien_Data_Form_Element_Abstract
30
+ {
31
+ public function getElementHtml()
32
+ {
33
+ $buttonBlock = $this->getForm()->getParent()->getLayout()->createBlock('adminhtml/widget_button');
34
+
35
+ $params = array(
36
+ 'website' => $buttonBlock->getRequest()->getParam('website')
37
+ );
38
+
39
+ $data = array(
40
+ 'label' => Mage::helper('freight')->__('Export Retire to CSV'),
41
+ 'onclick' => "setLocation('" . Mage::helper('adminhtml')->getUrl('freight/adminhtml_freights/export', $params) . "carrier/retire')",
42
+ 'class' => chr(0),
43
+ );
44
+
45
+ $html = $buttonBlock->setData($data)->toHtml();
46
+
47
+ return $html;
48
+ }
49
+ }
app/code/local/Varien/Data/Form/Element/Export/Sedex.php ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Utils - Basic features for magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Varien_Data_Form_Element_Export_Sedex
29
+ extends Varien_Data_Form_Element_Abstract
30
+ {
31
+ public function getElementHtml()
32
+ {
33
+ $buttonBlock = $this->getForm()->getParent()->getLayout()->createBlock('adminhtml/widget_button');
34
+
35
+ $params = array(
36
+ 'website' => $buttonBlock->getRequest()->getParam('website')
37
+ );
38
+
39
+ $data = array(
40
+ 'label' => Mage::helper('freight')->__('Export Sedex to CSV'),
41
+ 'onclick' => "setLocation('" . Mage::helper('adminhtml')->getUrl('freight/adminhtml_freights/export', $params) . "carrier/sedex')",
42
+ 'class' => chr(0),
43
+ );
44
+
45
+ $html = $buttonBlock->setData($data)->toHtml();
46
+
47
+ return $html;
48
+ }
49
+ }
app/code/local/Varien/Data/Form/Element/Price.php ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Gamuza Utils - Basic features for magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+
28
+ class Varien_Data_Form_Element_Price
29
+ extends Varien_Data_Form_Element_Abstract
30
+ {
31
+ public function getElementHtml()
32
+ {
33
+ $value = $this->getEscapedValue ();
34
+
35
+ $currency_symbol = Mage::helper ('utils')->getCurrencySymbol ();
36
+
37
+ return $currency_symbol . '&nbsp;' . number_format ($value, 2, ',', '.');
38
+ }
39
+ }
app/design/adminhtml/default/default/layout/slips.xml ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!--
3
+ /*
4
+ * Gamuza Slips - Slips and Deposits for Magento platform.
5
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ *
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
+ * Library General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA 02110-1301, USA.
21
+ */
22
+
23
+ /*
24
+ * See the AUTHORS file for a list of people on the Gamuza Team.
25
+ * See the ChangeLog files for a list of changes.
26
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
27
+ */
28
+ -->
29
+
30
+ <layout version="0.1.0">
31
+ <slips_adminhtml_transactions_index>
32
+ <reference name="content">
33
+ <block type="slips/adminhtml_transactions" name="transactions" />
34
+ </reference>
35
+ </slips_adminhtml_transactions_index>
36
+ </layout>
app/design/adminhtml/default/default/template/slips/bb/deposit.phtml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType (), 'information'); ?>
app/design/adminhtml/default/default/template/slips/bb/slip.phtml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <form method="post" id="slips_submit_form" action="<?php echo $this->_getStoreConfig ($this->getCcType (), 'submit_url'); ?>" onSubmit="GamuzaPaymentPopup (this);" target="_blank">
30
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType ()); ?>
31
+ </form>
app/design/adminhtml/default/default/template/slips/bradesco/deposit.phtml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType (), 'information'); ?>
app/design/adminhtml/default/default/template/slips/bradesco/slip.phtml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <form method="post" id="slips_submit_form" action="<?php echo $this->_getStoreConfig ($this->getCcType (), 'submit_url'); ?>" onSubmit="GamuzaPaymentPopup (this);" target="_blank">
30
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType ()); ?>
31
+ </form>
app/design/adminhtml/default/default/template/slips/cef/deposit.phtml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType (), 'information'); ?>
app/design/adminhtml/default/default/template/slips/cef/slip.phtml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <form method="post" id="slips_submit_form" action="<?php echo $this->_getStoreConfig ($this->getCcType (), 'submit_url'); ?>" onSubmit="GamuzaPaymentPopup (this);" target="_blank">
30
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType ()); ?>
31
+ </form>
app/design/adminhtml/default/default/template/slips/hsbc/deposit.phtml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType (), 'information'); ?>
app/design/adminhtml/default/default/template/slips/hsbc/slip.phtml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <form method="post" id="slips_submit_form" action="<?php echo $this->_getStoreConfig ($this->getCcType (), 'submit_url'); ?>" onSubmit="GamuzaPaymentPopup (this);" target="_blank">
30
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType ()); ?>
31
+ </form>
app/design/adminhtml/default/default/template/slips/nossacaixa/deposit.phtml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType (), 'information'); ?>
app/design/adminhtml/default/default/template/slips/nossacaixa/slip.phtml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <form method="post" id="slips_submit_form" action="<?php echo $this->_getStoreConfig ($this->getCcType (), 'submit_url'); ?>" onSubmit="GamuzaPaymentPopup(this);" target="_blank">
30
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType ()); ?>
31
+ </form>
app/design/adminhtml/default/default/template/slips/real/deposit.phtml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType (), 'information'); ?>
app/design/adminhtml/default/default/template/slips/real/slip.phtml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <form method="post" id="slips_submit_form" action="<?php echo $this->_getStoreConfig ($this->getCcType (), 'submit_url'); ?>" onSubmit="GamuzaPaymentPopup (this);" target="_blank">
30
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType ()); ?>
31
+ </form>
app/design/adminhtml/default/default/template/slips/santander/deposit.phtml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType (), 'information'); ?>
app/design/adminhtml/default/default/template/slips/santander/slip.phtml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <form method="post" id="slips_submit_form" action="<?php echo $this->_getStoreConfig ($this->getCcType (), 'submit_url'); ?>" onSubmit="GamuzaPaymentPopup (this);" target="_blank">
30
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType ()); ?>
31
+ </form>
app/design/adminhtml/default/default/template/slips/standard/form.phtml ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <?php $_code=$this->getMethodCode() ?>
30
+ <ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none;">
31
+ <li>
32
+ <label for="<?php echo $_code ?>_cc_type" class="required"><em>*</em><?php echo $this->__('Type') ?></label>
33
+ <div class="input-box" style="width:auto;">
34
+ <?php $_ccType = $this->getInfoData('cc_type') ?>
35
+ <div id="<?php echo $_code ?>_cc_type" style="display:inline-block;">
36
+ <?php foreach ($this->getAvailableCcTypes() as $_typeCode => $_typeName): ?>
37
+ <div style="display:inline-block; text-align:center; margin:15px; width:150px; vertical-align:top;">
38
+ <label for="<?php echo $_typeCode; ?>_cc_type">
39
+ <img src="<?php echo $this->getSkinUrl ("images/gamuza/slips/{$_typeCode}.png"); ?>" />
40
+ </label>
41
+ <br/>
42
+ <input type="radio" value="<?php echo $_typeCode ?>"
43
+ <?php if($_typeCode==$_ccType): ?> checked="checked"<?php endif ?>
44
+ name="payment[cc_type]"
45
+ title="<?php echo $_typeName; ?>"
46
+ class="validate-one-required-by-name"
47
+ id="<?php echo $_typeCode; ?>_cc_type" />
48
+ <span><label style="float:none;" for="<?php echo $_typeCode; ?>_cc_type"><?php echo Mage::helper ('slips')->__($_typeName); ?></label></span>
49
+ </div>
50
+ <?php endforeach ?>
51
+ <div>
52
+ </div>
53
+ </li>
54
+ <?php echo $this->getChildHtml() ?>
55
+ </ul>
app/design/adminhtml/default/default/template/slips/standard/info.phtml ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <p><strong><?php echo $this->htmlEscape($this->getMethod()->getTitle()) ?></strong></p>
30
+
31
+ <?php if ($_specificInfo = $this->getSpecificInformation()):?>
32
+ <table>
33
+ <tbody>
34
+ <?php foreach ($_specificInfo as $_label => $_value):?>
35
+ <tr>
36
+ <td><strong><?php echo $this->escapeHtml($_label)?>:</strong></td>
37
+ <td><?php echo nl2br(implode($this->getValueAsArray($_value, true), "\n"))?></td>
38
+ </tr>
39
+ <?php endforeach; ?>
40
+ </tbody>
41
+ </table>
42
+ <?php endif;?>
43
+
44
+ <?php if (!strcmp ($this->getRequest()->getControllerName(), 'onepage')): ?>
45
+ <?php
46
+ $popUpAlert1 = $this->helper ('slips')->__("Hmmm... We found a pop-up blocker in your web browser.");
47
+ $popUpAlert2 = $this->helper ('slips')->__("Please disable your pop-up blocker for this site and click on 'Submit' link again.");
48
+ ?>
49
+
50
+ <script type="text/javascript">
51
+ function GamuzaPaymentPopup (form)
52
+ {
53
+ popUp = window.open ("", 'gamuza_payment_popup');
54
+ if (popUp == null || typeof (popUp) == 'undefined')
55
+ {
56
+ alert("<?php echo $popUpAlert1; ?>" + '\n' + "<?php echo $popUpAlert2; ?>");
57
+
58
+ return false;
59
+ }
60
+ else
61
+ {
62
+ form.target = 'gamuza_payment_popup';
63
+ popUp.focus ();
64
+
65
+ return true;
66
+ }
67
+ }
68
+ </script>
69
+ <?php endif; ?>
70
+
71
+ <?php echo $this->getPaymentInfoHtml (); ?>
72
+
73
+ <?php if (!strcmp ($this->getRequest()->getControllerName(), 'onepage')): ?>
74
+ <script type="text/javascript">
75
+ Event.observe (window, "load", function (){
76
+ $('slips_submit_form').submit.click ();
77
+ });
78
+ </script>
79
+ <?php endif; ?>
80
+
81
+ <?php echo $this->getChildHtml(); ?>
app/design/adminhtml/default/default/template/slips/unibanco/deposit.phtml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType (), 'information'); ?>
app/design/adminhtml/default/default/template/slips/unibanco/slip.phtml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <form method="post" id="slips_submit_form" action="<?php echo $this->_getStoreConfig ($this->getCcType (), 'submit_url'); ?>" onSubmit="GamuzaPaymentPopup (this);" target="_blank">
30
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType ()); ?>
31
+ </form>
app/design/frontend/default/default/layout/utils.xml ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!--
3
+ /*
4
+ * Gamuza Utils - Basic features for magento platform.
5
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ *
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
+ * Library General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA 02110-1301, USA.
21
+ */
22
+
23
+ /*
24
+ * See the AUTHORS file for a list of people on the Gamuza Team.
25
+ * See the ChangeLog files for a list of changes.
26
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
27
+ */
28
+ -->
29
+
30
+ <layout version="0.1.0">
31
+ <checkout_onepage_success translate="label">
32
+ <reference name="content">
33
+ <reference name="checkout.success">
34
+ <block type="utils/onepage_success_info" />
35
+ <block type="sales/order_items" name="order_items" template="sales/order/items.phtml">
36
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/items/renderer/default.phtml</template></action>
37
+ <action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/items/renderer/default.phtml</template></action>
38
+ <block type="sales/order_totals" name="order_totals" template="sales/order/totals.phtml">
39
+ <action method="setLabelProperties"><value>colspan="4" class="a-right"</value></action>
40
+ <action method="setValueProperties"><value>class="last a-right"</value></action>
41
+ <block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml" />
42
+ </block>
43
+ </block>
44
+ <block type="utils/onepage_success_additional" />
45
+ </reference>
46
+ </reference>
47
+ </checkout_onepage_success>
48
+ </layout>
app/design/frontend/default/default/template/slips/bb/deposit.phtml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType (), 'information'); ?>
app/design/frontend/default/default/template/slips/bb/slip.phtml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <form method="post" id="slips_submit_form" action="<?php echo $this->_getStoreConfig ($this->getCcType (), 'submit_url'); ?>" onSubmit="GamuzaPaymentPopup (this);" target="_blank">
30
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType ()); ?>
31
+ </form>
app/design/frontend/default/default/template/slips/bradesco/deposit.phtml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType (), 'information'); ?>
app/design/frontend/default/default/template/slips/bradesco/slip.phtml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <form method="post" id="slips_submit_form" action="<?php echo $this->_getStoreConfig ($this->getCcType (), 'submit_url'); ?>" onSubmit="GamuzaPaymentPopup (this);" target="_blank">
30
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType ()); ?>
31
+ </form>
app/design/frontend/default/default/template/slips/cef/deposit.phtml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType (), 'information'); ?>
app/design/frontend/default/default/template/slips/cef/slip.phtml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <form method="post" id="slips_submit_form" action="<?php echo $this->_getStoreConfig ($this->getCcType (), 'submit_url'); ?>" onSubmit="GamuzaPaymentPopup (this);" target="_blank">
30
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType ()); ?>
31
+ </form>
app/design/frontend/default/default/template/slips/hsbc/deposit.phtml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType (), 'information'); ?>
app/design/frontend/default/default/template/slips/hsbc/slip.phtml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <form method="post" id="slips_submit_form" action="<?php echo $this->_getStoreConfig ($this->getCcType (), 'submit_url'); ?>" onSubmit="GamuzaPaymentPopup (this);" target="_blank">
30
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType ()); ?>
31
+ </form>
app/design/frontend/default/default/template/slips/nossacaixa/deposit.phtml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType (), 'information'); ?>
app/design/frontend/default/default/template/slips/nossacaixa/slip.phtml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <form method="post" id="slips_submit_form" action="<?php echo $this->_getStoreConfig ($this->getCcType (), 'submit_url'); ?>" onSubmit="GamuzaPaymentPopup(this);" target="_blank">
30
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType ()); ?>
31
+ </form>
app/design/frontend/default/default/template/slips/real/deposit.phtml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType (), 'information'); ?>
app/design/frontend/default/default/template/slips/real/slip.phtml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <form method="post" id="slips_submit_form" action="<?php echo $this->_getStoreConfig ($this->getCcType (), 'submit_url'); ?>" onSubmit="GamuzaPaymentPopup (this);" target="_blank">
30
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType ()); ?>
31
+ </form>
app/design/frontend/default/default/template/slips/santander/deposit.phtml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType (), 'information'); ?>
app/design/frontend/default/default/template/slips/santander/slip.phtml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <form method="post" id="slips_submit_form" action="<?php echo $this->_getStoreConfig ($this->getCcType (), 'submit_url'); ?>" onSubmit="GamuzaPaymentPopup (this);" target="_blank">
30
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType ()); ?>
31
+ </form>
app/design/frontend/default/default/template/slips/standard/form.phtml ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <?php $_code=$this->getMethodCode() ?>
30
+ <ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none;">
31
+ <li>
32
+ <label for="<?php echo $_code ?>_cc_type" class="required"><em>*</em><?php echo $this->__('Type') ?></label>
33
+ <div class="input-box" style="width:auto;">
34
+ <?php $_ccType = $this->getInfoData('cc_type') ?>
35
+ <div id="<?php echo $_code ?>_cc_type" style="display:inline-block;">
36
+ <?php foreach ($this->getAvailableCcTypes() as $_typeCode => $_typeName): ?>
37
+ <div style="display:inline-block; text-align:center; margin:15px; width:150px; vertical-align:top;">
38
+ <label for="<?php echo $_typeCode; ?>_cc_type">
39
+ <img src="<?php echo $this->getSkinUrl ("images/gamuza/slips/{$_typeCode}.png"); ?>" />
40
+ </label>
41
+ <br/>
42
+ <input type="radio" value="<?php echo $_typeCode ?>"
43
+ <?php if($_typeCode==$_ccType): ?> checked="checked"<?php endif ?>
44
+ name="payment[cc_type]"
45
+ title="<?php echo $_typeName; ?>"
46
+ class="validate-one-required-by-name"
47
+ id="<?php echo $_typeCode; ?>_cc_type" />
48
+ <span><label style="float:none;" for="<?php echo $_typeCode; ?>_cc_type"><?php echo Mage::helper ('slips')->__($_typeName); ?></label></span>
49
+ </div>
50
+ <?php endforeach ?>
51
+ </div>
52
+ </div>
53
+ </li>
54
+ <?php echo $this->getChildHtml() ?>
55
+ </ul>
app/design/frontend/default/default/template/slips/standard/info.phtml ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <p><strong><?php echo $this->htmlEscape($this->getMethod()->getTitle()) ?></strong></p>
30
+
31
+ <?php if ($_specificInfo = $this->getSpecificInformation()):?>
32
+ <table>
33
+ <tbody>
34
+ <?php foreach ($_specificInfo as $_label => $_value):?>
35
+ <tr>
36
+ <td><strong><?php echo $this->escapeHtml($_label)?>:</strong></td>
37
+ <td><?php echo nl2br(implode($this->getValueAsArray($_value, true), "\n"))?></td>
38
+ </tr>
39
+ <?php endforeach; ?>
40
+ </tbody>
41
+ </table>
42
+ <?php endif;?>
43
+
44
+ <?php if (!strcmp ($this->getRequest()->getControllerName(), 'onepage')): ?>
45
+ <?php
46
+ $popUpAlert1 = $this->helper ('slips')->__("Hmmm... We found a pop-up blocker in your web browser.");
47
+ $popUpAlert2 = $this->helper ('slips')->__("Please disable your pop-up blocker for this site and click on 'Submit' link again.");
48
+ ?>
49
+
50
+ <script type="text/javascript">
51
+ function GamuzaPaymentPopup (form)
52
+ {
53
+ popUp = window.open ("", 'gamuza_payment_popup');
54
+ if (popUp == null || typeof (popUp) == 'undefined')
55
+ {
56
+ alert("<?php echo $popUpAlert1; ?>" + '\n' + "<?php echo $popUpAlert2; ?>");
57
+
58
+ return false;
59
+ }
60
+ else
61
+ {
62
+ form.target = 'gamuza_payment_popup';
63
+ popUp.focus ();
64
+
65
+ return true;
66
+ }
67
+ }
68
+ </script>
69
+ <?php endif; ?>
70
+
71
+ <?php echo $this->getPaymentInfoHtml (); ?>
72
+
73
+ <?php if (!strcmp ($this->getRequest()->getControllerName(), 'onepage')): ?>
74
+ <script type="text/javascript">
75
+ Event.observe (window, "load", function (){
76
+ $('slips_submit_form').submit.click ();
77
+ });
78
+ </script>
79
+ <?php endif; ?>
80
+
81
+ <?php echo $this->getChildHtml(); ?>
app/design/frontend/default/default/template/slips/unibanco/deposit.phtml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType (), 'information'); ?>
app/design/frontend/default/default/template/slips/unibanco/slip.phtml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Slips - Slips and Deposits for Magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <form method="post" id="slips_submit_form" action="<?php echo $this->_getStoreConfig ($this->getCcType (), 'submit_url'); ?>" onSubmit="GamuzaPaymentPopup (this);" target="_blank">
30
+ <?php echo $this->getPaymentInfoHtml ($this->getCcType ()); ?>
31
+ </form>
app/design/frontend/default/default/template/utils/onepage/success/additional.phtml ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Utils - Basic features for magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <?php $_order = $this->getOrder (); ?>
30
+ <div class="col2-set">
31
+ <div class="col-1">
32
+ <?php if($this->helper('giftmessage/message')->getIsMessagesAvailable('order', $_order) && $_order->getGiftMessageId()): ?>
33
+ <div class="order-additional order-gift-message">
34
+ <h2 class="sub-title"><?php echo $this->__('Gift Message for This Order') ?></h2>
35
+ </div>
36
+ <?php $_giftMessage=$this->helper('giftmessage/message')->getGiftMessageForEntity($_order); ?>
37
+ <dl class="gift-message">
38
+ <dt><strong><?php echo $this->__('From:') ?></strong> <?php echo $this->htmlEscape($_giftMessage->getSender()) ?></dt>
39
+ <dt><strong><?php echo $this->__('To:') ?></strong> <?php echo $this->htmlEscape($_giftMessage->getRecipient()) ?></dt>
40
+ <dd><?php echo $this->helper('giftmessage/message')->getEscapedGiftMessage($_order) ?></dd>
41
+ </dl>
42
+ <?php endif; ?>
43
+ </div>
44
+ <div class="col-2">
45
+ <?php $_history = $this->getOrder()->getVisibleStatusHistory() ?>
46
+ <?php if (count($_history)): ?>
47
+ <div class="order-additional order-comments">
48
+ <h2 class="sub-title"><?php echo $this->__('About Your Order') ?></h2>
49
+ <dl class="order-about">
50
+ <?php foreach ($_history as $_historyItem): ?>
51
+ <dt><?php echo $this->formatDate($_historyItem->getCreatedAtStoreDate(), 'medium', true) ?></dt>
52
+ <dd><?php echo $this->escapeHtml($_historyItem->getComment()) ?></dd>
53
+ <?php endforeach; ?>
54
+ </dl>
55
+ </div>
56
+ <?php endif; ?>
57
+ </div>
58
+ </div>
app/design/frontend/default/default/template/utils/onepage/success/info.phtml ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /*
3
+ * Gamuza Utils - Basic features for magento platform.
4
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Library General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Library General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Library General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
+ * Boston, MA 02110-1301, USA.
20
+ */
21
+
22
+ /*
23
+ * See the AUTHORS file for a list of people on the Gamuza Team.
24
+ * See the ChangeLog files for a list of changes.
25
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
26
+ */
27
+ -->
28
+
29
+ <?php $_order = $this->getOrder (); ?>
30
+ <dl class="order-info">
31
+ <dt><?php echo $this->helper ('utils')->__('About This Order:'); ?></dt>
32
+ <dd>
33
+ <ul id="order-info-tabs">
34
+ <li class="current first last"><?php echo $this->helper ('utils')->__('Order Information'); ?></li>
35
+ </ul>
36
+ </dd>
37
+ </dl>
38
+ <p class="order-date"><?php echo $this->__('Order Date: %s', $this->formatDate($_order->getCreatedAtStoreDate(), 'long')) ?></p>
39
+ <?php if (!$_order->getIsVirtual()): ?>
40
+ <div class="col2-set order-info-box">
41
+ <div class="col-1">
42
+ <div class="box">
43
+ <div class="box-title">
44
+ <h2><?php echo $this->__('Shipping Address') ?></h2>
45
+ </div>
46
+ <div class="box-content">
47
+ <address><?php echo $_order->getShippingAddress()->format('html') ?></address>
48
+ </div>
49
+ </div>
50
+ </div>
51
+ <div class="col-2">
52
+ <div class="box">
53
+ <div class="box-title">
54
+ <h2><?php echo $this->__('Shipping Method') ?><?php /* | <a href="#"><?php echo $this->__('Track Order') ?></a>*/ ?></h2>
55
+ </div>
56
+ <div class="box-content">
57
+ <?php if ($_order->getShippingDescription()): ?>
58
+ <?php echo $_order->getShippingDescription() ?>
59
+ <?php else: ?>
60
+ <p><?php echo $this->helper('sales')->__('No shipping information available'); ?></p>
61
+ <?php endif; ?>
62
+ </div>
63
+ </div>
64
+ </div>
65
+ </div>
66
+ <?php endif; ?>
67
+ <div class="col2-set order-info-box">
68
+ <div class="col-1">
69
+ <div class="box">
70
+ <div class="box-title">
71
+ <h2><?php echo $this->__('Billing Address') ?></h2>
72
+ </div>
73
+ <div class="box-content">
74
+ <address><?php echo $_order->getBillingAddress()->format('html') ?></address>
75
+ </div>
76
+ </div>
77
+ </div>
78
+ <div class="col-2">
79
+ <div class="box box-payment">
80
+ <div class="box-title">
81
+ <h2><?php echo $this->__('Payment Method') ?></h2>
82
+ </div>
83
+ <div class="box-content">
84
+ <?php echo $this->getPaymentInfoHtml() ?>
85
+ </div>
86
+ </div>
87
+ </div>
88
+ </div>
89
+ <h2 class="table-caption"><?php echo $this->__('Items Ordered') ?></h2>
90
+ <script type="text/javascript">
91
+ //<![CDATA[
92
+ function giftMessageToogle(giftMessageIdentifier)
93
+ {
94
+ var link = $('order-item-gift-message-link-'+giftMessageIdentifier);
95
+ var container = $('order-item-gift-message-'+giftMessageIdentifier);
96
+ var row = $('order-item-row-'+giftMessageIdentifier);
97
+ if(link.expanded) {
98
+ link.expanded = false;
99
+ link.removeClassName('expanded');
100
+ if(container.hasClassName('last')) {
101
+ row.addClassName('last');
102
+ }
103
+ container.hide();
104
+ } else {
105
+ link.expanded = true;
106
+ link.addClassName('expanded');
107
+ if(container.hasClassName('last')) {
108
+ row.removeClassName('last');
109
+ }
110
+ container.show();
111
+ }
112
+
113
+ return false;
114
+ }
115
+ //]]>
116
+ </script>
app/etc/modules/Gamuza_Slips.xml ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!--
3
+ /*
4
+ * Gamuza Slips - Slips and Deposits for Magento platform.
5
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ *
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
+ * Library General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA 02110-1301, USA.
21
+ */
22
+
23
+ /*
24
+ * See the AUTHORS file for a list of people on the Gamuza Team.
25
+ * See the ChangeLog files for a list of changes.
26
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
27
+ */
28
+ -->
29
+
30
+ <config>
31
+ <modules>
32
+ <Gamuza_Slips>
33
+ <active>true</active>
34
+ <codePool>local</codePool>
35
+ <version>0.0.1</version>
36
+ <depends>
37
+ <Gamuza_Utils />
38
+ </depends>
39
+ </Gamuza_Slips>
40
+ </modules>
41
+ </config>
app/etc/modules/Gamuza_Utils.xml ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!--
3
+ /*
4
+ * Gamuza Utils - Basic features for magento platform.
5
+ * Copyright (C) 2012 Eneias Ramos de Melo <eneias@gamuza.com.br>
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ *
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
+ * Library General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA 02110-1301, USA.
21
+ */
22
+
23
+ /*
24
+ * See the AUTHORS file for a list of people on the Gamuza Team.
25
+ * See the ChangeLog files for a list of changes.
26
+ * These files are distributed with GamuzaSlips at ftp://code.google.com/p/gamuzaopen/.
27
+ */
28
+ -->
29
+
30
+ <config>
31
+ <modules>
32
+ <Gamuza_Utils>
33
+ <active>true</active>
34
+ <codePool>local</codePool>
35
+ <version>0.0.1</version>
36
+ <depends>
37
+ <Mage_Payment />
38
+ <Mage_Sales />
39
+ <Mage_Shipping />
40
+ </depends>
41
+ </Gamuza_Utils>
42
+ </modules>
43
+ </config>
package.xml ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>boleto-e-deposito-by-gamuza</name>
4
+ <version>0.0.1</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://www.opensource.org/licenses/gpl-license.php">GPL v2.0</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>&#xC9; importante oferecer aos clientes pagamento em boletos. A maior parte das vendas na loja partem desse m&#xE9;todo.</summary>
10
+ <description>Com o nosso m&#xF3;dulo de boletos, voc&#xEA; tem todas as op&#xE7;&#xE3;o para os bancos mais comuns do dia-a-dia e ainda tem a funcionalidade de dep&#xF3;sitos a seu dispor. E o seu cliente tem um anti-popup, n&#xE3;o se preocupe. N&#xF3;s avisamos&#x2026;</description>
11
+ <notes>* Boletos e dep&#xF3;sitos para os bancos mais comuns.&#xD;
12
+ * Emiss&#xE3;o de boleto din&#xE2;mico on-line.&#xD;
13
+ * Aviso de anti-popup.</notes>
14
+ <authors><author><name>Gamuza Brasil</name><user>gamuzabrasil</user><email>magento@gamuza.com.br</email></author></authors>
15
+ <date>2012-11-06</date>
16
+ <time>19:37:49</time>
17
+ <contents><target name="magelocal"><dir name="Gamuza"><dir name="Utils"><dir name="Block"><file name="About.php" hash="836168e4c1eb1fcd8defe02c29e4af4a"/><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><file name="Grid.php" hash="a2de24b7d565955a93be2503e696efe1"/><file name="View.php" hash="aa39bf9cad624136fb72bb43a98d1962"/></dir></dir><dir name="Widget"><dir name="Grid"><dir name="Column"><dir name="Renderer"><file name="Expiration.php" hash="ca6c98fe6907850d97543420ce9aed3f"/><file name="Price.php" hash="9e7f71621c4ada054a4ae1eea2eec2d2"/></dir></dir></dir></dir></dir><dir name="Onepage"><dir name="Success"><file name="Additional.php" hash="1522265ae2b3736672d94d5cc7f555ff"/><file name="Info.php" hash="251dd8d417e241988e2f4ce61765b657"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="927ca30af84ab3880695cb26786e9912"/></dir><dir name="Model"><file name="Config.php" hash="4b8c99a40866f2fdbdf31f30e3d302c8"/><file name="Utils.php" hash="d29eb5e89b1fe30db1149ffdcdd1f23b"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="UtilsController.php" hash="a1ab7767ecff9454a52e8907e808f016"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="1b556e31dd9afc9a105aaf69c71dcf32"/><file name="config.xml" hash="51e9b697f066ddfcc4308569d7c26515"/><file name="system.xml" hash="a844cd27af1acb3f9e76a7acdf25b3a3"/></dir><dir name="sql"><dir name="utils_setup"><file name="mysql4-install-0.0.1.php" hash="67f8ac0fe65b411f971250a486c20222"/></dir></dir></dir><dir name="Slips"><dir name="Block"><dir name="Adminhtml"><dir name="Transactions"><dir name="Edit"><file name="Form.php" hash="c57143a75d01bbea8901f84271634317"/><dir name="Tab"><file name="Form.php" hash="3d000c5cabfd79913298e00cbc751b3f"/></dir><file name="Tabs.php" hash="0b4262465e01ad1f166dbe4987d68fab"/></dir><file name="Edit.php" hash="7880412f1f78b43eb19b9fcc66e7eb68"/><file name="Grid.php" hash="d35234dfe707ac75e9200d3a2ffeca2a"/></dir><file name="Transactions.php" hash="c70d59208294341cd7d2457e1356676f"/></dir><dir name="Bb"><file name="Deposit.php" hash="6c1724dabef5fd76274e5465efa1129d"/><file name="Slip.php" hash="5826b6877009908b921628641c0eaac4"/></dir><dir name="Bradesco"><file name="Deposit.php" hash="2049e77a71e9e474ba45c522a5073f55"/><file name="Slip.php" hash="988b6641637f39ffff6318496d12e5b4"/></dir><dir name="Cef"><file name="Deposit.php" hash="f60969d6a93028f9ad01b0b990a147fb"/><file name="Slip.php" hash="d259aeed12f00a4f94598a5702570fb8"/></dir><dir name="Hsbc"><file name="Deposit.php" hash="b84de457bf200cb5f8ab6ad5f65dff54"/><file name="Slip.php" hash="4df116337d53429801ee05016b31062a"/></dir><dir name="Nossacaixa"><file name="Deposit.php" hash="75bd2899c25c0639cc5aa50be2005383"/><file name="Slip.php" hash="16a9c5eede60b35db9f5d08b7a72688a"/></dir><dir name="Real"><file name="Deposit.php" hash="fc2f4f7f7484fe18fd52ee1a8e0855e6"/><file name="Slip.php" hash="2eb984ae05f336d777cfef5c1cf9fa8e"/></dir><dir name="Santander"><file name="Deposit.php" hash="adbcecf24b91ce4c4d58699354911615"/><file name="Slip.php" hash="8a59dcb441e0c30a53cd323a7d15cff8"/></dir><dir name="Standard"><file name="Form.php" hash="7f31a0a50a45ba8b11a87aeb8e6be54a"/><file name="Info.php" hash="aa95b493c288422533a435337368bb7e"/></dir><dir name="Unibanco"><file name="Deposit.php" hash="59a5f92747dfb517ae59e71bd94e054f"/><file name="Slip.php" hash="4be0fd323be15e086288ba91557547df"/></dir></dir><dir name="Helper"><file name="Data.php" hash="a1e42e04cc8cdda283b00f27e8189b51"/></dir><dir name="Model"><file name="Config.php" hash="8e335d09a1ef3da6f84f293fa1b19a75"/><dir name="Mysql4"><dir name="Transactions"><file name="Collection.php" hash="0f31493ece880083765ac7d7e09f6fe8"/></dir><file name="Transactions.php" hash="2bf4618ba6c9321349ce4f96b4d9a46a"/></dir><dir name="Observer"><file name="Invoice.php" hash="08032fc05ff91f158117c6e5684bb111"/></dir><file name="Standard.php" hash="babe8f49c57527b61fa173f39a138f74"/><dir name="System"><dir name="Config"><dir name="Source"><dir name="Order"><file name="Status.php" hash="cd21bb6009c3775060cfee65c330970f"/></dir><dir name="Payment"><file name="Types.php" hash="c12f9723703a229e3f07eb1e3f0bcd68"/></dir></dir></dir></dir><file name="Transactions.php" hash="229c9a140ab3489dc25da2918d623ff4"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="TransactionsController.php" hash="8a5815579fdaa9494f202f242b244ebb"/></dir><file name="StandardController.php" hash="0074e4430e1f02d48801a568be550d48"/></dir><dir name="etc"><file name="adminhtml.xml" hash="4cd3c720f5c04a75c9a3509c72851fc7"/><file name="config.xml" hash="841e07651b0442e792364039917a9f06"/><file name="system.xml" hash="874c4e347543feab6f765ed052b72135"/></dir><dir name="sql"><dir name="slips_setup"><file name="mysql4-install-0.0.1.php" hash="c84f895b3978b647ace335791e32cb40"/></dir></dir></dir></dir><dir name="Varien"><dir name="Data"><dir name="Form"><dir name="Element"><file name="Expiration.php" hash="30d5a9a9756be854ca666e4c79cce97e"/><dir name="Export"><file name="Esedex.php" hash="a207055ce62fc4c9d649a90e105cc610"/><file name="Expressdelivery.php" hash="617fa3563e4181e56535ea8f5e88440c"/><file name="Pac.php" hash="79f687a55a2141bd7c0cfdad6bbb4815"/><file name="Plus.php" hash="6bd6a7946fd6b2e60053476a49bd7ee5"/><file name="Retire.php" hash="b96fa33d0dac996c46ef059c2d9e4127"/><file name="Sedex.php" hash="62cb9461d0e7ad4ac59f6c6d5f7524e1"/></dir><file name="Price.php" hash="ff1d79762d6f8b5f0e317468e69d56f3"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Gamuza_Utils.xml" hash="53689e0a872022172f3b8dd590bf8faf"/><file name="Gamuza_Slips.xml" hash="4a9cf709390ef62369c4d222a1ecd2ae"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="utils.xml" hash="ef89e6d4f90717a49e0b1767a94f658a"/></dir><dir name="template"><dir name="utils"><dir name="onepage"><dir name="success"><file name="additional.phtml" hash="8420fb2eeef0d0bb9592f2cd69d78ce1"/><file name="info.phtml" hash="2400c6faca74c1656101699f0186790b"/></dir></dir></dir><dir name="slips"><dir name="bb"><file name="deposit.phtml" hash="52218a25dcf780e4a0768c62bc4bf3f0"/><file name="slip.phtml" hash="c9ce4860cad71f82ccf5b673c776f21c"/></dir><dir name="bradesco"><file name="deposit.phtml" hash="52218a25dcf780e4a0768c62bc4bf3f0"/><file name="slip.phtml" hash="c9ce4860cad71f82ccf5b673c776f21c"/></dir><dir name="cef"><file name="deposit.phtml" hash="52218a25dcf780e4a0768c62bc4bf3f0"/><file name="slip.phtml" hash="c9ce4860cad71f82ccf5b673c776f21c"/></dir><dir name="hsbc"><file name="deposit.phtml" hash="52218a25dcf780e4a0768c62bc4bf3f0"/><file name="slip.phtml" hash="c9ce4860cad71f82ccf5b673c776f21c"/></dir><dir name="nossacaixa"><file name="deposit.phtml" hash="52218a25dcf780e4a0768c62bc4bf3f0"/><file name="slip.phtml" hash="f0701221c0fcd4f1d860b764a31df210"/></dir><dir name="real"><file name="deposit.phtml" hash="52218a25dcf780e4a0768c62bc4bf3f0"/><file name="slip.phtml" hash="c9ce4860cad71f82ccf5b673c776f21c"/></dir><dir name="santander"><file name="deposit.phtml" hash="52218a25dcf780e4a0768c62bc4bf3f0"/><file name="slip.phtml" hash="c9ce4860cad71f82ccf5b673c776f21c"/></dir><dir name="standard"><file name="form.phtml" hash="d65fda71415e187e0f0814cc39499222"/><file name="info.phtml" hash="b8b0016547e8aefcacd580c5c7e4f359"/></dir><dir name="unibanco"><file name="deposit.phtml" hash="52218a25dcf780e4a0768c62bc4bf3f0"/><file name="slip.phtml" hash="c9ce4860cad71f82ccf5b673c776f21c"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="slips.xml" hash="d4e3fd0b51b42eda3758af7fbc7b1e03"/></dir><dir name="template"><dir name="slips"><dir name="bb"><file name="deposit.phtml" hash="52218a25dcf780e4a0768c62bc4bf3f0"/><file name="slip.phtml" hash="c9ce4860cad71f82ccf5b673c776f21c"/></dir><dir name="bradesco"><file name="deposit.phtml" hash="52218a25dcf780e4a0768c62bc4bf3f0"/><file name="slip.phtml" hash="c9ce4860cad71f82ccf5b673c776f21c"/></dir><dir name="cef"><file name="deposit.phtml" hash="52218a25dcf780e4a0768c62bc4bf3f0"/><file name="slip.phtml" hash="c9ce4860cad71f82ccf5b673c776f21c"/></dir><dir name="hsbc"><file name="deposit.phtml" hash="52218a25dcf780e4a0768c62bc4bf3f0"/><file name="slip.phtml" hash="c9ce4860cad71f82ccf5b673c776f21c"/></dir><dir name="nossacaixa"><file name="deposit.phtml" hash="52218a25dcf780e4a0768c62bc4bf3f0"/><file name="slip.phtml" hash="f0701221c0fcd4f1d860b764a31df210"/></dir><dir name="real"><file name="deposit.phtml" hash="52218a25dcf780e4a0768c62bc4bf3f0"/><file name="slip.phtml" hash="c9ce4860cad71f82ccf5b673c776f21c"/></dir><dir name="santander"><file name="deposit.phtml" hash="52218a25dcf780e4a0768c62bc4bf3f0"/><file name="slip.phtml" hash="c9ce4860cad71f82ccf5b673c776f21c"/></dir><dir name="standard"><file name="form.phtml" hash="8cbad6b9ec4b66a3936039cc256ace30"/><file name="info.phtml" hash="b8b0016547e8aefcacd580c5c7e4f359"/></dir><dir name="unibanco"><file name="deposit.phtml" hash="52218a25dcf780e4a0768c62bc4bf3f0"/><file name="slip.phtml" hash="c9ce4860cad71f82ccf5b673c776f21c"/></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="gamuza"><dir name="utils"><file name="gamuza-magento-modules.png" hash="efa43abc433c1e3559c571c4bdfe85e8"/></dir><dir name="slips"><file name="BB_DEPOSIT.png" hash="a895576173268bd55c2960172b5fdf08"/><file name="BB_SLIP.png" hash="a55df8b84bef77f3a551c8e8a810672c"/><file name="BRADESCO_DEPOSIT.png" hash="590e636b04006ded086d158fd53c0bba"/><file name="BRADESCO_SLIP.png" hash="627914a4592ca0039e841d8c419dfae8"/><file name="CEF_DEPOSIT.png" hash="91af1194a54db857d5d329a810c347f7"/><file name="CEF_SLIP.png" hash="7f3730cb814740ac4c886eba1338943d"/><file name="HSBC_DEPOSIT.png" hash="1d8b55446176a4100fc77164f4b6f3fc"/><file name="HSBC_SLIP.png" hash="de8aea4a2549f435d6937ef99fd7fe33"/><file name="NOSSACAIXA_DEPOSIT.png" hash="e979b64dc1bc49d94bbe3de36f8bb7b3"/><file name="NOSSACAIXA_SLIP.png" hash="52b189e363838009e91b9ff651d4b9cc"/><file name="REAL_DEPOSIT.png" hash="19d6fc81469d72d0e4c06b43dc8f7c59"/><file name="REAL_SLIP.png" hash="4b95a07bd8b4da124ef0a4446e609c23"/><file name="SANTANDER_DEPOSIT.png" hash="fb6041becc3a8bd1bc26282fb8965112"/><file name="SANTANDER_SLIP.png" hash="a21f965dafc9358b2283571d2d419928"/><file name="UNIBANCO_DEPOSIT.png" hash="701435dd8a5536f97ac1133d47ee0df6"/><file name="UNIBANCO_SLIP.png" hash="8bfe866e3a07a1de51930136439150c4"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="images"><dir name="gamuza"><dir name="slips"><file name="BB_DEPOSIT.png" hash="a895576173268bd55c2960172b5fdf08"/><file name="BB_SLIP.png" hash="a55df8b84bef77f3a551c8e8a810672c"/><file name="BRADESCO_DEPOSIT.png" hash="590e636b04006ded086d158fd53c0bba"/><file name="BRADESCO_SLIP.png" hash="627914a4592ca0039e841d8c419dfae8"/><file name="CEF_DEPOSIT.png" hash="91af1194a54db857d5d329a810c347f7"/><file name="CEF_SLIP.png" hash="7f3730cb814740ac4c886eba1338943d"/><file name="HSBC_DEPOSIT.png" hash="1d8b55446176a4100fc77164f4b6f3fc"/><file name="HSBC_SLIP.png" hash="de8aea4a2549f435d6937ef99fd7fe33"/><file name="NOSSACAIXA_DEPOSIT.png" hash="e979b64dc1bc49d94bbe3de36f8bb7b3"/><file name="NOSSACAIXA_SLIP.png" hash="52b189e363838009e91b9ff651d4b9cc"/><file name="REAL_DEPOSIT.png" hash="19d6fc81469d72d0e4c06b43dc8f7c59"/><file name="REAL_SLIP.png" hash="4b95a07bd8b4da124ef0a4446e609c23"/><file name="SANTANDER_DEPOSIT.png" hash="fb6041becc3a8bd1bc26282fb8965112"/><file name="SANTANDER_SLIP.png" hash="a21f965dafc9358b2283571d2d419928"/><file name="UNIBANCO_DEPOSIT.png" hash="701435dd8a5536f97ac1133d47ee0df6"/><file name="UNIBANCO_SLIP.png" hash="8bfe866e3a07a1de51930136439150c4"/></dir></dir></dir></dir></dir></dir></target></contents>
18
+ <compatible/>
19
+ <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
20
+ </package>
skin/adminhtml/default/default/images/gamuza/slips/BB_DEPOSIT.png ADDED
Binary file
skin/adminhtml/default/default/images/gamuza/slips/BB_SLIP.png ADDED
Binary file
skin/adminhtml/default/default/images/gamuza/slips/BRADESCO_DEPOSIT.png ADDED
Binary file
skin/adminhtml/default/default/images/gamuza/slips/BRADESCO_SLIP.png ADDED
Binary file
skin/adminhtml/default/default/images/gamuza/slips/CEF_DEPOSIT.png ADDED
Binary file
skin/adminhtml/default/default/images/gamuza/slips/CEF_SLIP.png ADDED
Binary file
skin/adminhtml/default/default/images/gamuza/slips/HSBC_DEPOSIT.png ADDED
Binary file
skin/adminhtml/default/default/images/gamuza/slips/HSBC_SLIP.png ADDED
Binary file
skin/adminhtml/default/default/images/gamuza/slips/NOSSACAIXA_DEPOSIT.png ADDED
Binary file
skin/adminhtml/default/default/images/gamuza/slips/NOSSACAIXA_SLIP.png ADDED
Binary file
skin/adminhtml/default/default/images/gamuza/slips/REAL_DEPOSIT.png ADDED
Binary file
skin/adminhtml/default/default/images/gamuza/slips/REAL_SLIP.png ADDED
Binary file
skin/adminhtml/default/default/images/gamuza/slips/SANTANDER_DEPOSIT.png ADDED
Binary file
skin/adminhtml/default/default/images/gamuza/slips/SANTANDER_SLIP.png ADDED
Binary file
skin/adminhtml/default/default/images/gamuza/slips/UNIBANCO_DEPOSIT.png ADDED
Binary file
skin/adminhtml/default/default/images/gamuza/slips/UNIBANCO_SLIP.png ADDED
Binary file
skin/adminhtml/default/default/images/gamuza/utils/gamuza-magento-modules.png ADDED
Binary file
skin/frontend/default/default/images/gamuza/slips/BB_DEPOSIT.png ADDED
Binary file
skin/frontend/default/default/images/gamuza/slips/BB_SLIP.png ADDED
Binary file
skin/frontend/default/default/images/gamuza/slips/BRADESCO_DEPOSIT.png ADDED
Binary file
skin/frontend/default/default/images/gamuza/slips/BRADESCO_SLIP.png ADDED
Binary file
skin/frontend/default/default/images/gamuza/slips/CEF_DEPOSIT.png ADDED
Binary file
skin/frontend/default/default/images/gamuza/slips/CEF_SLIP.png ADDED
Binary file
skin/frontend/default/default/images/gamuza/slips/HSBC_DEPOSIT.png ADDED
Binary file
skin/frontend/default/default/images/gamuza/slips/HSBC_SLIP.png ADDED
Binary file
skin/frontend/default/default/images/gamuza/slips/NOSSACAIXA_DEPOSIT.png ADDED
Binary file
skin/frontend/default/default/images/gamuza/slips/NOSSACAIXA_SLIP.png ADDED
Binary file
skin/frontend/default/default/images/gamuza/slips/REAL_DEPOSIT.png ADDED
Binary file
skin/frontend/default/default/images/gamuza/slips/REAL_SLIP.png ADDED
Binary file
skin/frontend/default/default/images/gamuza/slips/SANTANDER_DEPOSIT.png ADDED
Binary file
skin/frontend/default/default/images/gamuza/slips/SANTANDER_SLIP.png ADDED
Binary file
skin/frontend/default/default/images/gamuza/slips/UNIBANCO_DEPOSIT.png ADDED
Binary file
skin/frontend/default/default/images/gamuza/slips/UNIBANCO_SLIP.png ADDED
Binary file