Skip to content

Commit

Permalink
受注管理画面の対応
Browse files Browse the repository at this point in the history
  • Loading branch information
nanasess committed Sep 17, 2019
1 parent 15c3eab commit 4d5c88c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -689,9 +689,10 @@ public function lfCheckError(&$objFormParam)
$totaltax = 0;
for ($i = 0; $i < $max; $i++) {
// 小計の計算
$subtotal += SC_Helper_DB_Ex::sfCalcIncTax($arrValues['price'][$i], $arrValues['tax_rate'][$i], $arrValues['tax_rule'][$i]) * $arrValues['quantity'][$i];
// 小計の計算
$totaltax += SC_Utils_Ex::sfTax($arrValues['price'][$i], $arrValues['tax_rate'][$i], $arrValues['tax_rule'][$i]) * $arrValues['quantity'][$i];
$tax = SC_Helper_TaxRule_Ex::calcTax($arrValues['price'][$i], $arrValues['tax_rate'][$i], $arrValues['tax_rule'][$i]);
$subtotal += ($tax + $arrValues['price'][$i]) * $arrValues['quantity'][$i];
// 税額の計算
$totaltax += $tax * $arrValues['quantity'][$i];
// 加算ポイントの計算
$totalpoint += SC_Utils_Ex::sfPrePoint($arrValues['price'][$i], $arrValues['point_rate'][$i]) * $arrValues['quantity'][$i];

Expand Down Expand Up @@ -1082,7 +1083,7 @@ public function shipmentEditProduct(&$objFormParam, $edit_product_class_id, $cha
$this->changeShipmentProducts($arrShipmentProducts, $arrAddProductInfo, $select_shipping_id, $change_no);

//受注商品情報も上書き
$arrTax = SC_Helper_TaxRule_Ex::getTaxRule(0, $edit_product_class_id);
$arrTax = SC_Helper_TaxRule_Ex::getTaxRule($arrAddProductInfo['product_id']);

// 実際はedit
$arrAddProductInfo['product_name'] = ($arrAddProductInfo['product_name'])
Expand Down Expand Up @@ -1260,7 +1261,7 @@ public function checkInsertOrderProducts(&$objFormParam, $arrProductClassIds, $i
{
if (!$arrProductClassIds || !in_array($insert_product_class_id, $arrProductClassIds)) {
$arrAddProducts = array();
$arrTax = SC_Helper_TaxRule_Ex::getTaxRule(0, $insert_product_class_id);
$arrTax = SC_Helper_TaxRule_Ex::getTaxRule($arrAddProductInfo['product_id']);

$arrAddProductInfo['product_name'] = ($arrAddProductInfo['product_name'])
? $arrAddProductInfo['product_name']
Expand Down

0 comments on commit 4d5c88c

Please sign in to comment.