Changeset 23393 for branches/version-2_13-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php
- Timestamp:
- 2014/05/03 15:19:46 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php
r23392 r23393 1226 1226 public function checkInsertOrderProducts(&$objFormParam, $arrProductClassIds, $insert_product_class_id, $arrAddProductInfo) 1227 1227 { 1228 if (!$arrProductClassIds || !in_array($insert_product_class_id, $arrProductClassIds)){1228 if (!$arrProductClassIds || !in_array($insert_product_class_id, $arrProductClassIds)) { 1229 1229 $arrAddProducts = array(); 1230 1230 1231 $arrAddProductInfo['product_name'] = ($arrAddProductInfo['product_name'])? 1232 $arrAddProductInfo['product_name']:$arrAddProductInfo['name']; 1233 $arrAddProductInfo['price'] = ($arrAddProductInfo['price'])? 1234 $arrAddProductInfo['price']:$arrAddProductInfo['price02']; 1235 $arrAddProductInfo['quantity'] = 1; 1236 $arrAddProductInfo['tax_rate'] = ($objFormParam->getValue('order_tax_rate') == '')? 1237 $this->arrInfo['tax'] :$objFormParam->getValue('order_tax_rate'); 1238 $arrAddProductInfo['tax_rule'] = ($objFormParam->getValue('order_tax_rule') == '')? 1239 $this->arrInfo['tax_rule']:$objFormParam->getValue('order_tax_rule'); 1231 $arrAddProductInfo['product_name'] = ($arrAddProductInfo['product_name']) 1232 ? $arrAddProductInfo['product_name'] 1233 : $arrAddProductInfo['name']; 1234 1235 $arrAddProductInfo['price'] = ($arrAddProductInfo['price']) 1236 ? $arrAddProductInfo['price'] 1237 : $arrAddProductInfo['price02']; 1238 1239 $arrAddProductInfo['quantity'] = 1; 1240 $arrAddProductInfo['tax_rate'] = ($objFormParam->getValue('order_tax_rate') == '') 1241 ? $this->arrInfo['tax'] 1242 : $objFormParam->getValue('order_tax_rate'); 1243 1244 $arrAddProductInfo['tax_rule'] = ($objFormParam->getValue('order_tax_rule') == '') 1245 ? $this->arrInfo['tax_rule'] 1246 : $objFormParam->getValue('order_tax_rule'); 1247 1240 1248 foreach ($this->arrProductKeys as $insert_key) { 1241 1249 $value = $objFormParam->getValue($insert_key);
Note: See TracChangeset
for help on using the changeset viewer.