Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
d9bcb57c
Commit
d9bcb57c
authored
Apr 22, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
20fbf99b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
xgg-admin/app/base/service/impl/invoice/invoiceSve.js
+14
-3
No files found.
xgg-admin/app/base/service/impl/invoice/invoiceSve.js
View file @
d9bcb57c
...
...
@@ -329,6 +329,19 @@ class InvoiceService extends ServiceBase {
if
(
!
businessmenBean
.
sign_time
)
{
return
system
.
getResult
(
null
,
`个体户未签约`
);
}
//************************************************************一下是计算服务费************************************* */
let
service_rate
=
new
Decimal
(
businessmenBean
.
service_rate
).
div
(
100
).
toNumber
();
let
service_amount
=
new
Decimal
(
params
.
invoice_amount
).
mul
(
service_rate
).
toNumber
();
if
(
businessmenBean
.
is_bank
)
{
return
system
.
getResultSuccess
({
personal_invoice_tax
:
0
,
value_added_tax
:
0
,
additional_tax
:
0
,
service_amount
:
service_amount
,
credit_code
:
params
.
credit_code
});
}
// params.invoice_amount = system.y2f(this.trim(params.invoice_amount));
//增值税累计类型 1按月 2按季度 add_value_up_type
//个税累计类型 1按月累计 2按季度累计 tax_up_type
...
...
@@ -378,9 +391,7 @@ class InvoiceService extends ServiceBase {
//附加税 =增值税*附加税
let
additional_tax
=
new
Decimal
(
value_added_tax
).
mul
(
AVRateRes
.
fujiaRate
).
toNumber
().
toFixed
(
2
);
//************************************************************一下是计算服务费************************************* */
let
service_rate
=
new
Decimal
(
businessmenBean
.
service_rate
).
div
(
100
).
toNumber
();
let
service_amount
=
new
Decimal
(
params
.
invoice_amount
).
mul
(
service_rate
).
toNumber
();
personal_invoice_tax
=
system
.
f2y
(
personal_invoice_tax
);
value_added_tax
=
system
.
f2y
(
value_added_tax
);
...
...
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