Commit 9bcddd20 authored by clone's avatar clone

bug

parent d0c246e4
......@@ -869,11 +869,28 @@ class OrderLogService
//税费
$taxesModel = new OTaxes();
$fieldTaxes = "bargain_id,fee,total_fee,father_id,operation_date,agent_id,agent_name,scale";
$taxesArr = $taxesModel->getBargainTaxes($params["bargain_id"], $fieldTaxes);
$taxes = array();
foreach ($taxesArr as $items){
$taxes[$items["operation_date"]][] = $items;
$fieldTaxes = "id,bargain_id,fee,total_fee,father_id,operation_date,agent_id,agent_name,scale,create_time,role";
$taxesArr = $taxesModel->getBargainTaxes($params["bargain_id"], $fieldTaxes);
$taxes_ = $taxes = array();
foreach ($taxesArr as $items) {
$taxes_[$items["operation_date"]][] = $items;
}
$z = 0;
foreach ($taxes_ as $item) {
$taxes[$z]["operation_date"] = $item[0]["operation_date"];
$taxes[$z]["total_fee"] = $item[0]["total_fee"];
$key = 0;
foreach ($item as $i => $j) {
$taxes[$z]["info"][$key]["role"] = $j["role"];
$taxes[$z]["info"][$key]["agent_name"] = $j["agent_name"];
$taxes[$z]["info"][$key]["scale"] = $j["scale"];
$taxes[$z]["info"][$key]["fee"] = $j["fee"];
$key++;
}
$z++;
}
$result["taxes"] = $taxes;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment