Skip to content

Commit

Permalink
Merge pull request #1127 from nanasess/fix-taxrate-back
Browse files Browse the repository at this point in the history
商品登録確認ページから戻った場合、消費税率を引き継ぐよう修正
  • Loading branch information
nanasess authored Jan 8, 2025
2 parents 342c1af + 2255a3a commit 45ed754
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,11 @@ public function lfSetViewParam_InputPage(&$objUpFile, &$objDownFile, &$arrForm)
if (OPTION_PRODUCT_TAX_RULE) {
// 編集の場合は設定された税率、新規の場合はデフォルトの税率を取得
if ($arrForm['product_id'] == '') {
$arrRet = SC_Helper_TaxRule_Ex::getTaxRule();
if (isset($arrForm['tax_rate'])) {
$arrRet['tax_rate'] = $arrForm['tax_rate'];
} else {
$arrRet = SC_Helper_TaxRule_Ex::getTaxRule();
}
} else {
$arrRet = SC_Helper_TaxRule_Ex::getTaxRule($arrForm['product_id']);
}
Expand Down

0 comments on commit 45ed754

Please sign in to comment.