|
|
@@ -11695,7 +11695,8 @@ class StoreOrderRepository extends BaseRepository
|
|
11695
|
11695
|
|
|
11696
|
11696
|
// 为消费者 初始化 添加养老金记录
|
|
11697
|
11697
|
if (is_null($yanglaojin)) {
|
|
11698
|
|
- $yanglaojin = bcmul($storeOrderEntity->getTotalPrice(), CommonEnum::ORDER_EARNING_ALLOCATION['SharedProsperity']['Self']['YangLaoJin']['Ratio']['code'], CommonEnum::DECIMAL_PLACES_OF_THE_AMOUNT);
|
|
|
11698
|
+ $goodPrice = bcsub($storeOrderEntity->getTotalPrice(),$storeOrderEntity->getTotalPostage(),CommonEnum::DECIMAL_PLACES_OF_THE_AMOUNT);
|
|
|
11699
|
+ $yanglaojin = bcmul($goodPrice, CommonEnum::ORDER_EARNING_ALLOCATION['SharedProsperity']['Self']['YangLaoJin']['Ratio']['code'], CommonEnum::DECIMAL_PLACES_OF_THE_AMOUNT);
|
|
11699
|
11700
|
}
|
|
11700
|
11701
|
/** @var UserBillRepository $userBillRepository */
|
|
11701
|
11702
|
$userBillRepository = app()->make(UserBillRepository::class);
|