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
d86b3538
Commit
d86b3538
authored
May 12, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
f3c7ee83
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
xggsve-invoice/app/base/service/impl/invoice/iinvoiceSve.js
+5
-2
xggsve-invoice/app/base/service/impl/invoice/saasinvoiceapplySve.js
+2
-0
No files found.
xggsve-invoice/app/base/service/impl/invoice/iinvoiceSve.js
View file @
d86b3538
...
...
@@ -360,12 +360,15 @@ class IInvoiceService extends ServiceBase {
return
system
.
getResult
(
null
,
`发票不存在`
);
}
this
.
handleDate
(
_invoice
,
[
'invoice_time'
,
'apply_time'
,
'updated_at'
,
'created_at'
],
'YYYY-MM-DD HH:mm:ss'
);
_invoice
.
invoice_amount
=
system
.
f2y
(
_invoice
.
invoice_amount
);
_invoice
.
personal_invoice_tax
=
system
.
f2y
(
_invoice
.
personal_invoice_tax
);
_invoice
.
additional_tax
=
system
.
f2y
(
_invoice
.
additional_tax
);
_invoice
.
value_added_tax
=
system
.
f2y
(
_invoice
.
value_added_tax
);
let
_invoiceinforeg
=
await
this
.
iinvoiceinforegDao
.
getById
(
this
.
trim
(
params
.
id
))
||
{};
this
.
handleDate
(
_invoiceinforeg
,
[
'updated_at'
,
'created_at'
],
'YYYY-MM-DD HH:mm:ss'
);
let
_invoicedeliver
=
await
this
.
iinvoicedeliverDao
.
getById
(
_invoice
.
invoice_deliver_id
)
||
{};
this
.
handleDate
(
_invoicedeliver
,
[
'updated_at'
,
'created_at'
],
'YYYY-MM-DD HH:mm:ss'
);
_invoicedeliver
.
deliver_delive
=
system
.
f2y
(
_invoicedeliver
.
deliver_delive
);
let
_invoicesummaryinfo
=
await
this
.
iinvoicesummaryinfoDao
.
getById
(
this
.
trim
(
params
.
id
));
_invoicesummaryinfo
.
summary
=
JSON
.
parse
(
_invoicesummaryinfo
.
summary
);
this
.
handleDate
(
_invoicesummaryinfo
,
[
'invoice_time'
,
'updated_at'
,
'created_at'
],
'YYYY-MM-DD HH:mm:ss'
);
...
...
xggsve-invoice/app/base/service/impl/invoice/saasinvoiceapplySve.js
View file @
d86b3538
...
...
@@ -207,7 +207,9 @@ class SaasinvoiceapplyService extends ServiceBase {
saasInvoiceApply
.
invoice_type_name
=
"普通发票"
;
}
this
.
handleDate
(
saasInvoiceApply
,
[
'updated_at'
,
'created_at'
],
'YYYY-MM-DD HH:mm:ss'
);
saasInvoiceApply
.
invoice_amount
=
system
.
f2y
(
saasInvoiceApply
.
invoice_amount
);
let
saasInvoice
=
await
this
.
saasinvoiceDao
.
getById
(
params
.
id
)
||
{};
saasInvoice
.
invoice_amount
=
system
.
f2y
(
saasInvoice
.
invoice_amount
);
saasInvoiceApply
.
saasInvoice
=
saasInvoice
;
return
system
.
getResult
(
saasInvoiceApply
);
}
catch
(
error
)
{
...
...
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