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
d403a0fc
Commit
d403a0fc
authored
May 09, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
073c3657
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
xgg-saas-platform/app/base/controller/impl/saas/invoiceCtl.js
+5
-3
No files found.
xgg-saas-platform/app/base/controller/impl/saas/invoiceCtl.js
View file @
d403a0fc
...
...
@@ -145,7 +145,7 @@ class InvoiceCtl extends CtlBase {
let
data_ids
=
[];
for
(
let
item
of
itemList
)
{
amount
=
amount
+
Number
(
item
.
amt
||
0
);
data_ids
.
push
(
item
.
id
);
data_ids
.
push
(
item
.
id
);
// TODO 总统测试
}
let
service_tax
=
parseFloat
((
Number
(
amount
)
*
Number
(
invoice_service_rate
)
/
100
).
toFixed
(
2
));
if
(
!
businessmen
.
is_bank
)
{
...
...
@@ -172,7 +172,7 @@ class InvoiceCtl extends CtlBase {
"quantity"
:
""
,
"price"
:
""
,
"remark"
:
""
,
"data_ids"
:
data_ids
.
join
(
","
)
"data_ids"
:
data_ids
.
join
(
","
)
// TODO 总统测试
});
}
...
...
@@ -306,7 +306,7 @@ class InvoiceCtl extends CtlBase {
mail_addr
:
this
.
trim
(
params
.
mail_addr
),
mail_mobile
:
this
.
trim
(
params
.
mail_mobile
),
mail_to
:
this
.
trim
(
params
.
mail_to
),
data_ids
:
this
.
trim
(
params
.
data_ids
),
data_ids
:
this
.
trim
(
params
.
data_ids
),
// TODO 总统测试
personal_invoice_tax
:
system
.
y2f
(
invoice
.
personal_invoice_tax
),
additional_tax
:
system
.
y2f
(
invoice
.
additional_tax
),
...
...
@@ -329,6 +329,7 @@ class InvoiceCtl extends CtlBase {
status
:
"1060"
,
}
});
// TODO 总统测试 begin
if
(
rs
&&
rs
.
data
&&
rs
.
data
.
length
>
0
)
{
for
(
let
d
of
rs
.
data
)
{
console
.
log
(
d
.
id
,
d
.
data_ids
);
...
...
@@ -339,6 +340,7 @@ class InvoiceCtl extends CtlBase {
await
this
.
tradeSve
.
updateInvoice
({
ids
:
tradeIds
,
saas_invoice_id
:
d
.
id
});
}
}
// TODO 总统测试 end
return
system
.
getResultSuccess
(
rs
);
}
catch
(
error
)
{
let
msg
=
error
.
message
;
...
...
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