File tree 8 files changed +19
-34
lines changed
CatalogInventory/Model/Stock
8 files changed +19
-34
lines changed Original file line number Diff line number Diff line change @@ -118,18 +118,6 @@ protected function _construct()
118
118
$ this ->_init ('catalog/product ' );
119
119
}
120
120
121
- /**
122
- * Init mapping array of short fields to
123
- * its full names
124
- *
125
- * @return Varien_Object
126
- */
127
- protected function _initOldFieldsMap ()
128
- {
129
- $ this ->_oldFieldsMap = Mage::helper ('catalog ' )->getOldFieldMap ();
130
- return $ this ;
131
- }
132
-
133
121
/**
134
122
* Retrieve Store Id
135
123
*
Original file line number Diff line number Diff line change @@ -152,6 +152,7 @@ protected function _construct()
152
152
*/
153
153
protected function _initOldFieldsMap ()
154
154
{
155
+ // pre 1.6 fields names, old => new
155
156
$ this ->_oldFieldsMap = array (
156
157
'stock_status_changed_automatically ' => 'stock_status_changed_auto ' ,
157
158
'use_config_enable_qty_increments ' => 'use_config_enable_qty_inc '
Original file line number Diff line number Diff line change @@ -431,7 +431,12 @@ protected function _construct()
431
431
*/
432
432
protected function _initOldFieldsMap ()
433
433
{
434
- $ this ->_oldFieldsMap = Mage::helper ('sales ' )->getOldFieldMap ('order ' );
434
+ // pre 1.6 fields names, old => new
435
+ $ this ->_oldFieldsMap = [
436
+ 'payment_authorization_expiration ' => 'payment_auth_expiration ' ,
437
+ 'forced_do_shipment_with_invoice ' => 'forced_shipment_with_invoice ' ,
438
+ 'base_shipping_hidden_tax_amount ' => 'base_shipping_hidden_tax_amnt ' ,
439
+ ];
435
440
return $ this ;
436
441
}
437
442
Original file line number Diff line number Diff line change @@ -132,7 +132,10 @@ public function setCreditmemo(Mage_Sales_Model_Order_Creditmemo $creditmemo)
132
132
*/
133
133
protected function _initOldFieldsMap ()
134
134
{
135
- $ this ->_oldFieldsMap = Mage::helper ('sales ' )->getOldFieldMap ('creditmemo_item ' );
135
+ // pre 1.6 fields names, old => new
136
+ $ this ->_oldFieldsMap = [
137
+ 'base_weee_tax_applied_row_amount ' => 'base_weee_tax_applied_row_amnt ' ,
138
+ ];
136
139
return $ this ;
137
140
}
138
141
Original file line number Diff line number Diff line change @@ -122,7 +122,10 @@ function _construct()
122
122
*/
123
123
protected function _initOldFieldsMap ()
124
124
{
125
- $ this ->_oldFieldsMap = Mage::helper ('sales ' )->getOldFieldMap ('invoice_item ' );
125
+ // pre 1.6 fields names, old => new
126
+ $ this ->_oldFieldsMap = [
127
+ 'base_weee_tax_applied_row_amount ' => 'base_weee_tax_applied_row_amnt ' ,
128
+ ];
126
129
return $ this ;
127
130
}
128
131
/**
Original file line number Diff line number Diff line change @@ -236,7 +236,10 @@ protected function _construct()
236
236
*/
237
237
protected function _initOldFieldsMap ()
238
238
{
239
- $ this ->_oldFieldsMap = Mage::helper ('sales ' )->getOldFieldMap ('order_item ' );
239
+ // pre 1.6 fields names, old => new
240
+ $ this ->_oldFieldsMap = [
241
+ 'base_weee_tax_applied_row_amount ' => 'base_weee_tax_applied_row_amnt ' ,
242
+ ];
240
243
return $ this ;
241
244
}
242
245
Original file line number Diff line number Diff line change 1198
1198
</product >
1199
1199
</catalog >
1200
1200
<sales >
1201
- <old_fields_map >
1202
- <order >
1203
- <payment_authorization_expiration >payment_auth_expiration</payment_authorization_expiration >
1204
- <forced_do_shipment_with_invoice >forced_shipment_with_invoice</forced_do_shipment_with_invoice >
1205
- <base_shipping_hidden_tax_amount >base_shipping_hidden_tax_amnt</base_shipping_hidden_tax_amount >
1206
- </order >
1207
- </old_fields_map >
1208
1201
<quote >
1209
1202
<totals >
1210
1203
<nominal >
Original file line number Diff line number Diff line change 225
225
</weee >
226
226
</totals >
227
227
</order_creditmemo >
228
- <old_fields_map >
229
- <order_item >
230
- <base_weee_tax_applied_row_amount >base_weee_tax_applied_row_amnt</base_weee_tax_applied_row_amount >
231
- </order_item >
232
- <invoice_item >
233
- <base_weee_tax_applied_row_amount >base_weee_tax_applied_row_amnt</base_weee_tax_applied_row_amount >
234
- </invoice_item >
235
- <creditmemo_item >
236
- <base_weee_tax_applied_row_amount >base_weee_tax_applied_row_amnt</base_weee_tax_applied_row_amount >
237
- </creditmemo_item >
238
- </old_fields_map >
239
228
</sales >
240
229
</global >
241
230
<adminhtml >
You can’t perform that action at this time.
0 commit comments