Version Notes
Naming update
Download this release
Release Info
Developer | SaveTheMage |
Extension | Custom_Invoice_And_Order_Numbers |
Version | 1.3.1 |
Comparing to | |
See all releases |
Code changes from version 1.3.0 to 1.3.1
- app/code/local/SaveTheMage/ChangeOrderNumber/Block/BlockForFormChangeOrderNumber.php +0 -12
- app/code/local/SaveTheMage/ChangeOrderNumber/Block/ShowTabsAdminBlock.php +0 -40
- app/code/local/SaveTheMage/ChangeOrderNumber/Helper/Data.php +0 -6
- app/code/local/SaveTheMage/ChangeOrderNumber/etc/config.xml +0 -61
- app/code/local/SaveTheMage/CustomInvoiceAndOrderNumber/Block/FormCustomInvoiceAndOrderNumber.php +12 -0
- app/code/local/SaveTheMage/CustomInvoiceAndOrderNumber/Block/ShowTabsAdminBlock.php +40 -0
- app/code/local/SaveTheMage/CustomInvoiceAndOrderNumber/Helper/Data.php +6 -0
- app/code/local/SaveTheMage/{ChangeOrderNumber → CustomInvoiceAndOrderNumber}/Model/numbers.php +33 -6
- app/code/local/SaveTheMage/{ChangeOrderNumber/controllers/AdminControllersHere/ChangeOrderNumberController.php → CustomInvoiceAndOrderNumber/controllers/AdminControllersHere/OpsController.php} +6 -6
- app/code/local/SaveTheMage/CustomInvoiceAndOrderNumber/etc/config.xml +61 -0
- app/design/adminhtml/default/default/template/SaveTheMage/{tab_container_FormChangeOrderNumber.phtml → FormCustomInvoiceAndOrderNumber.phtml} +4 -3
- app/etc/modules/{SaveTheMage_ChangeOrderNumber.xml → SaveTheMage_CustomInvoiceAndOrderNumber.xml} +2 -2
- package.xml +4 -4
app/code/local/SaveTheMage/ChangeOrderNumber/Block/BlockForFormChangeOrderNumber.php
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class SaveTheMage_ChangeOrderNumber_Block_BlockForFormChangeOrderNumber extends Mage_Core_Block_Template
|
4 |
-
{
|
5 |
-
|
6 |
-
public function __construct()
|
7 |
-
{
|
8 |
-
parent::__construct();
|
9 |
-
$this->setTemplate('SaveTheMage/tab_container_FormChangeOrderNumber.phtml');
|
10 |
-
}
|
11 |
-
|
12 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/SaveTheMage/ChangeOrderNumber/Block/ShowTabsAdminBlock.php
DELETED
@@ -1,40 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class SaveTheMage_ChangeOrderNumber_Block_ShowTabsAdminBlock extends Mage_Adminhtml_Block_Widget_Tabs
|
4 |
-
{
|
5 |
-
public function __construct()
|
6 |
-
{
|
7 |
-
parent::__construct();
|
8 |
-
$this->setId('tabs_ChangeOrderNumber');
|
9 |
-
|
10 |
-
$this->setTitle(Mage::helper('ChangeOrderNumberHelper1')->__('To Change Order and Invoice Numbers'));
|
11 |
-
}
|
12 |
-
|
13 |
-
protected function _beforeToHtml()
|
14 |
-
{
|
15 |
-
$this->addTab('tab1_ChangeOrderNumber', array(
|
16 |
-
'label' => Mage::helper('ChangeOrderNumberHelper1')->__('Change Order and Invoice Numbers'),
|
17 |
-
'title' => Mage::helper('ChangeOrderNumberHelper1')->__('Change Order and Invoice Numbers'),
|
18 |
-
'content' => $this->getLayout()->createBlock("ChangeOrderNumberBlock1/BlockForFormChangeOrderNumber")->toHtml(),
|
19 |
-
'active' => true
|
20 |
-
));
|
21 |
-
|
22 |
-
|
23 |
-
$about="<fieldset class='box' style='clear: both;'><table>
|
24 |
-
<tr><td>
|
25 |
-
<a title='SaveTheMage Magento Extensions' href='http://www.savethemage.com/'>
|
26 |
-
<img alt='SaveTheMage Magento Extensions' src='http://www.savethemage.com/skin/frontend/default/magik_aura/images/savethemage-logo-icon.png'>
|
27 |
-
</a>
|
28 |
-
</td></tr>
|
29 |
-
<tr><td><a href='mailto:support@savethemage.com'>Email Us</a></td></tr>
|
30 |
-
</table></fieldset>";
|
31 |
-
$this->addTab('tab2_about', array(
|
32 |
-
'label' => Mage::helper('ChangeOrderNumberHelper1')->__('About'),
|
33 |
-
'title' => Mage::helper('ChangeOrderNumberHelper1')->__('About'),
|
34 |
-
'content' => $about,
|
35 |
-
'active' => false
|
36 |
-
));
|
37 |
-
|
38 |
-
return parent::_beforeToHtml();
|
39 |
-
}
|
40 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/SaveTheMage/ChangeOrderNumber/Helper/Data.php
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class SaveTheMage_ChangeOrderNumber_Helper_Data extends Mage_Core_Helper_Data
|
4 |
-
{
|
5 |
-
|
6 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/SaveTheMage/ChangeOrderNumber/etc/config.xml
DELETED
@@ -1,61 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
|
3 |
-
<config>
|
4 |
-
<modules>
|
5 |
-
<SaveTheMage_ChangeOrderNumber>
|
6 |
-
<version>1.1.1</version>
|
7 |
-
</SaveTheMage_ChangeOrderNumber>
|
8 |
-
</modules>
|
9 |
-
|
10 |
-
<global>
|
11 |
-
<blocks>
|
12 |
-
<ChangeOrderNumberBlock1>
|
13 |
-
<class>SaveTheMage_ChangeOrderNumber_Block</class>
|
14 |
-
</ChangeOrderNumberBlock1>
|
15 |
-
</blocks>
|
16 |
-
<helpers>
|
17 |
-
<ChangeOrderNumberHelper1>
|
18 |
-
<class>SaveTheMage_ChangeOrderNumber_Helper</class>
|
19 |
-
</ChangeOrderNumberHelper1>
|
20 |
-
</helpers>
|
21 |
-
<models>
|
22 |
-
<!-- ... -->
|
23 |
-
<savethemagechangeordernumber>
|
24 |
-
<class>SaveTheMage_ChangeOrderNumber_Model</class>
|
25 |
-
</savethemagechangeordernumber>
|
26 |
-
<!-- ... -->
|
27 |
-
</models>
|
28 |
-
</global>
|
29 |
-
|
30 |
-
<admin>
|
31 |
-
<routers>
|
32 |
-
<ChangeOrderNumber>
|
33 |
-
<use>admin</use>
|
34 |
-
<args>
|
35 |
-
<module>SaveTheMage_ChangeOrderNumber_AdminControllersHere</module>
|
36 |
-
<frontName>ChangeOrderNumber</frontName>
|
37 |
-
<modules>
|
38 |
-
<changeordernumber after="SaveTheMage_ChangeOrderNumber_AdminControllersHere">Mage_Adminhtml</changeordernumber>
|
39 |
-
</modules>
|
40 |
-
</args>
|
41 |
-
</ChangeOrderNumber>
|
42 |
-
</routers>
|
43 |
-
</admin>
|
44 |
-
|
45 |
-
<adminhtml>
|
46 |
-
<menu>
|
47 |
-
<SaveTheMageMenu translate="title" module="ChangeOrderNumberHelper1">
|
48 |
-
<title>SaveTheMage</title>
|
49 |
-
<sort_order>201</sort_order>
|
50 |
-
<children>
|
51 |
-
<ChangeOrderNumberChildItem1 translate="title" module="ChangeOrderNumberHelper1">
|
52 |
-
<title>Change Order and Invoice Numbers</title>
|
53 |
-
<action>ChangeOrderNumber/ChangeOrderNumber</action>
|
54 |
-
<sort_order>3</sort_order>
|
55 |
-
</ChangeOrderNumberChildItem1>
|
56 |
-
</children>
|
57 |
-
</SaveTheMageMenu>
|
58 |
-
</menu>
|
59 |
-
</adminhtml>
|
60 |
-
|
61 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/SaveTheMage/CustomInvoiceAndOrderNumber/Block/FormCustomInvoiceAndOrderNumber.php
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class SaveTheMage_CustomInvoiceAndOrderNumber_Block_FormCustomInvoiceAndOrderNumber extends Mage_Core_Block_Template
|
4 |
+
{
|
5 |
+
|
6 |
+
public function __construct()
|
7 |
+
{
|
8 |
+
parent::__construct();
|
9 |
+
$this->setTemplate('SaveTheMage/FormCustomInvoiceAndOrderNumber.phtml');
|
10 |
+
}
|
11 |
+
|
12 |
+
}
|
app/code/local/SaveTheMage/CustomInvoiceAndOrderNumber/Block/ShowTabsAdminBlock.php
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class SaveTheMage_CustomInvoiceAndOrderNumber_Block_ShowTabsAdminBlock extends Mage_Adminhtml_Block_Widget_Tabs
|
4 |
+
{
|
5 |
+
public function __construct()
|
6 |
+
{
|
7 |
+
parent::__construct();
|
8 |
+
$this->setId('tabs_CustomInvoiceAndOrderNumber');
|
9 |
+
|
10 |
+
$this->setTitle(Mage::helper('CustomInvoiceAndOrderNumberHelper1')->__('Custom Invoice And Order Number'));
|
11 |
+
}
|
12 |
+
|
13 |
+
protected function _beforeToHtml()
|
14 |
+
{
|
15 |
+
$this->addTab('tab1_CustomInvoiceAndOrderNumber', array(
|
16 |
+
'label' => Mage::helper('CustomInvoiceAndOrderNumberHelper1')->__('Custom Invoice And Order Number'),
|
17 |
+
'title' => Mage::helper('CustomInvoiceAndOrderNumberHelper1')->__('Custom Invoice And Order Number'),
|
18 |
+
'content' => $this->getLayout()->createBlock("CustomInvoiceAndOrderNumberBlock1/FormCustomInvoiceAndOrderNumber")->toHtml(),
|
19 |
+
'active' => true
|
20 |
+
));
|
21 |
+
|
22 |
+
|
23 |
+
$about="<fieldset class='box' style='clear: both;'><table>
|
24 |
+
<tr><td>
|
25 |
+
<a title='SaveTheMage Magento Extensions' href='http://www.savethemage.com/'>
|
26 |
+
<img alt='SaveTheMage Magento Extensions' src='http://www.savethemage.com/skin/frontend/default/magik_aura/images/savethemage-logo-icon.png'>
|
27 |
+
</a>
|
28 |
+
</td></tr>
|
29 |
+
<tr><td><a href='mailto:support@savethemage.com'>Email Us</a></td></tr>
|
30 |
+
</table></fieldset>";
|
31 |
+
$this->addTab('tab2_about', array(
|
32 |
+
'label' => Mage::helper('CustomInvoiceAndOrderNumberHelper1')->__('About'),
|
33 |
+
'title' => Mage::helper('CustomInvoiceAndOrderNumberHelper1')->__('About'),
|
34 |
+
'content' => $about,
|
35 |
+
'active' => false
|
36 |
+
));
|
37 |
+
|
38 |
+
return parent::_beforeToHtml();
|
39 |
+
}
|
40 |
+
}
|
app/code/local/SaveTheMage/CustomInvoiceAndOrderNumber/Helper/Data.php
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class SaveTheMage_CustomInvoiceAndOrderNumber_Helper_Data extends Mage_Core_Helper_Data
|
4 |
+
{
|
5 |
+
|
6 |
+
}
|
app/code/local/SaveTheMage/{ChangeOrderNumber → CustomInvoiceAndOrderNumber}/Model/numbers.php
RENAMED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Rezoanul Alam @ www.SaveTheMage.com
|
6 |
*/
|
7 |
-
class
|
8 |
public function getOrderNumber($storeId)
|
9 |
{
|
10 |
return $this->_returnIncrement_last_id('order', $storeId);
|
@@ -40,12 +40,37 @@ class SaveTheMage_ChangeOrderNumber_Model_Numbers {
|
|
40 |
return $inc_last_id;
|
41 |
}
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
public function saveNumber($storeId, $number, $entity_type_code = 'order')
|
44 |
{
|
|
|
|
|
45 |
$prefix = Mage::getConfig()->getTablePrefix();
|
46 |
|
47 |
-
|
48 |
-
if( !empty( $inc_last_id ) ){
|
49 |
$sql = "update ". $prefix ."eav_entity_store ees
|
50 |
inner join ". $prefix ."eav_entity_type eet on ees.entity_type_id = eet.entity_type_id and eet.entity_type_code = '". $entity_type_code ."'
|
51 |
set ees.increment_last_id = '" . $number ."'
|
@@ -65,9 +90,11 @@ class SaveTheMage_ChangeOrderNumber_Model_Numbers {
|
|
65 |
$sql =" INSERT INTO ". $prefix ."eav_entity_store (entity_type_id, store_id, increment_prefix, increment_last_id)
|
66 |
VALUES(". $entity_type_id .", ". $storeId .", 1, '". $number ."')";
|
67 |
}
|
68 |
-
|
69 |
-
|
70 |
-
|
|
|
|
|
71 |
}
|
72 |
|
73 |
}
|
4 |
*
|
5 |
* @author Rezoanul Alam @ www.SaveTheMage.com
|
6 |
*/
|
7 |
+
class SaveTheMage_CustomInvoiceAndOrderNumber_Model_Numbers {
|
8 |
public function getOrderNumber($storeId)
|
9 |
{
|
10 |
return $this->_returnIncrement_last_id('order', $storeId);
|
40 |
return $inc_last_id;
|
41 |
}
|
42 |
|
43 |
+
private function _increment_last_id_exist($entity_type_code, $storeId)
|
44 |
+
{
|
45 |
+
$prefix = Mage::getConfig()->getTablePrefix();
|
46 |
+
$sql ="select increment_last_id from ". $prefix ."eav_entity_store ees
|
47 |
+
inner join ". $prefix ."eav_entity_type eet
|
48 |
+
on ees.entity_type_id = eet.entity_type_id and eet.entity_type_code = '" . $entity_type_code . "'";
|
49 |
+
|
50 |
+
if( $storeId > -1 )
|
51 |
+
{
|
52 |
+
$sql .=' where ees.store_id = ' . $storeId;
|
53 |
+
}
|
54 |
+
|
55 |
+
$sql .=' limit 0, 1 ';
|
56 |
+
|
57 |
+
|
58 |
+
$read = Mage::getSingleton('core/resource')->getConnection('core_read');
|
59 |
+
$results = $read->fetchAll( $sql );
|
60 |
+
if( count( $results ) >0 ){
|
61 |
+
return true;
|
62 |
+
}
|
63 |
+
|
64 |
+
return false;
|
65 |
+
}
|
66 |
+
|
67 |
public function saveNumber($storeId, $number, $entity_type_code = 'order')
|
68 |
{
|
69 |
+
$sql = "";
|
70 |
+
|
71 |
$prefix = Mage::getConfig()->getTablePrefix();
|
72 |
|
73 |
+
if( $this->_increment_last_id_exist($entity_type_code, $storeId) ){
|
|
|
74 |
$sql = "update ". $prefix ."eav_entity_store ees
|
75 |
inner join ". $prefix ."eav_entity_type eet on ees.entity_type_id = eet.entity_type_id and eet.entity_type_code = '". $entity_type_code ."'
|
76 |
set ees.increment_last_id = '" . $number ."'
|
90 |
$sql =" INSERT INTO ". $prefix ."eav_entity_store (entity_type_id, store_id, increment_prefix, increment_last_id)
|
91 |
VALUES(". $entity_type_id .", ". $storeId .", 1, '". $number ."')";
|
92 |
}
|
93 |
+
try{
|
94 |
+
$write = Mage::getSingleton('core/resource')->getConnection('core_write');
|
95 |
+
$write->query( $sql );
|
96 |
+
}
|
97 |
+
catch(Exception $ex){ }
|
98 |
}
|
99 |
|
100 |
}
|
app/code/local/SaveTheMage/{ChangeOrderNumber/controllers/AdminControllersHere/ChangeOrderNumberController.php → CustomInvoiceAndOrderNumber/controllers/AdminControllersHere/OpsController.php}
RENAMED
@@ -1,12 +1,12 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class
|
4 |
{
|
5 |
public function indexAction()
|
6 |
{
|
7 |
$this->loadLayout();
|
8 |
|
9 |
-
$this->_addLeft($this->getLayout()->createBlock('
|
10 |
|
11 |
$this->renderLayout();
|
12 |
|
@@ -52,11 +52,11 @@ class SaveTheMage_ChangeOrderNumber_AdminControllersHere_ChangeOrderNumberContro
|
|
52 |
|
53 |
$msg = "";
|
54 |
|
55 |
-
$model = Mage::getModel('
|
56 |
if( empty( $model ) )
|
57 |
{
|
58 |
-
require_once ( Mage::getBaseDir('app') . '/code/local/SaveTheMage/
|
59 |
-
$model = new
|
60 |
}
|
61 |
|
62 |
$ONumber = "";
|
@@ -110,7 +110,7 @@ class SaveTheMage_ChangeOrderNumber_AdminControllersHere_ChangeOrderNumberContro
|
|
110 |
|
111 |
public function getOrderInvoiceNumbersAction() { //UnUsed
|
112 |
|
113 |
-
$model = Mage::getModel('
|
114 |
$output = array();
|
115 |
$output['OrderNumber'] = $model->getOrderNumber( 1 );
|
116 |
$output['InvoiceNumber'] = $model->getInvoiceNumber( 1 );
|
1 |
<?php
|
2 |
|
3 |
+
class SaveTheMage_CustomInvoiceAndOrderNumber_AdminControllersHere_OpsController extends Mage_Adminhtml_Controller_Action
|
4 |
{
|
5 |
public function indexAction()
|
6 |
{
|
7 |
$this->loadLayout();
|
8 |
|
9 |
+
$this->_addLeft($this->getLayout()->createBlock('SaveTheMage_CustomInvoiceAndOrderNumber_Block_ShowTabsAdminBlock'));
|
10 |
|
11 |
$this->renderLayout();
|
12 |
|
52 |
|
53 |
$msg = "";
|
54 |
|
55 |
+
$model = Mage::getModel('savethemageCustomInvoiceAndOrderNumber/numbers');
|
56 |
if( empty( $model ) )
|
57 |
{
|
58 |
+
require_once ( Mage::getBaseDir('app') . '/code/local/SaveTheMage/CustomInvoiceAndOrderNumber/Model/numbers.php');
|
59 |
+
$model = new SaveTheMage_CustomInvoiceAndOrderNumber_Model_Numbers();
|
60 |
}
|
61 |
|
62 |
$ONumber = "";
|
110 |
|
111 |
public function getOrderInvoiceNumbersAction() { //UnUsed
|
112 |
|
113 |
+
$model = Mage::getModel('savethemageCustomInvoiceAndOrderNumber/numbers');
|
114 |
$output = array();
|
115 |
$output['OrderNumber'] = $model->getOrderNumber( 1 );
|
116 |
$output['InvoiceNumber'] = $model->getInvoiceNumber( 1 );
|
app/code/local/SaveTheMage/CustomInvoiceAndOrderNumber/etc/config.xml
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
|
3 |
+
<config>
|
4 |
+
<modules>
|
5 |
+
<SaveTheMage_CustomInvoiceAndOrderNumber>
|
6 |
+
<version>1.3.1</version>
|
7 |
+
</SaveTheMage_CustomInvoiceAndOrderNumber>
|
8 |
+
</modules>
|
9 |
+
|
10 |
+
<global>
|
11 |
+
<blocks>
|
12 |
+
<CustomInvoiceAndOrderNumberBlock1>
|
13 |
+
<class>SaveTheMage_CustomInvoiceAndOrderNumber_Block</class>
|
14 |
+
</CustomInvoiceAndOrderNumberBlock1>
|
15 |
+
</blocks>
|
16 |
+
<helpers>
|
17 |
+
<CustomInvoiceAndOrderNumberHelper1>
|
18 |
+
<class>SaveTheMage_CustomInvoiceAndOrderNumber_Helper</class>
|
19 |
+
</CustomInvoiceAndOrderNumberHelper1>
|
20 |
+
</helpers>
|
21 |
+
<models>
|
22 |
+
<!-- ... -->
|
23 |
+
<savethemageCustomInvoiceAndOrderNumber>
|
24 |
+
<class>SaveTheMage_CustomInvoiceAndOrderNumber_Model</class>
|
25 |
+
</savethemageCustomInvoiceAndOrderNumber>
|
26 |
+
<!-- ... -->
|
27 |
+
</models>
|
28 |
+
</global>
|
29 |
+
|
30 |
+
<admin>
|
31 |
+
<routers>
|
32 |
+
<CustomInvoiceAndOrderNumber>
|
33 |
+
<use>admin</use>
|
34 |
+
<args>
|
35 |
+
<module>SaveTheMage_CustomInvoiceAndOrderNumber_AdminControllersHere</module>
|
36 |
+
<frontName>CustomInvoiceAndOrderNumber</frontName>
|
37 |
+
<modules>
|
38 |
+
<CustomInvoiceAndOrderNumber after="SaveTheMage_CustomInvoiceAndOrderNumber_AdminControllersHere">Mage_Adminhtml</CustomInvoiceAndOrderNumber>
|
39 |
+
</modules>
|
40 |
+
</args>
|
41 |
+
</CustomInvoiceAndOrderNumber>
|
42 |
+
</routers>
|
43 |
+
</admin>
|
44 |
+
|
45 |
+
<adminhtml>
|
46 |
+
<menu>
|
47 |
+
<SaveTheMageMenu translate="title" module="CustomInvoiceAndOrderNumberHelper1">
|
48 |
+
<title>SaveTheMage</title>
|
49 |
+
<sort_order>201</sort_order>
|
50 |
+
<children>
|
51 |
+
<CustomInvoiceAndOrderNumberChildItem1 translate="title" module="CustomInvoiceAndOrderNumberHelper1">
|
52 |
+
<title>Custom Invoice And Order Number</title>
|
53 |
+
<action>CustomInvoiceAndOrderNumber/Ops</action>
|
54 |
+
<sort_order>3</sort_order>
|
55 |
+
</CustomInvoiceAndOrderNumberChildItem1>
|
56 |
+
</children>
|
57 |
+
</SaveTheMageMenu>
|
58 |
+
</menu>
|
59 |
+
</adminhtml>
|
60 |
+
|
61 |
+
</config>
|
app/design/adminhtml/default/default/template/SaveTheMage/{tab_container_FormChangeOrderNumber.phtml → FormCustomInvoiceAndOrderNumber.phtml}
RENAMED
@@ -45,11 +45,11 @@
|
|
45 |
</thead>
|
46 |
<tbody>
|
47 |
<?php
|
48 |
-
$model = Mage::getModel('
|
49 |
if( empty( $model ) )
|
50 |
{
|
51 |
-
require_once ( Mage::getBaseDir('app') . '/code/local/SaveTheMage/
|
52 |
-
$model = new
|
53 |
}
|
54 |
$websites = Mage::app()->getWebsites();
|
55 |
if (count($websites) > 0 ) { ?>
|
@@ -102,6 +102,7 @@
|
|
102 |
$j( "#dialog-confirm" ).dialog({
|
103 |
resizable: false,
|
104 |
height:180,
|
|
|
105 |
modal: true,
|
106 |
buttons: {
|
107 |
"Confirm": function() {
|
45 |
</thead>
|
46 |
<tbody>
|
47 |
<?php
|
48 |
+
$model = Mage::getModel('savethemageCustomInvoiceAndOrderNumber/Numbers');
|
49 |
if( empty( $model ) )
|
50 |
{
|
51 |
+
require_once ( Mage::getBaseDir('app') . '/code/local/SaveTheMage/CustomInvoiceAndOrderNumber/Model/numbers.php');
|
52 |
+
$model = new SaveTheMage_CustomInvoiceAndOrderNumber_Model_Numbers();
|
53 |
}
|
54 |
$websites = Mage::app()->getWebsites();
|
55 |
if (count($websites) > 0 ) { ?>
|
102 |
$j( "#dialog-confirm" ).dialog({
|
103 |
resizable: false,
|
104 |
height:180,
|
105 |
+
width: 350,
|
106 |
modal: true,
|
107 |
buttons: {
|
108 |
"Confirm": function() {
|
app/etc/modules/{SaveTheMage_ChangeOrderNumber.xml → SaveTheMage_CustomInvoiceAndOrderNumber.xml}
RENAMED
@@ -1,9 +1,9 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
<modules>
|
4 |
-
<
|
5 |
<active>true</active>
|
6 |
<codePool>local</codePool>
|
7 |
-
</
|
8 |
</modules>
|
9 |
</config>
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
<modules>
|
4 |
+
<SaveTheMage_CustomInvoiceAndOrderNumber>
|
5 |
<active>true</active>
|
6 |
<codePool>local</codePool>
|
7 |
+
</SaveTheMage_CustomInvoiceAndOrderNumber>
|
8 |
</modules>
|
9 |
</config>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Custom_Invoice_And_Order_Numbers</name>
|
4 |
-
<version>1.3.
|
5 |
<stability>stable</stability>
|
6 |
<license>GPL</license>
|
7 |
<channel>community</channel>
|
@@ -10,11 +10,11 @@
|
|
10 |
<description>This extension allows you to change the next invoice and order numbers in your stores. No more counting from 100000001.
|
11 |

|
12 |
Change your Invoice and/or Order number to something like 34584 or 1001 (or any other number) and it will start to count from that point on. </description>
|
13 |
-
<notes>
|
14 |
<authors><author><name>SaveTheMage</name><user>SaveTheMage</user><email>support@savethemage.com</email></author></authors>
|
15 |
<date>2013-07-22</date>
|
16 |
-
<time>16:
|
17 |
-
<contents><target name="magelocal"><dir name="SaveTheMage"><dir name="
|
18 |
<compatible/>
|
19 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
20 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Custom_Invoice_And_Order_Numbers</name>
|
4 |
+
<version>1.3.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>GPL</license>
|
7 |
<channel>community</channel>
|
10 |
<description>This extension allows you to change the next invoice and order numbers in your stores. No more counting from 100000001.
|
11 |

|
12 |
Change your Invoice and/or Order number to something like 34584 or 1001 (or any other number) and it will start to count from that point on. </description>
|
13 |
+
<notes>Naming update</notes>
|
14 |
<authors><author><name>SaveTheMage</name><user>SaveTheMage</user><email>support@savethemage.com</email></author></authors>
|
15 |
<date>2013-07-22</date>
|
16 |
+
<time>16:41:03</time>
|
17 |
+
<contents><target name="magelocal"><dir name="SaveTheMage"><dir name="CustomInvoiceAndOrderNumber"><dir name="Block"><file name="FormCustomInvoiceAndOrderNumber.php" hash="12425a5ec35fbec38ee39e72b53f6d8a"/><file name="ShowTabsAdminBlock.php" hash="29011b3f0be5bd7028cb8e3b14b48111"/></dir><dir name="Helper"><file name="Data.php" hash="82d26ce1d401131f08f71b498a7d1337"/></dir><dir name="Model"><file name="numbers.php" hash="658ca037c2b833894bb5cc13758214dc"/></dir><dir name="controllers"><dir name="AdminControllersHere"><file name="OpsController.php" hash="3f85947aad28de45dbb439dcb2037f85"/></dir></dir><dir name="etc"><file name="config.xml" hash="2c9c6f39b7f1af88012774ba411f3ea6"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="SaveTheMage"><file name="FormCustomInvoiceAndOrderNumber.phtml" hash="28c358c5742c777628ac4d58eaafa408"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="SaveTheMage_CustomInvoiceAndOrderNumber.xml" hash="e17a3ef6d1593968815973220328350c"/></dir></target></contents>
|
18 |
<compatible/>
|
19 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
20 |
</package>
|