Easy_PDF_Invoice - Version 1.2.0.3

Version Notes

- Allow to print orders
- Allow to print invoices
- Allow to print packingslips
- Allow to print credit memos
- Allow to attach order pdf in email
- Allow to attach invoice pdf in email
- Compatible with Aschroder_SMTPPro

Download this release

Release Info

Developer Magento Core Team
Extension Easy_PDF_Invoice
Version 1.2.0.3
Comparing to
See all releases


Code changes from version 1.2.0.2.18 to 1.2.0.3

app/code/community/VES/PdfPro/Block/Adminhtml/Sales/Order/Creditmemo/View.php CHANGED
@@ -31,6 +31,7 @@ class VES_PdfPro_Block_Adminhtml_Sales_Order_Creditmemo_View extends Mage_Adminh
31
  protected function _prepareLayout(){
32
  if(!Mage::getStoreConfig('pdfpro/config/enabled')) return;
33
  $block = $this->getLayout()->getBlock('sales_creditmemo_view');
 
34
  if(Mage::getStoreConfig('pdfpro/config/remove_default_print')){
35
  $block->removeButton('print');
36
  }
31
  protected function _prepareLayout(){
32
  if(!Mage::getStoreConfig('pdfpro/config/enabled')) return;
33
  $block = $this->getLayout()->getBlock('sales_creditmemo_view');
34
+ if(!$block) return;
35
  if(Mage::getStoreConfig('pdfpro/config/remove_default_print')){
36
  $block->removeButton('print');
37
  }
app/code/community/VES/PdfPro/Block/Adminhtml/Sales/Order/Invoice/View.php CHANGED
@@ -31,6 +31,7 @@ class VES_PdfPro_Block_Adminhtml_Sales_Order_Invoice_View extends Mage_Adminhtml
31
  protected function _prepareLayout(){
32
  if(!Mage::getStoreConfig('pdfpro/config/enabled')) return;
33
  $block = $this->getLayout()->getBlock('sales_invoice_view');
 
34
  if(Mage::getStoreConfig('pdfpro/config/remove_default_print')){
35
  $block->removeButton('print');
36
  }
31
  protected function _prepareLayout(){
32
  if(!Mage::getStoreConfig('pdfpro/config/enabled')) return;
33
  $block = $this->getLayout()->getBlock('sales_invoice_view');
34
+ if(!$block) return;
35
  if(Mage::getStoreConfig('pdfpro/config/remove_default_print')){
36
  $block->removeButton('print');
37
  }
app/code/community/VES/PdfPro/Block/Adminhtml/Sales/Order/Shipment/View.php CHANGED
@@ -31,6 +31,7 @@ class VES_PdfPro_Block_Adminhtml_Sales_Order_Shipment_View extends Mage_Adminhtm
31
  protected function _prepareLayout(){
32
  if(!Mage::getStoreConfig('pdfpro/config/enabled')) return;
33
  $block = $this->getLayout()->getBlock('sales_shipment_view');
 
34
  if(Mage::getStoreConfig('pdfpro/config/remove_default_print')){
35
  $block->removeButton('print');
36
  }
31
  protected function _prepareLayout(){
32
  if(!Mage::getStoreConfig('pdfpro/config/enabled')) return;
33
  $block = $this->getLayout()->getBlock('sales_shipment_view');
34
+ if(!$block) return;
35
  if(Mage::getStoreConfig('pdfpro/config/remove_default_print')){
36
  $block->removeButton('print');
37
  }
app/code/community/VES/PdfPro/Block/Adminhtml/Sales/Order/View.php CHANGED
@@ -31,7 +31,7 @@ class VES_PdfPro_Block_Adminhtml_Sales_Order_View extends Mage_Adminhtml_Block_T
31
  protected function _prepareLayout(){
32
  if(!Mage::getStoreConfig('pdfpro/config/enabled') || !Mage::getStoreConfig('pdfpro/config/admin_print_order')) return;
33
  $block = $this->getLayout()->getBlock('sales_order_edit');
34
- $block->addButton('pdfpro_print', array(
35
  'label' => 'Easy PDF - '.Mage::helper('sales')->__('Print Order'),
36
  'class' => 'save',
37
  'onclick' => 'setLocation(\''.$this->getPrintUrl().'\')'
31
  protected function _prepareLayout(){
32
  if(!Mage::getStoreConfig('pdfpro/config/enabled') || !Mage::getStoreConfig('pdfpro/config/admin_print_order')) return;
33
  $block = $this->getLayout()->getBlock('sales_order_edit');
34
+ if($block) $block->addButton('pdfpro_print', array(
35
  'label' => 'Easy PDF - '.Mage::helper('sales')->__('Print Order'),
36
  'class' => 'save',
37
  'onclick' => 'setLocation(\''.$this->getPrintUrl().'\')'
app/code/community/VES/PdfPro/Helper/Data.php CHANGED
@@ -70,7 +70,7 @@ class VES_PdfPro_Helper_Data extends Mage_Core_Helper_Abstract
70
  ;
71
 
72
  $apiKey = $keyCollection->count()?$keyCollection->getFirstItem()->getApiKey():$this->getDefaultApiKey();
73
- $apiKeyObj = new Varien_Object(array('api_key'=>$apiKey));
74
  Mage::dispatchEvent('ves_pdfpro_apikey_prepare',array('obj'=>$apiKeyObj));
75
  $apiKey = $apiKeyObj->getApiKey();
76
  return $apiKey;
70
  ;
71
 
72
  $apiKey = $keyCollection->count()?$keyCollection->getFirstItem()->getApiKey():$this->getDefaultApiKey();
73
+ $apiKeyObj = new Varien_Object(array('api_key'=>$apiKey,'store_id'=>$storeId,'group_id'=>$groupId));
74
  Mage::dispatchEvent('ves_pdfpro_apikey_prepare',array('obj'=>$apiKeyObj));
75
  $apiKey = $apiKeyObj->getApiKey();
76
  return $apiKey;
app/code/community/VES/PdfPro/Model/Observer.php CHANGED
@@ -39,6 +39,8 @@ class VES_PdfPro_Model_Observer
39
  'label'=> 'Easy PDF - '.Mage::helper('pdfpro')->__('Print All'),
40
  'url' => Mage::helper('adminhtml')->getUrl('adminhtml/pdfpro_print/all'),
41
  ));
 
 
42
  }
43
  }else if($block instanceof Mage_Adminhtml_Block_Widget_Grid_Massaction_Abstract && ($block->getRequest()->getControllerName() == 'sales_invoice' || $block->getRequest()->getControllerName() == 'sales_order_invoice')){
44
  $block->addItem('easypdf-print-invoices', array(
@@ -94,6 +96,15 @@ class VES_PdfPro_Model_Observer
94
  'label'=> 'Easy PDF - '.Mage::helper('pdfpro')->__('Print All'),
95
  'url' => Mage::helper('adminhtml')->getUrl('adminhtml/pdfpro_print/all'),
96
  ));
 
 
 
 
 
 
 
 
 
97
  $block->addItem('print_shipping_label', array(
98
  'label'=> Mage::helper('sales')->__('Print Shipping Labels'),
99
  'url' => Mage::helper('adminhtml')->getUrl('adminhtml/sales_order_shipment/massPrintShippingLabel'),
@@ -112,6 +123,7 @@ class VES_PdfPro_Model_Observer
112
  'url' => Mage::helper('adminhtml')->getUrl('*/sales_order/deleteorder'),
113
  ));
114
  }
 
115
  }else if($block instanceof Mage_Adminhtml_Block_Widget_Grid_Massaction_Abstract && ($block->getRequest()->getControllerName() == 'sales_invoice' || $block->getRequest()->getControllerName() == 'sales_order_invoice')){
116
  $block->removeItem('pdfinvoices_order');
117
  }else if($block instanceof Mage_Adminhtml_Block_Widget_Grid_Massaction_Abstract && ($block->getRequest()->getControllerName() == 'sales_shipment' || $block->getRequest()->getControllerName() == 'sales_order_shipment')){
@@ -279,7 +291,9 @@ class VES_PdfPro_Model_Observer
279
  $itemData->setData('tax_amount',Mage::helper('pdfpro')->currency($item->getData('tax_amount'),$orderCurrencyCode));
280
  $itemData->setData('discount_percent',$orderItem->getData('discount_percent'));
281
  $itemData->setData('discount_rates',$orderItem->getData('discount_percent'));
282
-
 
 
283
  $itemData->setData('base_cost',Mage::helper('pdfpro')->currency($item->getData('base_cost'),$baseCurrencyCode));
284
  $itemData->setData('base_price',Mage::helper('pdfpro')->currency($item->getData('base_price'),$baseCurrencyCode));
285
  $itemData->setData('base_original_price',Mage::helper('pdfpro')->currency($item->getData('base_original_price'),$baseCurrencyCode));
39
  'label'=> 'Easy PDF - '.Mage::helper('pdfpro')->__('Print All'),
40
  'url' => Mage::helper('adminhtml')->getUrl('adminhtml/pdfpro_print/all'),
41
  ));
42
+ $customPrintouts = Mage::getStoreConfig('pdfpro/custom');
43
+ var_dump($customPrintouts);exit;
44
  }
45
  }else if($block instanceof Mage_Adminhtml_Block_Widget_Grid_Massaction_Abstract && ($block->getRequest()->getControllerName() == 'sales_invoice' || $block->getRequest()->getControllerName() == 'sales_order_invoice')){
46
  $block->addItem('easypdf-print-invoices', array(
96
  'label'=> 'Easy PDF - '.Mage::helper('pdfpro')->__('Print All'),
97
  'url' => Mage::helper('adminhtml')->getUrl('adminhtml/pdfpro_print/all'),
98
  ));
99
+
100
+ $customPrintouts = Mage::getStoreConfig('pdfpro/custom');
101
+ foreach($customPrintouts as $printout=>$title){
102
+ $block->addItem('easypdf-print-'.$printout, array(
103
+ 'label'=> 'Easy PDF - '.$title,
104
+ 'url' => Mage::helper('adminhtml')->getUrl('adminhtml/pdfpro_print/custom',array('type'=>$printout)),
105
+ ));
106
+ }
107
+
108
  $block->addItem('print_shipping_label', array(
109
  'label'=> Mage::helper('sales')->__('Print Shipping Labels'),
110
  'url' => Mage::helper('adminhtml')->getUrl('adminhtml/sales_order_shipment/massPrintShippingLabel'),
123
  'url' => Mage::helper('adminhtml')->getUrl('*/sales_order/deleteorder'),
124
  ));
125
  }
126
+
127
  }else if($block instanceof Mage_Adminhtml_Block_Widget_Grid_Massaction_Abstract && ($block->getRequest()->getControllerName() == 'sales_invoice' || $block->getRequest()->getControllerName() == 'sales_order_invoice')){
128
  $block->removeItem('pdfinvoices_order');
129
  }else if($block instanceof Mage_Adminhtml_Block_Widget_Grid_Massaction_Abstract && ($block->getRequest()->getControllerName() == 'sales_shipment' || $block->getRequest()->getControllerName() == 'sales_order_shipment')){
291
  $itemData->setData('tax_amount',Mage::helper('pdfpro')->currency($item->getData('tax_amount'),$orderCurrencyCode));
292
  $itemData->setData('discount_percent',$orderItem->getData('discount_percent'));
293
  $itemData->setData('discount_rates',$orderItem->getData('discount_percent'));
294
+ $itemData->setData('row_total_incl_discount',Mage::helper('pdfpro')->currency($item->getData('row_total_incl_tax') - $orderItem->getData('discount_amount')));
295
+ $itemData->setData('row_total_incl_discount_excl_tax',Mage::helper('pdfpro')->currency($item->getData('row_total') - $orderItem->getData('discount_amount')));
296
+
297
  $itemData->setData('base_cost',Mage::helper('pdfpro')->currency($item->getData('base_cost'),$baseCurrencyCode));
298
  $itemData->setData('base_price',Mage::helper('pdfpro')->currency($item->getData('base_price'),$baseCurrencyCode));
299
  $itemData->setData('base_original_price',Mage::helper('pdfpro')->currency($item->getData('base_original_price'),$baseCurrencyCode));
app/code/community/VES/PdfPro/controllers/Adminhtml/Pdfpro/PrintController.php CHANGED
@@ -64,6 +64,35 @@ class VES_PdfPro_Adminhtml_Pdfpro_PrintController extends Mage_Adminhtml_Control
64
  }
65
  }
66
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
 
68
  /**
69
  * Print An Invoice
64
  }
65
  }
66
 
67
+ /**
68
+ * Print Orders
69
+ */
70
+ public function customAction(){
71
+ $orderIds = $this->getRequest()->getParam('order_ids');
72
+ if (empty($orderIds)) {
73
+ Mage::getSingleton('adminhtml/session')->addError('There is no order to process');
74
+ $this->_redirect('adminhtml/sales_order');
75
+ return;
76
+ }
77
+ $orderDatas = array();
78
+ foreach($orderIds as $orderId){
79
+ $order = Mage::getModel('sales/order')->load($orderId);
80
+ if(!$order->getId()){continue;}
81
+ $orderDatas[] = Mage::getModel('pdfpro/order')->initOrderData($order);
82
+ }
83
+ try{
84
+ $type = $this->getRequest()->getParam('type','order');
85
+ $result = Mage::helper('pdfpro')->initPdf($orderDatas,$type);
86
+ if($result['success']){
87
+ $this->_prepareDownloadResponse(Mage::helper('pdfpro')->getFileName($type).'.pdf', $result['content']);
88
+ }else{
89
+ throw new Mage_Core_Exception($result['msg']);
90
+ }
91
+ }catch(Exception $e){
92
+ Mage::getSingleton('core/session')->addError($e->getMessage());
93
+ $this->_redirect('adminhtml/sales_order/index');
94
+ }
95
+ }
96
 
97
  /**
98
  * Print An Invoice
app/code/community/VES/PdfPro/controllers/Adminhtml/PrintController.php DELETED
@@ -1,328 +0,0 @@
1
- <?php
2
- /**
3
- * VES_PdfPro_Adminhtml_PrintController
4
- *
5
- * @author VnEcoms Team <support@vnecoms.com>
6
- * @website http://www.vnecoms.com
7
- */
8
-
9
- class VES_PdfPro_Adminhtml_PrintController extends Mage_Adminhtml_Controller_Action
10
- {
11
- /**
12
- * Print an Order
13
- */
14
- public function orderAction(){
15
- $orderId = $this->getRequest()->getParam('order_id');
16
- if (empty($orderId)) {
17
- Mage::getSingleton('adminhtml/session')->addError('There is no order to process');
18
- $this->_redirect('adminhtml/sales_order');
19
- return;
20
- }
21
-
22
- $order = Mage::getModel('sales/order')->load($orderId);
23
- if(!$order->getId()){$this->_forward('no-route');return;}
24
- $orderData= Mage::getModel('pdfpro/order')->initOrderData($order);
25
- try{
26
- $result = Mage::helper('pdfpro')->initPdf(array($orderData),'order');
27
- if($result['success']){
28
- $this->_prepareDownloadResponse(Mage::helper('pdfpro')->getFileName('order',$order).'.pdf', $result['content']);
29
- }else{
30
- throw new Mage_Core_Exception($result['msg']);
31
- }
32
- }catch(Exception $e){
33
- Mage::getSingleton('core/session')->addError($e->getMessage());
34
- $this->_redirect('adminhtml/sales_order/view',array('order_id'=>$orderId));
35
- }
36
- }
37
-
38
- /**
39
- * Print Orders
40
- */
41
- public function ordersAction(){
42
- $orderIds = $this->getRequest()->getParam('order_ids');
43
- if (empty($orderIds)) {
44
- Mage::getSingleton('adminhtml/session')->addError('There is no order to process');
45
- $this->_redirect('adminhtml/sales_order');
46
- return;
47
- }
48
- $orderDatas = array();
49
- foreach($orderIds as $orderId){
50
- $order = Mage::getModel('sales/order')->load($orderId);
51
- if(!$order->getId()){continue;}
52
- $orderDatas[] = Mage::getModel('pdfpro/order')->initOrderData($order);
53
- }
54
- try{
55
- $result = Mage::helper('pdfpro')->initPdf($orderDatas,'order');
56
- if($result['success']){
57
- $this->_prepareDownloadResponse(Mage::helper('pdfpro')->getFileName('orders').'.pdf', $result['content']);
58
- }else{
59
- throw new Mage_Core_Exception($result['msg']);
60
- }
61
- }catch(Exception $e){
62
- Mage::getSingleton('core/session')->addError($e->getMessage());
63
- $this->_redirect('adminhtml/sales_order/index');
64
- }
65
- }
66
-
67
-
68
- /**
69
- * Print An Invoice
70
- */
71
- public function invoiceAction(){
72
- $invoiceId = $this->getRequest()->getParam('invoice_id');
73
- $invoice = Mage::getModel('sales/order_invoice')->load($invoiceId);
74
- if (!$invoice->getId()) {
75
- $this->_getSession()->addError($this->__('The invoice no longer exists.'));
76
- $this->_forward('no-route');
77
- return;
78
- }
79
- $invoiceData = Mage::getModel('pdfpro/order_invoice')->initInvoiceData($invoice);
80
- try{
81
- $result = Mage::helper('pdfpro')->initPdf(array($invoiceData));
82
- if($result['success']){
83
- $this->_prepareDownloadResponse(Mage::helper('pdfpro')->getFileName('invoice',$invoice).'.pdf', $result['content']);
84
- }else{
85
- throw new Mage_Core_Exception($result['msg']);
86
- }
87
- }catch(Exception $e){
88
- Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
89
- $this->_redirect('adminhtml/sales_order_invoice/view',array('invoice_id'=>$invoiceId));
90
- }
91
- }
92
-
93
-
94
- /**
95
- * Print invoices
96
- */
97
- public function invoicesAction(){
98
- $orderIds = $this->getRequest()->getParam('order_ids');
99
- $invoiceIds = $this->getRequest()->getParam('invoice_ids');
100
- $flag = false;
101
- if (!empty($orderIds) || !empty($invoiceIds)) {
102
- $invoiceDatas = array();
103
- $invoices = Mage::getResourceModel('sales/order_invoice_collection')->addAttributeToSelect('*');
104
- if(!empty($orderIds)){
105
- $invoices->addFieldToFilter('order_id',array('in',$orderIds));
106
- }else if(!empty($invoiceIds)){
107
- $invoices->addFieldToFilter('entity_id',array('in',$invoiceIds));
108
- }
109
- $invoices->load();
110
- if($invoices->count() > 0) $flag = true;
111
- foreach($invoices as $invoice){
112
- $invoiceDatas[] = Mage::getModel('pdfpro/order_invoice')->initInvoiceData($invoice);
113
- }
114
- if ($flag) {
115
- try{
116
- $result = Mage::helper('pdfpro')->initPdf($invoiceDatas);
117
- if($result['success']){
118
- $this->_prepareDownloadResponse(Mage::helper('pdfpro')->getFileName('invoices').'.pdf', $result['content']);
119
- }else{
120
- throw new Mage_Core_Exception($result['msg']);
121
- }
122
- }catch(Exception $e){
123
- Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
124
- if(!empty($orderIds)) $this->_redirect('adminhtml/sales_order/index');
125
- else $this->_redirect('adminhtml/sales_invoice/index');
126
- }
127
- } else {
128
- if(!empty($orderIds)){
129
- $this->_getSession()->addError($this->__('There are no printable documents related to selected orders.'));
130
- }else{
131
- $this->_getSession()->addError($this->__('There are no printable documents related to selected invoices.'));
132
- }
133
- if(!empty($orderIds)) $this->_redirect('adminhtml/sales_order/index');
134
- else $this->_redirect('adminhtml/sales_invoice/index');
135
- }
136
- }
137
- }
138
-
139
- /**
140
- * Print A Packingslip
141
- */
142
- public function shipmentAction(){
143
- $shipmentId = $this->getRequest()->getParam('shipment_id');
144
- $shipment = Mage::getModel('sales/order_shipment')->load($shipmentId);
145
- if (!$shipment->getId()) {
146
- $this->_getSession()->addError($this->__('The shipment no longer exists.'));
147
- $this->_forward('no-route');
148
- return;
149
- }
150
- $shipmentData = Mage::getModel('pdfpro/order_shipment')->initShipmentData($shipment);
151
- try{
152
- $result = Mage::helper('pdfpro')->initPdf(array($shipmentData),'shipment');
153
- if($result['success']){
154
- $this->_prepareDownloadResponse(Mage::helper('pdfpro')->getFileName('shipment',$shipment).'.pdf', $result['content']);
155
- }else{
156
- throw new Mage_Core_Exception($result['msg']);
157
- }
158
- }catch(Exception $e){
159
- Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
160
- $this->_redirect('adminhtml/sales_order_shipment/view',array('shipment_id'=>$shipmentId));
161
- }
162
- }
163
-
164
- /**
165
- * Print Packingslips
166
- */
167
- public function shipmentsAction(){
168
- $orderIds = $this->getRequest()->getPost('order_ids');
169
- $shipmentIds = $this->getRequest()->getParam('shipment_ids');
170
- if (!empty($orderIds) || !empty($shipmentIds)) {
171
- $shipments = Mage::getResourceModel('sales/order_shipment_collection')->addAttributeToSelect('*');
172
- if(!empty($orderIds)){
173
- $shipments->addFieldToFilter('order_id',array('in',$orderIds));
174
- }else if(!empty($shipmentIds)){
175
- $shipments->addFieldToFilter('entity_id',array('in',$shipmentIds));
176
- }
177
- $shipments->load();
178
- if ($shipments->getSize()) {
179
- $shipmentDatas = array();
180
- foreach($shipments as $shipment){
181
- $shipmentDatas[] = Mage::getModel('pdfpro/order_shipment')->initShipmentData($shipment);
182
- }
183
- try{
184
- $result = Mage::helper('pdfpro')->initPdf($shipmentDatas,'shipment');
185
- if($result['success']){
186
- $this->_prepareDownloadResponse(Mage::helper('pdfpro')->getFileName('shipments').'.pdf', $result['content']);
187
- }else{
188
- throw new Mage_Core_Exception($result['msg']);
189
- }
190
- }catch(Exception $e){
191
- Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
192
- if(!empty($orderIds)) $this->_redirect('adminhtml/sales_order/index');
193
- else $this->_redirect('adminhtml/sales_shipment/index');
194
- }
195
- } else {
196
- $this->_getSession()->addError($this->__('There are no printable documents related to selected orders.'));
197
- if(!empty($orderIds)) $this->_redirect('adminhtml/sales_order/index');
198
- else $this->_redirect('adminhtml/sales_shipment/index');
199
- }
200
- }
201
- }
202
-
203
- /**
204
- * Print A Packingslip
205
- */
206
- public function creditmemoAction(){
207
- $creditmemoId = $this->getRequest()->getParam('creditmemo_id');
208
- $creditmemo = Mage::getModel('sales/order_creditmemo')->load($creditmemoId);
209
- if (!$creditmemo->getId()) {
210
- $this->_getSession()->addError($this->__('The shipment no longer exists.'));
211
- $this->_forward('no-route');
212
- return;
213
- }
214
- $creditmemoData = Mage::getModel('pdfpro/order_creditmemo')->initCreditmemoData($creditmemo);
215
- try{
216
- $result = Mage::helper('pdfpro')->initPdf(array($creditmemoData),'creditmemo');
217
- if($result['success']){
218
- $this->_prepareDownloadResponse(Mage::helper('pdfpro')->getFileName('creditmemo',$creditmemo).'.pdf', $result['content']);
219
- }else{
220
- throw new Mage_Core_Exception($result['msg']);
221
- }
222
- }catch(Exception $e){
223
- Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
224
- $this->_redirect('adminhtml/sales_order_creditmemo/view',array('creditmemo_id'=>$creditmemoId));
225
- }
226
- }
227
-
228
- /**
229
- * Print Packingslips
230
- */
231
- public function creditmemosAction(){
232
- $orderIds = $this->getRequest()->getPost('order_ids');
233
- $creditmemoIds = $this->getRequest()->getParam('creditmemo_ids');
234
- if (!empty($orderIds) || !empty($creditmemoIds)) {
235
- $creditmemos = Mage::getResourceModel('sales/order_creditmemo_collection')->addAttributeToSelect('*');
236
- if(!empty($orderIds)){
237
- $creditmemos->addFieldToFilter('order_id',array('in',$orderIds));
238
- }else if(!empty($creditmemoIds)){
239
- $creditmemos->addFieldToFilter('entity_id',array('in',$creditmemoIds));
240
- }
241
- $creditmemos->load();
242
- if ($creditmemos->getSize()) {
243
- $creditmemoDatas = array();
244
- foreach($creditmemos as $creditmemo){
245
- $creditmemoDatas[] = Mage::getModel('pdfpro/order_creditmemo')->initCreditmemoData($creditmemo);
246
- }
247
- try{
248
- $result = Mage::helper('pdfpro')->initPdf($creditmemoDatas,'creditmemo');
249
- if($result['success']){
250
- $this->_prepareDownloadResponse(Mage::helper('pdfpro')->getFileName('creditmemos').'.pdf', $result['content']);
251
- }else{
252
- throw new Mage_Core_Exception($result['msg']);
253
- }
254
- }catch(Exception $e){
255
- Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
256
- if(!empty($orderIds)) $this->_redirect('adminhtml/sales_order/index');
257
- else $this->_redirect('adminhtml/sales_creditmemo/index');
258
- }
259
- } else {
260
- $this->_getSession()->addError($this->__('There are no printable documents related to selected orders.'));
261
- if(!empty($orderIds)) $this->_redirect('adminhtml/sales_order/index');
262
- else $this->_redirect('adminhtml/sales_creditmemo/index');
263
- }
264
- }
265
- }
266
- /**
267
- * Print All
268
- */
269
- public function allAction(){
270
- $orderIds = $this->getRequest()->getPost('order_ids');
271
- $data = array();
272
- $canPrint = false;
273
- foreach($orderIds as $orderId){
274
- $item = array();
275
- $order = Mage::getModel('sales/order')->load($orderId);
276
- /*Init order data*/
277
- if(Mage::getStoreConfig('pdfpro/config/admin_print_order')){
278
- $item['order'][] = Mage::getModel('pdfpro/order')->initOrderData($order);
279
- $canPrint = true;
280
- }
281
- /*Init invoice data*/
282
- $invoices = Mage::getResourceModel('sales/order_invoice_collection')->addAttributeToSelect('*')->addFieldToFilter('order_id',$orderId);
283
- if($invoices->count() > 0){
284
- $invoiceDatas = array();
285
- foreach($invoices as $invoice){
286
- $invoiceDatas[] = Mage::getModel('pdfpro/order_invoice')->initInvoiceData($invoice);
287
- }
288
- $item['invoice'] = $invoiceDatas;
289
- $canPrint = true;
290
- }
291
-
292
- /*Init shipment data*/
293
- $shipments = Mage::getResourceModel('sales/order_shipment_collection')->addAttributeToSelect('*')->addFieldToFilter('order_id',$orderId);
294
- if($shipments->count() > 0){
295
- $shipmentDatas = array();
296
- foreach($shipments as $shipment){
297
- $shipmentDatas[] = Mage::getModel('pdfpro/order_shipment')->initShipmentData($shipment);
298
- }
299
- $item['shipment'] = $shipmentDatas;
300
- $canPrint = true;
301
- }
302
-
303
- /*Init credit memo data*/
304
- $creditmemos = Mage::getResourceModel('sales/order_creditmemo_collection')->addAttributeToSelect('*')->addFieldToFilter('order_id',$orderId);
305
- if($creditmemos->count() > 0){
306
- $creditmemoDatas = array();
307
- foreach($creditmemos as $creditmemo){
308
- $creditmemoDatas[] = Mage::getModel('pdfpro/order_creditmemo')->initCreditmemoData($creditmemo);
309
- }
310
- $item['creditmemo'] = $creditmemoDatas;
311
- $canPrint = true;
312
- }
313
- $data[] = $item;
314
- }
315
- try{
316
- if(!$canPrint){throw new Mage_Core_Exception($this->__('There are no printable documents related to selected orders.'));}
317
- $result = Mage::helper('pdfpro')->initPdf($data,'all');
318
- if($result['success']){
319
- $this->_prepareDownloadResponse(Mage::helper('pdfpro')->getFileName('all').'.pdf', $result['content']);
320
- }else{
321
- throw new Mage_Core_Exception($result['msg']);
322
- }
323
- }catch(Exception $e){
324
- Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
325
- $this->_redirect('adminhtml/sales_order/index');
326
- }
327
- }
328
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/VES/PdfPro/etc/config.xml CHANGED
@@ -245,6 +245,11 @@
245
  <currency_position>8</currency_position>
246
  <communication_method>soap</communication_method>
247
  </config>
 
 
 
 
 
248
  <filename_format>
249
  <order>order_$ID_$y-$MM-$dd_$HH-$mm-$ss</order>
250
  <orders>orders_$y-$MM-$dd_$HH-$mm-$ss</orders>
@@ -255,6 +260,9 @@
255
  <creditmemo>creditmemo_$ID_$y-$MM-$dd_$HH-$mm-$ss</creditmemo>
256
  <creditmemos>creditmemos_$y-$MM-$dd_$HH-$mm-$ss</creditmemos>
257
  <all>docs_$y-$MM-$dd_$HH-$mm-$ss</all>
 
 
 
258
  </filename_format>
259
  <notification>
260
  <notice>1</notice>
245
  <currency_position>8</currency_position>
246
  <communication_method>soap</communication_method>
247
  </config>
248
+ <custom>
249
+ <custom1>Print Custom 1</custom1>
250
+ <custom2>Print Custom 2</custom2>
251
+ <custom3>Print Custom 3</custom3>
252
+ </custom>
253
  <filename_format>
254
  <order>order_$ID_$y-$MM-$dd_$HH-$mm-$ss</order>
255
  <orders>orders_$y-$MM-$dd_$HH-$mm-$ss</orders>
260
  <creditmemo>creditmemo_$ID_$y-$MM-$dd_$HH-$mm-$ss</creditmemo>
261
  <creditmemos>creditmemos_$y-$MM-$dd_$HH-$mm-$ss</creditmemos>
262
  <all>docs_$y-$MM-$dd_$HH-$mm-$ss</all>
263
+ <custom1>custom1_$y-$MM-$dd_$HH-$mm-$ss</custom1>
264
+ <custom2>custom2_$y-$MM-$dd_$HH-$mm-$ss</custom2>
265
+ <custom3>custom3_$y-$MM-$dd_$HH-$mm-$ss</custom3>
266
  </filename_format>
267
  <notification>
268
  <notice>1</notice>
app/code/community/VES/PdfPro/etc/system.xml CHANGED
@@ -163,6 +163,40 @@
163
  </communication_method>
164
  </fields>
165
  </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
166
  <filename_format>
167
  <label>PDF file name format</label>
168
  <frontend_type>text</frontend_type>
@@ -846,6 +880,228 @@
846
  <show_in_store>1</show_in_store>
847
  <comment>When you you select "Print All"</comment>
848
  </all>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
849
  </fields>
850
  </filename_format>
851
  <notification>
163
  </communication_method>
164
  </fields>
165
  </config>
166
+ <custom>
167
+ <label>Custom PDF Printout</label>
168
+ <frontend_type>text</frontend_type>
169
+ <sort_order>12</sort_order>
170
+ <show_in_default>1</show_in_default>
171
+ <show_in_website>1</show_in_website>
172
+ <show_in_store>1</show_in_store>
173
+ <fields>
174
+ <custom1>
175
+ <label>Print Custom 1</label>
176
+ <frontend_type>text</frontend_type>
177
+ <sort_order>70</sort_order>
178
+ <show_in_default>1</show_in_default>
179
+ <show_in_website>1</show_in_website>
180
+ <show_in_store>1</show_in_store>
181
+ </custom1>
182
+ <custom2>
183
+ <label>Print Custom 2</label>
184
+ <frontend_type>text</frontend_type>
185
+ <sort_order>70</sort_order>
186
+ <show_in_default>1</show_in_default>
187
+ <show_in_website>1</show_in_website>
188
+ <show_in_store>1</show_in_store>
189
+ </custom2>
190
+ <custom3>
191
+ <label>Print Custom 3</label>
192
+ <frontend_type>text</frontend_type>
193
+ <sort_order>70</sort_order>
194
+ <show_in_default>1</show_in_default>
195
+ <show_in_website>1</show_in_website>
196
+ <show_in_store>1</show_in_store>
197
+ </custom3>
198
+ </fields>
199
+ </custom>
200
  <filename_format>
201
  <label>PDF file name format</label>
202
  <frontend_type>text</frontend_type>
880
  <show_in_store>1</show_in_store>
881
  <comment>When you you select "Print All"</comment>
882
  </all>
883
+ <custom1>
884
+ <label>Custom 1 PDF File Name Format</label>
885
+ <frontend_type>text</frontend_type>
886
+ <tooltip><![CDATA[
887
+ <table width="100%" style="background: #FAFAFA;">
888
+ <thead>
889
+ <tr>
890
+ <th width="35">Var</th>
891
+ <th>Description</th>
892
+ <th>values</th>
893
+ </tr>
894
+ </thead>
895
+ <tbody>
896
+ <tr>
897
+ <td><strong>$dd</strong></td>
898
+ <td>Day of the month</td>
899
+ <td><em>01</em> to <em>31</em></td>
900
+ </tr>
901
+
902
+ <tr>
903
+ <td><strong>$EEE</strong></td>
904
+ <td>Day of the week</td>
905
+ <td><em>Mon</em> to <em>Sun</em></td>
906
+ </tr>
907
+
908
+ <tr>
909
+ <td><strong>$MM</strong></td>
910
+ <td>Numeric representation of a month</td>
911
+ <td><em>01</em> to <em>12</em></td>
912
+ </tr>
913
+
914
+ <tr>
915
+ <td><strong>$MMM</strong></td>
916
+ <td>Textual representation of a month</td>
917
+ <td><em>Jan</em> to <em>Dec</em></td>
918
+ </tr>
919
+
920
+ <tr>
921
+ <td><strong>$y</strong></td>
922
+ <td>Numeric representation of a year</td>
923
+ <td>Ex: <em>1999</em></td>
924
+ </tr>
925
+
926
+ <tr>
927
+ <td><strong>$yy</strong></td>
928
+ <td>A two digit representation of a year</td>
929
+ <td>Ex: <em>99</em></td>
930
+ </tr>
931
+
932
+ <tr>
933
+ <td><strong>$HH</strong></td>
934
+ <td>24-hour format of an hour</td>
935
+ <td><em>00</em> to <em>23</em></td>
936
+ </tr>
937
+
938
+ <tr>
939
+ <td><strong>$mm</strong></td>
940
+ <td>Minutes with leading zeros</td>
941
+ <td><em>00</em> to <em>59</em></td>
942
+ </tr>
943
+
944
+ <tr>
945
+ <td><strong>$ss</strong></td>
946
+ <td>Seconds, with leading zeros</td>
947
+ <td><em>00</em> to <em>59</em></td>
948
+ </tr>
949
+ </tbody>
950
+ </table>
951
+ ]]></tooltip>
952
+ <sort_order>55</sort_order>
953
+ <show_in_default>1</show_in_default>
954
+ <show_in_website>1</show_in_website>
955
+ <show_in_store>1</show_in_store>
956
+ </custom1>
957
+ <custom2>
958
+ <label>Custom 2 PDF File Name Format</label>
959
+ <frontend_type>text</frontend_type>
960
+ <tooltip><![CDATA[
961
+ <table width="100%" style="background: #FAFAFA;">
962
+ <thead>
963
+ <tr>
964
+ <th width="35">Var</th>
965
+ <th>Description</th>
966
+ <th>values</th>
967
+ </tr>
968
+ </thead>
969
+ <tbody>
970
+ <tr>
971
+ <td><strong>$dd</strong></td>
972
+ <td>Day of the month</td>
973
+ <td><em>01</em> to <em>31</em></td>
974
+ </tr>
975
+
976
+ <tr>
977
+ <td><strong>$EEE</strong></td>
978
+ <td>Day of the week</td>
979
+ <td><em>Mon</em> to <em>Sun</em></td>
980
+ </tr>
981
+
982
+ <tr>
983
+ <td><strong>$MM</strong></td>
984
+ <td>Numeric representation of a month</td>
985
+ <td><em>01</em> to <em>12</em></td>
986
+ </tr>
987
+
988
+ <tr>
989
+ <td><strong>$MMM</strong></td>
990
+ <td>Textual representation of a month</td>
991
+ <td><em>Jan</em> to <em>Dec</em></td>
992
+ </tr>
993
+
994
+ <tr>
995
+ <td><strong>$y</strong></td>
996
+ <td>Numeric representation of a year</td>
997
+ <td>Ex: <em>1999</em></td>
998
+ </tr>
999
+
1000
+ <tr>
1001
+ <td><strong>$yy</strong></td>
1002
+ <td>A two digit representation of a year</td>
1003
+ <td>Ex: <em>99</em></td>
1004
+ </tr>
1005
+
1006
+ <tr>
1007
+ <td><strong>$HH</strong></td>
1008
+ <td>24-hour format of an hour</td>
1009
+ <td><em>00</em> to <em>23</em></td>
1010
+ </tr>
1011
+
1012
+ <tr>
1013
+ <td><strong>$mm</strong></td>
1014
+ <td>Minutes with leading zeros</td>
1015
+ <td><em>00</em> to <em>59</em></td>
1016
+ </tr>
1017
+
1018
+ <tr>
1019
+ <td><strong>$ss</strong></td>
1020
+ <td>Seconds, with leading zeros</td>
1021
+ <td><em>00</em> to <em>59</em></td>
1022
+ </tr>
1023
+ </tbody>
1024
+ </table>
1025
+ ]]></tooltip>
1026
+ <sort_order>60</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
+ </custom2>
1031
+ <custom3>
1032
+ <label>Custom 3 PDF File Name Format</label>
1033
+ <frontend_type>text</frontend_type>
1034
+ <tooltip><![CDATA[
1035
+ <table width="100%" style="background: #FAFAFA;">
1036
+ <thead>
1037
+ <tr>
1038
+ <th width="35">Var</th>
1039
+ <th>Description</th>
1040
+ <th>values</th>
1041
+ </tr>
1042
+ </thead>
1043
+ <tbody>
1044
+ <tr>
1045
+ <td><strong>$dd</strong></td>
1046
+ <td>Day of the month</td>
1047
+ <td><em>01</em> to <em>31</em></td>
1048
+ </tr>
1049
+
1050
+ <tr>
1051
+ <td><strong>$EEE</strong></td>
1052
+ <td>Day of the week</td>
1053
+ <td><em>Mon</em> to <em>Sun</em></td>
1054
+ </tr>
1055
+
1056
+ <tr>
1057
+ <td><strong>$MM</strong></td>
1058
+ <td>Numeric representation of a month</td>
1059
+ <td><em>01</em> to <em>12</em></td>
1060
+ </tr>
1061
+
1062
+ <tr>
1063
+ <td><strong>$MMM</strong></td>
1064
+ <td>Textual representation of a month</td>
1065
+ <td><em>Jan</em> to <em>Dec</em></td>
1066
+ </tr>
1067
+
1068
+ <tr>
1069
+ <td><strong>$y</strong></td>
1070
+ <td>Numeric representation of a year</td>
1071
+ <td>Ex: <em>1999</em></td>
1072
+ </tr>
1073
+
1074
+ <tr>
1075
+ <td><strong>$yy</strong></td>
1076
+ <td>A two digit representation of a year</td>
1077
+ <td>Ex: <em>99</em></td>
1078
+ </tr>
1079
+
1080
+ <tr>
1081
+ <td><strong>$HH</strong></td>
1082
+ <td>24-hour format of an hour</td>
1083
+ <td><em>00</em> to <em>23</em></td>
1084
+ </tr>
1085
+
1086
+ <tr>
1087
+ <td><strong>$mm</strong></td>
1088
+ <td>Minutes with leading zeros</td>
1089
+ <td><em>00</em> to <em>59</em></td>
1090
+ </tr>
1091
+
1092
+ <tr>
1093
+ <td><strong>$ss</strong></td>
1094
+ <td>Seconds, with leading zeros</td>
1095
+ <td><em>00</em> to <em>59</em></td>
1096
+ </tr>
1097
+ </tbody>
1098
+ </table>
1099
+ ]]></tooltip>
1100
+ <sort_order>65</sort_order>
1101
+ <show_in_default>1</show_in_default>
1102
+ <show_in_website>1</show_in_website>
1103
+ <show_in_store>1</show_in_store>
1104
+ </custom3>
1105
  </fields>
1106
  </filename_format>
1107
  <notification>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Easy_PDF_Invoice</name>
4
- <version>1.2.0.2.18</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL V3.0</license>
7
  <channel>community</channel>
@@ -15,10 +15,10 @@
15
  - Allow to attach order pdf in email&#xD;
16
  - Allow to attach invoice pdf in email&#xD;
17
  - Compatible with Aschroder_SMTPPro</notes>
18
- <authors><author><name>Easy PDF Invoice</name><user>easypdfinvoice</user><email>easypdfinvoice@gmail.com</email></author></authors>
19
- <date>2014-03-03</date>
20
- <time>05:10:38</time>
21
- <contents><target name="mageetc"><dir name="modules"><file name="VES_PdfPro.xml" hash="4b43f61fe34d6f90260b6008e52e48bd"/><file name="VES_Core.xml" hash="993748572ce3df9800a320f9145f4860"/></dir></target><target name="magecommunity"><dir name="VES"><dir name="PdfPro"><dir name="Block"><dir name="Adminhtml"><dir name="Key"><dir name="Edit"><file name="Form.php" hash="46346f33119419be5ba874fa7ffd85b6"/><dir name="Tab"><file name="Form.php" hash="6ed2ab13f4e2c5c25671aacf00fe9694"/></dir><file name="Tabs.php" hash="7deee93f14cdf27faa036b848f36e2d8"/></dir><file name="Edit.php" hash="a8798ad23b9da53d836c6947dff2e49a"/><dir name="Grid"><dir name="Renderer"><file name="Group.php" hash="892d50662567d468eb9128034de54f19"/><file name="Store.php" hash="e1f763568b9f84a58798308f83536d7b"/></dir></dir><file name="Grid.php" hash="b46ff3b9fcac57a17eaa90602be61aa0"/></dir><file name="Key.php" hash="2d74a4aac519acc063d94a48f786fbbf"/><dir name="Sales"><dir name="Order"><dir name="Creditmemo"><file name="View.php" hash="84b753f41a0ae7af40524d4061f37224"/></dir><dir name="Invoice"><file name="View.php" hash="3bcb2c1c7afe51420dea06c074707372"/></dir><dir name="Shipment"><file name="View.php" hash="ec481031bd686790f976a75153193751"/></dir><file name="View.php" hash="109983b520fa91c5549449955244b651"/></dir></dir><dir name="System"><dir name="Config"><dir name="Form"><file name="Fieldset.php" hash="b014be284c5d7882800aafda28b4def3"/></dir></dir></dir><file name="Version.php" hash="536745305fb988b7773e1962bafe77bd"/></dir><dir name="Checkout"><dir name="Onepage"><file name="Success.php" hash="9f45ac2f4c5643f7c560f64ec6e879b9"/></dir></dir><dir name="Sales"><dir name="Order"><dir name="Creditmemo"><file name="Items.php" hash="188d1bf570876c1ee4eb10b392826969"/></dir><dir name="Info"><file name="Buttons.php" hash="092e23b4ea0532a0b1c30155bb988500"/></dir><file name="Info.php" hash="df3add1cad16f992c016f34bc50001da"/><dir name="Invoice"><file name="Items.php" hash="af0a2e0530c243f4fc36d2b1ba85a03d"/></dir><dir name="Shipment"><file name="Items.php" hash="05ba7ea0f96dd688e32ac382de3d97aa"/></dir></dir></dir></dir><dir name="Controller"><file name="Abstract.php" hash="ef9a45c9dff768952c8162edd040689d"/></dir><dir name="Helper"><file name="Data.php" hash="557bfe35aea1e11c15ee62ab1d617f08"/><file name="Giftmessage.php" hash="fd1f964045ff32824d8adeef45d9f353"/></dir><dir name="Model"><file name="Abstract.php" hash="c0a58f8f4ec674f53850d99ce056e740"/><dir name="App"><file name="Emulation.php" hash="04198592d643fee6de163cb4840fd1c5"/></dir><dir name="Communication"><dir name="Method"><file name="Abstract.php" hash="92691ba24ed56500a517a323dc37c783"/><file name="Soap.php" hash="9bebec927cd317828c226af2f84e46a4"/><file name="Xmlrpc.php" hash="9ef324fc87bfb1b2ce7e21dcd061faa4"/></dir></dir><dir name="Email"><file name="Info.php" hash="7933a32bf8d938a7fd527a958ceb760f"/><dir name="Template"><file name="Mailer.php" hash="be32e7a6b46ff9001c35887f9ebe7826"/><file name="Mailer.php.bk" hash="c0ce04b3c73aeffd55f94e180e379416"/></dir><file name="Template.php" hash="9dfdc647e61d2b156d1b1d13760ed91e"/></dir><file name="Key.php" hash="8f89ec9497dd0a7ae2cf9ea71af2a910"/><dir name="Mysql4"><dir name="Key"><file name="Collection.php" hash="2a833ffdea395c507056fed369d3efaa"/></dir><file name="Key.php" hash="ac5b19abb5f8cb75f5d4ae7226432158"/></dir><file name="Observer.php" hash="257c7d9877e0704f55b8fad7f4424f0c"/><dir name="Order"><dir name="Creditmemo"><file name="Item.php" hash="1f3e1dd032ba92d819860015cc691ec3"/></dir><file name="Creditmemo.php" hash="fa8fc4bc9b9668cd5804d7409da37246"/><dir name="Invoice"><file name="Item.php" hash="24afcd126b0f70593898f014111d638f"/></dir><file name="Invoice.php" hash="21af52a6b71b71e536cbdf27a8f3f819"/><file name="Item.php" hash="8ec99b4d4b29ea4e8657dea60471eda4"/><dir name="Shipment"><file name="Item.php" hash="a034e50d4b48abf33dbe23da8a8ac321"/></dir><file name="Shipment.php" hash="290f501ec4695ceac86f644fb32250e5"/></dir><file name="Order.php" hash="f1034ee20656b5fc41bb6da203dad3e0"/><file name="PdfPro.php" hash="dcdbc0e505693ee0f6ffde74c4b92952"/><dir name="Processors"><file name="Easypdf.php" hash="174f02576f916c281c644933a0f26820"/></dir><dir name="Sales"><dir name="Order"><file name="Creditmemo.php" hash="b898198487940a63b04d22a08aae5579"/><file name="Invoice.php" hash="c9a15b19b60cbed6f1b92a35c8e090b9"/><dir name="Pdf"><dir name="Total"><file name="Default.php" hash="f2734244f770ef8eed2e4895daaa1b4f"/></dir></dir><file name="Shipment.php" hash="90715ec29e12e8c9a1548796924a99e5"/></dir><file name="Order.php" hash="daf58ca77bbcf5cc3f83031096f6ab61"/></dir><dir name="Source"><file name="Attach.php" hash="9fc226589336ee965aa0d5208d2dd06e"/><dir name="Communication"><file name="Method.php" hash="c62491193fdb374fdc74e52c02609194"/></dir><file name="Currency.php" hash="baa6bcb2d06694985a5b5b655a082c86"/><file name="Key.php" hash="c9ee12407a20b4fb07bd51bd0029523c"/><file name="Processor.php" hash="6a1e053c02b8e1736f0bfd942ae71434"/></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="Easypdf.php" hash="503a34f4747cb6387ff7180e4f63b469"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="KeyController.php" hash="f02dfb8b771b225be8eaf3376430faf5"/><file name="NotifyController.php" hash="90b9ecb5f8ce655bcdd6f07312a27cba"/><dir name="Pdfpro"><file name="PrintController.php" hash="5872434812f0e883e15c2561b5a37143"/></dir><file name="PrintController.php" hash="2b1b02a7e50a686d639f346ed5c92e53"/></dir><file name="GuestController.php" hash="1866cb205ce5eef78babd77850647275"/><file name="PrintController.php" hash="fdd65232341ae18df6ddfc267aece14f"/></dir><dir name="etc"><file name="config.xml" hash="166329b2ca6e50739f22a8e837eeef69"/><file name="system.xml" hash="c974da7888206ed0360e8da5be8a2b23"/></dir><dir name="sql"><dir name="pdfpro_setup"><file name="mysql4-install-0.1.0.php" hash="568fdc14a81905f4e98857691f765ae8"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="ves_pdfpro.xml" hash="4fef100f3a87f396e539ff59fba0d9a6"/></dir><dir name="template"><dir name="ves_pdfpro"><file name="notifications.phtml" hash="7ab210359c57102fdfe11931413e4ed8"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="VES_PdfPro.csv" hash="7443d2a6b55513d5287144307ac41018"/></dir><dir name="vi_VN"><file name="VES_PdfPro.csv" hash="685d513129c86897c9214d67a65f7690"/></dir><dir name="he_IL"><file name="VES_PdfPro.csv" hash="487635adff4c3a8fb47af8048e407c96"/></dir></target><target name="magemedia"><dir name="ves_pdfpro"><dir name="certificate"><dir name="tmp"><file name="nothing.txt" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir><dir name="logos"><file name="logo.png" hash="ae624d6aebb82f8419c247689aa8af7d"/><file name="logo_1.png" hash="d0209568ba5edb1f8646a7c3ad601f0c"/><file name="logo_2.png" hash="d0209568ba5edb1f8646a7c3ad601f0c"/><file name="logo_200.png" hash="a1a821597c2d1d3599440119ff8a9618"/><file name="logo_250.png" hash="1a18a0bb732bd0991b1057167aa0d5fa"/><file name="logo_3.png" hash="944aabc2b0656a141555eb542eaff26e"/><file name="logo_4.png" hash="553e32d9daa734eeb075be5ac4bd8462"/><file name="logo_5.png" hash="b963554080cdc4759e287c07daec189d"/><file name="logo_6.png" hash="4344940fe524fd7df48d990bc33a60e3"/><file name="logo_vnecoms.png" hash="f01d36ae2e53cacdca77130fa2ac27a8"/><file name="nothing" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><file name="message.txt" hash="fcb3368378325628cc1fd8b38acdb150"/><file name="pdf.data" hash="82994bf40bf1eafbbede293c4b139546"/><dir name="tmp"><file name="ca_38F.tmp" hash="d20caec3b48a1eef164cb4ca81ba2587"/><file name="ca_7117.tmp" hash="209fc6904237f14c6a22537a942419ac"/><file name="ca_82AA.tmp" hash="209fc6904237f14c6a22537a942419ac"/><file name="ca_89C1.tmp" hash="c5aea9af32a019e983f659eae4819a17"/><file name="ca_DECD.tmp" hash="f01d36ae2e53cacdca77130fa2ac27a8"/><file name="ca_DEED.tmp" hash="9bd84fb8ac76b38ef58b70b486f1e949"/><file name="nothing" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><file name="version.txt" hash="ee065c79e11d52b0537e119872e11359"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="ves_pdfpro"><file name="easypdf.png" hash="8403ec067302a4bf931862ad56965459"/><file name="favicon.png" hash="55210c2ab24e77a654bec6f51922917f"/><file name="js.js" hash="5ab27f2e16b90409bf4268b9afb7488c"/><file name="styles.css" hash="e25f82a17de40e72d7cd062f9f25588b"/></dir></dir></dir></dir></target><target name="magelocal"><dir name="VES"><dir name="Core"><dir name="Block"><dir name="Adminhtml"><dir name="Key"><dir name="Edit"><file name="Form.php" hash="3e29e36843979a1e9928397ca5c2c527"/><file name="Info.php" hash="18da8cda8ec846e43714a6b034034683"/></dir><file name="Edit.php" hash="5aa1c6a94308ececc2b91f737b1beb35"/><dir name="Grid"><dir name="Renderer"><file name="License.php" hash="d1e0b4e25d4b6f1af876d9cd4240c27c"/></dir></dir><file name="Grid.php" hash="8d341587a0c91be7d0f274cdad31da4b"/></dir><file name="Key.php" hash="64d718050309c7c3f92e2c3b40691fe6"/></dir><file name="Notification.php" hash="ed6469b0f5a2949bcb996c2819d9ff2c"/></dir><dir name="Helper"><file name="Core.php" hash="cbd1768a17fa6d70862b311a5aa7f1a3"/><file name="Data.php" hash="4e5ac05033e950f139f730f84889f4f9"/></dir><dir name="Model"><file name="Feed.php" hash="794ec4b0816dc07dd42d199ea32cdff1"/><file name="Key.php" hash="0f11239d4005ddd8e04dab37439a2f97"/><dir name="Mysql4"><dir name="Key"><file name="Collection.php" hash="07a7beb1ea3b4c41563b700c54249bf2"/></dir><file name="Key.php" hash="2207553cd7a65bd12f8f69bcbb08cd96"/></dir><file name="Observer.php" hash="4f7de13d640638aa2e6012228ffa7206"/></dir><dir name="controllers"><dir name="Vnecoms"><file name="ExtensionController.php" hash="e20fbaa5058965b446e0e41d258b7cf8"/></dir></dir><dir name="etc"><file name="config.xml" hash="0f297c02fbd33bc9482e336d81b2062d"/><file name="system.xml.bk" hash="f7d95126285ba00ea1e52c054a4f195f"/></dir><dir name="sql"><dir name="ves_core_setup"><file name="mysql4-install-1.0.0.0.php" hash="c06556894e5335e3ae96d4176f3cc941"/></dir></dir></dir></dir></target></contents>
22
  <compatible/>
23
- <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
24
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Easy_PDF_Invoice</name>
4
+ <version>1.2.0.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL V3.0</license>
7
  <channel>community</channel>
15
  - Allow to attach order pdf in email&#xD;
16
  - Allow to attach invoice pdf in email&#xD;
17
  - Compatible with Aschroder_SMTPPro</notes>
18
+ <authors><author><name>Easy PDF Invoice</name><user>auto-converted</user><email>easypdfinvoice@gmail.com</email></author></authors>
19
+ <date>2014-09-03</date>
20
+ <time>16:48:11</time>
21
+ <contents><target name="mageetc"><dir name="modules"><file name="VES_PdfPro.xml" hash="4b43f61fe34d6f90260b6008e52e48bd"/><file name="VES_Core.xml" hash="993748572ce3df9800a320f9145f4860"/></dir></target><target name="magecommunity"><dir name="VES"><dir name="PdfPro"><dir name="Block"><dir name="Adminhtml"><dir name="Key"><dir name="Edit"><dir name="Tab"><file name="Form.php" hash="6ed2ab13f4e2c5c25671aacf00fe9694"/></dir><file name="Form.php" hash="46346f33119419be5ba874fa7ffd85b6"/><file name="Tabs.php" hash="7deee93f14cdf27faa036b848f36e2d8"/></dir><dir name="Grid"><dir name="Renderer"><file name="Group.php" hash="892d50662567d468eb9128034de54f19"/><file name="Store.php" hash="e1f763568b9f84a58798308f83536d7b"/></dir></dir><file name="Edit.php" hash="a8798ad23b9da53d836c6947dff2e49a"/><file name="Grid.php" hash="b46ff3b9fcac57a17eaa90602be61aa0"/></dir><dir name="Sales"><dir name="Order"><dir name="Creditmemo"><file name="View.php" hash="4bb43292067f8278e492742d208a4a97"/></dir><dir name="Invoice"><file name="View.php" hash="37bdb451a11445829ac5adb7a605d984"/></dir><dir name="Shipment"><file name="View.php" hash="04758eb8864ff3187bd8c7a330442518"/></dir><file name="View.php" hash="5a05e7b76c2286b2317990e6e57b865b"/></dir></dir><dir name="System"><dir name="Config"><dir name="Form"><file name="Fieldset.php" hash="b014be284c5d7882800aafda28b4def3"/></dir></dir></dir><file name="Key.php" hash="2d74a4aac519acc063d94a48f786fbbf"/><file name="Version.php" hash="536745305fb988b7773e1962bafe77bd"/></dir><dir name="Checkout"><dir name="Onepage"><file name="Success.php" hash="9f45ac2f4c5643f7c560f64ec6e879b9"/></dir></dir><dir name="Sales"><dir name="Order"><dir name="Creditmemo"><file name="Items.php" hash="188d1bf570876c1ee4eb10b392826969"/></dir><dir name="Info"><file name="Buttons.php" hash="092e23b4ea0532a0b1c30155bb988500"/></dir><dir name="Invoice"><file name="Items.php" hash="af0a2e0530c243f4fc36d2b1ba85a03d"/></dir><dir name="Shipment"><file name="Items.php" hash="05ba7ea0f96dd688e32ac382de3d97aa"/></dir><file name="Info.php" hash="df3add1cad16f992c016f34bc50001da"/></dir></dir></dir><dir name="Controller"><file name="Abstract.php" hash="ef9a45c9dff768952c8162edd040689d"/></dir><dir name="Helper"><file name="Data.php" hash="6c2f4af1c6fb3059100490f1247f9369"/><file name="Giftmessage.php" hash="fd1f964045ff32824d8adeef45d9f353"/></dir><dir name="Model"><dir name="App"><file name="Emulation.php" hash="04198592d643fee6de163cb4840fd1c5"/></dir><dir name="Communication"><dir name="Method"><file name="Abstract.php" hash="92691ba24ed56500a517a323dc37c783"/><file name="Soap.php" hash="9bebec927cd317828c226af2f84e46a4"/><file name="Xmlrpc.php" hash="9ef324fc87bfb1b2ce7e21dcd061faa4"/></dir></dir><dir name="Email"><dir name="Template"><file name="Mailer.php" hash="be32e7a6b46ff9001c35887f9ebe7826"/><file name="Mailer.php.bk" hash="c0ce04b3c73aeffd55f94e180e379416"/></dir><file name="Info.php" hash="7933a32bf8d938a7fd527a958ceb760f"/><file name="Template.php" hash="9dfdc647e61d2b156d1b1d13760ed91e"/></dir><dir name="Mysql4"><dir name="Key"><file name="Collection.php" hash="2a833ffdea395c507056fed369d3efaa"/></dir><file name="Key.php" hash="ac5b19abb5f8cb75f5d4ae7226432158"/></dir><dir name="Order"><dir name="Creditmemo"><file name="Item.php" hash="1f3e1dd032ba92d819860015cc691ec3"/></dir><dir name="Invoice"><file name="Item.php" hash="24afcd126b0f70593898f014111d638f"/></dir><dir name="Shipment"><file name="Item.php" hash="a034e50d4b48abf33dbe23da8a8ac321"/></dir><file name="Creditmemo.php" hash="fa8fc4bc9b9668cd5804d7409da37246"/><file name="Invoice.php" hash="21af52a6b71b71e536cbdf27a8f3f819"/><file name="Item.php" hash="8ec99b4d4b29ea4e8657dea60471eda4"/><file name="Shipment.php" hash="290f501ec4695ceac86f644fb32250e5"/></dir><dir name="Processors"><file name="Easypdf.php" hash="174f02576f916c281c644933a0f26820"/></dir><dir name="Sales"><dir name="Order"><dir name="Pdf"><dir name="Total"><file name="Default.php" hash="f2734244f770ef8eed2e4895daaa1b4f"/></dir></dir><file name="Creditmemo.php" hash="b898198487940a63b04d22a08aae5579"/><file name="Invoice.php" hash="c9a15b19b60cbed6f1b92a35c8e090b9"/><file name="Shipment.php" hash="90715ec29e12e8c9a1548796924a99e5"/></dir><file name="Order.php" hash="daf58ca77bbcf5cc3f83031096f6ab61"/></dir><dir name="Source"><dir name="Communication"><file name="Method.php" hash="c62491193fdb374fdc74e52c02609194"/></dir><file name="Attach.php" hash="9fc226589336ee965aa0d5208d2dd06e"/><file name="Currency.php" hash="baa6bcb2d06694985a5b5b655a082c86"/><file name="Key.php" hash="c9ee12407a20b4fb07bd51bd0029523c"/><file name="Processor.php" hash="6a1e053c02b8e1736f0bfd942ae71434"/></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="Easypdf.php" hash="503a34f4747cb6387ff7180e4f63b469"/></dir></dir></dir><file name="Abstract.php" hash="c0a58f8f4ec674f53850d99ce056e740"/><file name="Key.php" hash="8f89ec9497dd0a7ae2cf9ea71af2a910"/><file name="Observer.php" hash="9c9f621deaabff8f6ae1a0b3a6f8de3f"/><file name="Order.php" hash="f1034ee20656b5fc41bb6da203dad3e0"/><file name="PdfPro.php" hash="dcdbc0e505693ee0f6ffde74c4b92952"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Pdfpro"><file name="PrintController.php" hash="9f8752a0603c505ed6108f4366250d69"/></dir><file name="KeyController.php" hash="f02dfb8b771b225be8eaf3376430faf5"/><file name="NotifyController.php" hash="90b9ecb5f8ce655bcdd6f07312a27cba"/></dir><file name="GuestController.php" hash="1866cb205ce5eef78babd77850647275"/><file name="PrintController.php" hash="fdd65232341ae18df6ddfc267aece14f"/></dir><dir name="etc"><file name="config.xml" hash="0f1be4c39ee7df88b5a7f7ab5ae3de27"/><file name="system.xml" hash="5de7ef55848fe511c561b293c60806ae"/></dir><dir name="sql"><dir name="pdfpro_setup"><file name="mysql4-install-0.1.0.php" hash="568fdc14a81905f4e98857691f765ae8"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="ves_pdfpro.xml" hash="4fef100f3a87f396e539ff59fba0d9a6"/></dir><dir name="template"><dir name="ves_pdfpro"><file name="notifications.phtml" hash="7ab210359c57102fdfe11931413e4ed8"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="VES_PdfPro.csv" hash="7443d2a6b55513d5287144307ac41018"/></dir><dir name="vi_VN"><file name="VES_PdfPro.csv" hash="685d513129c86897c9214d67a65f7690"/></dir><dir name="he_IL"><file name="VES_PdfPro.csv" hash="487635adff4c3a8fb47af8048e407c96"/></dir></target><target name="magemedia"><dir name="ves_pdfpro"><dir name="certificate"><dir name="tmp"><file name="nothing.txt" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir><dir name="logos"><file name="logo.png" hash="ae624d6aebb82f8419c247689aa8af7d"/><file name="logo_1.png" hash="d0209568ba5edb1f8646a7c3ad601f0c"/><file name="logo_2.png" hash="d0209568ba5edb1f8646a7c3ad601f0c"/><file name="logo_200.png" hash="a1a821597c2d1d3599440119ff8a9618"/><file name="logo_250.png" hash="1a18a0bb732bd0991b1057167aa0d5fa"/><file name="logo_3.png" hash="944aabc2b0656a141555eb542eaff26e"/><file name="logo_4.png" hash="553e32d9daa734eeb075be5ac4bd8462"/><file name="logo_5.png" hash="b963554080cdc4759e287c07daec189d"/><file name="logo_6.png" hash="4344940fe524fd7df48d990bc33a60e3"/><file name="logo_vnecoms.png" hash="f01d36ae2e53cacdca77130fa2ac27a8"/><file name="nothing" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><dir name="tmp"><file name="ca_38F.tmp" hash="d20caec3b48a1eef164cb4ca81ba2587"/><file name="ca_7117.tmp" hash="209fc6904237f14c6a22537a942419ac"/><file name="ca_82AA.tmp" hash="209fc6904237f14c6a22537a942419ac"/><file name="ca_89C1.tmp" hash="c5aea9af32a019e983f659eae4819a17"/><file name="ca_DECD.tmp" hash="f01d36ae2e53cacdca77130fa2ac27a8"/><file name="ca_DEED.tmp" hash="9bd84fb8ac76b38ef58b70b486f1e949"/><file name="nothing" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><file name="message.txt" hash="fcb3368378325628cc1fd8b38acdb150"/><file name="pdf.data" hash="82994bf40bf1eafbbede293c4b139546"/><file name="version.txt" hash="ee065c79e11d52b0537e119872e11359"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="ves_pdfpro"><file name="easypdf.png" hash="8403ec067302a4bf931862ad56965459"/><file name="favicon.png" hash="55210c2ab24e77a654bec6f51922917f"/><file name="js.js" hash="5ab27f2e16b90409bf4268b9afb7488c"/><file name="styles.css" hash="e25f82a17de40e72d7cd062f9f25588b"/></dir></dir></dir></dir></target><target name="magelocal"><dir name="VES"><dir name="Core"><dir name="Block"><dir name="Adminhtml"><dir name="Key"><dir name="Edit"><file name="Form.php" hash="3e29e36843979a1e9928397ca5c2c527"/><file name="Info.php" hash="18da8cda8ec846e43714a6b034034683"/></dir><dir name="Grid"><dir name="Renderer"><file name="License.php" hash="d1e0b4e25d4b6f1af876d9cd4240c27c"/></dir></dir><file name="Edit.php" hash="5aa1c6a94308ececc2b91f737b1beb35"/><file name="Grid.php" hash="8d341587a0c91be7d0f274cdad31da4b"/></dir><file name="Key.php" hash="64d718050309c7c3f92e2c3b40691fe6"/></dir><file name="Notification.php" hash="ed6469b0f5a2949bcb996c2819d9ff2c"/></dir><dir name="Helper"><file name="Core.php" hash="cbd1768a17fa6d70862b311a5aa7f1a3"/><file name="Data.php" hash="4e5ac05033e950f139f730f84889f4f9"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Key"><file name="Collection.php" hash="07a7beb1ea3b4c41563b700c54249bf2"/></dir><file name="Key.php" hash="2207553cd7a65bd12f8f69bcbb08cd96"/></dir><file name="Feed.php" hash="794ec4b0816dc07dd42d199ea32cdff1"/><file name="Key.php" hash="0f11239d4005ddd8e04dab37439a2f97"/><file name="Observer.php" hash="4f7de13d640638aa2e6012228ffa7206"/></dir><dir name="controllers"><dir name="Vnecoms"><file name="ExtensionController.php" hash="e20fbaa5058965b446e0e41d258b7cf8"/></dir></dir><dir name="etc"><file name="config.xml" hash="0f297c02fbd33bc9482e336d81b2062d"/><file name="system.xml.bk" hash="f7d95126285ba00ea1e52c054a4f195f"/></dir><dir name="sql"><dir name="ves_core_setup"><file name="mysql4-install-1.0.0.0.php" hash="c06556894e5335e3ae96d4176f3cc941"/></dir></dir></dir></dir></target></contents>
22
  <compatible/>
23
+ <dependencies/>
24
  </package>