Commit edfbb080 authored by clone's avatar clone

bug

parent 02aa8286
......@@ -728,6 +728,7 @@ class Finance extends Basic
$bargain_id = $this->params['bargain_id'];
$operation_date = $this->params['operation_date'];
$insert_data['bargain_id'] = $bargain_id;
$insert_data['total_fee'] = $this->params['total_fee']; //开票金额
$insert_data['father_id'] = 0;
......@@ -735,9 +736,15 @@ class Finance extends Basic
$insert_data['operation_date'] = $operation_date; //开票日期
$m_fee = new OTaxes();
$ids = $m_fee->editData($insert_data, $this->params['id']); //开票新增和编辑
echo $ids;
$father_id = $m_fee->id;
$m_fee->editData($insert_data, $this->params['id']); //开票新增和编辑
$father_id = 0;
if($this->params['id'] && $this->params['id'] > 0 ){ //编辑
$father_id = $this->params['id'];
}else{
$father_id = $m_fee->id;
}
$m_agent = new AAgents();
......
......@@ -59,7 +59,6 @@ class OTaxes extends BaseModel
*/
public function addTaxes($data, $bargain_id, int $agent_id, $father_id = 0, $total_fee = 0, $operation_date = '')
{
echo 222;
$insert_data = [];
foreach ($data as $k => $v) {
$insert_data[$k]['id'] = $v['fee_id'];
......
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