|
|
@@ -181,11 +181,14 @@ class StockInOrderClass extends BaseClass
|
|
|
$outCapitalType = dict::getDict('capitalType', 'ghsCheckOut', 'id');
|
|
|
|
|
|
$shop = ShopClass::getLockById($outShopId);
|
|
|
+
|
|
|
if($shop){
|
|
|
$outCurrentTotalIncome = bcadd($shop->totalIncome, $outTotalCost, 2);
|
|
|
}else{
|
|
|
$outCurrentTotalIncome = $outTotalCost;
|
|
|
}
|
|
|
+ $shop->totalIncome = $outCurrentTotalIncome;
|
|
|
+ $shop->save();
|
|
|
$capitalData = [
|
|
|
'capitalType' => $outCapitalType,
|
|
|
'io' => 1,
|
|
|
@@ -212,6 +215,8 @@ class StockInOrderClass extends BaseClass
|
|
|
}else{
|
|
|
$inCurrentTotalIncome = $inTotalCost;
|
|
|
}
|
|
|
+ $inShop->totalIncome = $inCurrentTotalIncome;
|
|
|
+ $inShop->save();
|
|
|
$capitalData = [
|
|
|
'capitalType' => $inCapitalType,
|
|
|
'io' => 1,
|