|
|
@ -77,6 +77,7 @@ class Vendor_money extends CI_Controller {
|
|
|
|
array(
|
|
|
|
array(
|
|
|
|
"trippest_sum" => 0,
|
|
|
|
"trippest_sum" => 0,
|
|
|
|
"vendor_sum" => 0,
|
|
|
|
"vendor_sum" => 0,
|
|
|
|
|
|
|
|
"other_sum_cost" => 0,
|
|
|
|
"other_sum" => 0
|
|
|
|
"other_sum" => 0
|
|
|
|
),
|
|
|
|
),
|
|
|
|
"vendor" =>
|
|
|
|
"vendor" =>
|
|
|
@ -84,6 +85,7 @@ class Vendor_money extends CI_Controller {
|
|
|
|
"trippest_sum" => 0,
|
|
|
|
"trippest_sum" => 0,
|
|
|
|
"vendor_sum" => 0,
|
|
|
|
"vendor_sum" => 0,
|
|
|
|
"transfer_sum" => 0,
|
|
|
|
"transfer_sum" => 0,
|
|
|
|
|
|
|
|
"other_sum_cost" => 0,
|
|
|
|
"other_sum" => 0
|
|
|
|
"other_sum" => 0
|
|
|
|
)
|
|
|
|
)
|
|
|
|
);
|
|
|
|
);
|
|
|
@ -96,6 +98,7 @@ class Vendor_money extends CI_Controller {
|
|
|
|
$ret["trippest"]['trippest_sum'] = bcadd(floatval($ret["trippest"]['trippest_sum']), floatval($opi_money['trippest_sum'])) ;
|
|
|
|
$ret["trippest"]['trippest_sum'] = bcadd(floatval($ret["trippest"]['trippest_sum']), floatval($opi_money['trippest_sum'])) ;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$ret['trippest']['other_sum'] = bcadd($ret['trippest']['other_sum'], $opi_money['other_price_sum']);
|
|
|
|
$ret['trippest']['other_sum'] = bcadd($ret['trippest']['other_sum'], $opi_money['other_price_sum']);
|
|
|
|
|
|
|
|
$ret['trippest']['other_sum_cost'] = bcadd($ret['trippest']['other_sum_cost'], $opi_money['other_cost_sum']);
|
|
|
|
$ret["trippest"]['trippest_sum'] = bcsub($ret["trippest"]['trippest_sum'], $opi_money['other_price_sum']);
|
|
|
|
$ret["trippest"]['trippest_sum'] = bcsub($ret["trippest"]['trippest_sum'], $opi_money['other_price_sum']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 按照图兰朵算法: Trippest自营订单的代收算在海纳收款
|
|
|
|
// 按照图兰朵算法: Trippest自营订单的代收算在海纳收款
|
|
|
@ -107,6 +110,7 @@ class Vendor_money extends CI_Controller {
|
|
|
|
$ret["vendor"]['trippest_sum'] = bcadd(floatval($ret["vendor"]['trippest_sum']), floatval($opi_money_v['vendor_sum'])) ;
|
|
|
|
$ret["vendor"]['trippest_sum'] = bcadd(floatval($ret["vendor"]['trippest_sum']), floatval($opi_money_v['vendor_sum'])) ;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$ret['vendor']['other_sum'] = bcadd($ret['vendor']['other_sum'], $opi_money_v['other_price_sum']);
|
|
|
|
$ret['vendor']['other_sum'] = bcadd($ret['vendor']['other_sum'], $opi_money_v['other_price_sum']);
|
|
|
|
|
|
|
|
$ret['vendor']['other_sum_cost'] = bcadd($ret['vendor']['other_sum_cost'], $opi_money_v['other_cost_sum']);
|
|
|
|
$ret["vendor"]['trippest_sum'] = bcsub($ret["vendor"]['trippest_sum'], $opi_money_v['other_price_sum']);
|
|
|
|
$ret["vendor"]['trippest_sum'] = bcsub($ret["vendor"]['trippest_sum'], $opi_money_v['other_price_sum']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$ret["vendor"]["transfer_sum"] = bcsub($ret["vendor"]['vendor_sum'], $ret["trippest"]['vendor_sum']);
|
|
|
|
$ret["vendor"]["transfer_sum"] = bcsub($ret["vendor"]['vendor_sum'], $ret["trippest"]['vendor_sum']);
|
|
|
|