Changeset 21131 for branches/version-2_11-dev/data/class/SC_Product.php
- Timestamp:
- 2011/08/04 22:26:45 (15 years ago)
- bzr:base-revision:
- [email protected]
- bzr:committer:
- Kentaro Ohkouchi <[email protected]>
- bzr:file-ids:
data/class/SC_Product.php 18277@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fcomu-ver2%2Fdata%2Fclass%2FSC_Product.php
data/class/pages/mypage/LC_Page_Mypage_Favorite.php 17162@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fcomu-ver2%2Fdata%2Fclass%2Fpages%2Fmypage%2FLC_Page_Mypage_Favorite.php
data/class/pages/products/LC_Page_Products_List.php 15154@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fproducts%2FLC_Page_Products_List.php- bzr:mapping-version:
- v4
- bzr:merge:
[email protected]- bzr:repository-uuid:
- 1e3b908f-19a9-db11-a64c-001125224ba8
- bzr:revision-id:
- [email protected]
- bzr:revno:
- 3834
- bzr:revprop:branch-nick:
- branches/version-2_11-dev
- bzr:root:
- branches/version-2_11-dev
- bzr:testament:
bazaar-ng testament short form 2.1
revision-id: [email protected]
sha1: ad563299326e9642a36b9d8ef2129c61ed8656c6- bzr:text-parents:
data/class/SC_Product.php svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/version-2_11-dev:21005
data/class/pages/mypage/LC_Page_Mypage_Favorite.php [email protected]
data/class/pages/products/LC_Page_Products_List.php svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/version-2_11-dev:21049- bzr:timestamp:
- 2011-08-04 22:26:42.322999954 +0900
- bzr:user-agent:
- bzr2.3.1+bzr-svn1.1.0dev0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_11-dev/data/class/SC_Product.php
r21005 r21131 603 603 604 604 return true; 605 } 606 607 /** 608 * 商品情報の配列に, 税込金額を設定して返す. 609 * 610 * この関数は, 主にスマートフォンで使用します. 611 * 612 * @param array $arrProducts 商品情報の配列 613 * @return array 税込金額を設定した商品情報の配列 614 */ 615 function setPriceTaxTo($arrProducts) { 616 foreach ($arrProducts as $key=>$val) { 617 $arrProducts[$key]['price01_min_format'] = number_format($arrProducts[$key]['price01_min']); 618 $arrProducts[$key]['price01_max_format'] = number_format($arrProducts[$key]['price01_max']); 619 $arrProducts[$key]['price02_min_format'] = number_format($arrProducts[$key]['price02_min']); 620 $arrProducts[$key]['price02_max_format'] = number_format($arrProducts[$key]['price02_max']); 621 622 $arrProducts[$key]['price01_min_tax'] = SC_Helper_DB::sfCalcIncTax($arrProducts[$key]['price01_min']); 623 $arrProducts[$key]['price01_max_tax'] = SC_Helper_DB::sfCalcIncTax($arrProducts[$key]['price01_max']); 624 $arrProducts[$key]['price02_min_tax'] = SC_Helper_DB::sfCalcIncTax($arrProducts[$key]['price02_min']); 625 $arrProducts[$key]['price02_max_tax'] = SC_Helper_DB::sfCalcIncTax($arrProducts[$key]['price02_max']); 626 627 $arrProducts[$key]['price01_min_tax_format'] = number_format($arrProducts[$key]['price01_min_tax']); 628 $arrProducts[$key]['price01_max_tax_format'] = number_format($arrProducts[$key]['price01_max_tax']); 629 $arrProducts[$key]['price02_min_tax_format'] = number_format($arrProducts[$key]['price02_min_tax']); 630 $arrProducts[$key]['price02_max_tax_format'] = number_format($arrProducts[$key]['price02_max_tax']); 631 } 632 return $arrProducts; 605 633 } 606 634
Note: See TracChangeset
for help on using the changeset viewer.
