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
f2d13f84
Commit
f2d13f84
authored
Jul 25, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6905e4c3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
StoreFeeService.php
application/api_broker/service/StoreFeeService.php
+7
-3
No files found.
application/api_broker/service/StoreFeeService.php
View file @
f2d13f84
...
...
@@ -281,6 +281,7 @@ class StoreFeeService
$districtAttendanceNum
=
$this
->
sumAttendanceNum
(
0
,
2
,
$setting_date
);
$discountsNum
=
$this
->
sumAttendanceNum
(
0
,
4
,
$setting_date
);
foreach
(
$storeSettingInfo
as
$key
=>
$item
)
{
$applyForFeeArr
=
$this
->
getApplyForFee
(
$item
[
"store_id"
],
$setting_date
);
$site_id
=
$applyForFeeArr
[
0
][
"site_id"
];
$store_id
=
$item
[
"store_id"
];
...
...
@@ -314,6 +315,7 @@ class StoreFeeService
$assume_fee
,
$purpose
));
}
}
//todo 处理 房租租金 上海固定成本分部固定成本 发展基金社保报销 总经理薪资 手续费
//门店租金
$storeModel
=
new
AStore
();
...
...
@@ -327,6 +329,7 @@ class StoreFeeService
//上海总部固定成本 门店是上海的只承担总部成本,否则承担总部和分部成本
//上海
$attendance_discount
=
$attendance_num
;
if
(
$item
[
"is_discounts"
]
==
1
)
{
$attendance_discount
=
$attendance_num
*
$tree
[
0
][
"discounts"
]
*
0.01
;
...
...
@@ -369,14 +372,15 @@ class StoreFeeService
break
;
}
//分部
$disc_assume_fee1
=
ceil
(
$attendance_num
/
$officeAttendanceNum
*
$apply_for_fee
*
100
)
*
0.01
;
$disc_assume_fee2
=
ceil
(
$attendance_num
/
$officeAttendanceNum
*
$apply_for_fee
*
100
)
*
0.01
;
array_push
(
$insertArr
,
$this
->
storeCostExtBin
(
$cost_id
,
3
,
301
,
0
,
$create_time
,
array_push
(
$insertArr
,
$this
->
storeCostExtBin
(
$cost_id
,
$store_id
,
3
,
301
,
0
,
$create_time
,
$rent_fixed
,
$attendance_num
,
$officeAttendanceNum
,
$districtNum
,
$companyAttendanceNum
,
$disc_assume_fee1
,
""
));
array_push
(
$insertArr
,
$this
->
storeCostExtBin
(
$cost_id
,
3
,
302
,
0
,
$create_time
,
array_push
(
$insertArr
,
$this
->
storeCostExtBin
(
$cost_id
,
$store_id
,
3
,
302
,
0
,
$create_time
,
$apply_for_fee
,
$attendance_num
,
$officeAttendanceNum
,
$districtNum
,
$companyAttendanceNum
,
$disc_assume_fee2
,
""
));
...
...
@@ -402,7 +406,7 @@ class StoreFeeService
$item
[
"transfer_charge"
],
$attendance_num
,
$officeAttendanceNum
,
$districtNum
,
$companyAttendanceNum
,
$item
[
"transfer_charge"
],
""
));
}
$storeCostExtModel
=
new
FStoreCostExt
();
$is_ok
=
$storeCostExtModel
->
addCostExt
(
$insertArr
);
if
(
$is_ok
)
{
...
...
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