Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
edfbb080
Commit
edfbb080
authored
May 28, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
02aa8286
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
Finance.php
application/index/controller/Finance.php
+10
-3
OTaxes.php
application/model/OTaxes.php
+0
-1
No files found.
application/index/controller/Finance.php
View file @
edfbb080
...
...
@@ -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
();
...
...
application/model/OTaxes.php
View file @
edfbb080
...
...
@@ -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'
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment