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
0f353c14
Commit
0f353c14
authored
May 13, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
d86b3538
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
xggsve-invoice/app/base/db/models/invoice/iinvoice.js
+4
-0
xggsve-invoice/app/base/service/impl/invoice/iinvoiceSve.js
+5
-0
No files found.
xggsve-invoice/app/base/db/models/invoice/iinvoice.js
View file @
0f353c14
...
@@ -52,6 +52,10 @@ module.exports = (db, DataTypes) => {
...
@@ -52,6 +52,10 @@ module.exports = (db, DataTypes) => {
bookkeeping
:
{
type
:
DataTypes
.
STRING
,
field
:
'bookkeeping'
,
allowNull
:
true
,
defaultValue
:
0
,
comment
:
'是否记账 0未记账 1已记账'
},
bookkeeping
:
{
type
:
DataTypes
.
STRING
,
field
:
'bookkeeping'
,
allowNull
:
true
,
defaultValue
:
0
,
comment
:
'是否记账 0未记账 1已记账'
},
saas_deliver_api
:
{
type
:
DataTypes
.
STRING
,
field
:
'saas_deliver_api'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'saas系统状态通知api'
},
saas_deliver_api
:
{
type
:
DataTypes
.
STRING
,
field
:
'saas_deliver_api'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'saas系统状态通知api'
},
ali_deliver_api
:{
type
:
DataTypes
.
STRING
,
allowNull
:
true
,
defaultValue
:
null
,
comment
:
"发票状态更新回调api"
},
ali_deliver_api
:{
type
:
DataTypes
.
STRING
,
allowNull
:
true
,
defaultValue
:
null
,
comment
:
"发票状态更新回调api"
},
unit
:{
type
:
DataTypes
.
STRING
(
10
),
allowNull
:
true
,
defaultValue
:
null
,
comment
:
"单位"
},
quantity
:{
type
:
DataTypes
.
STRING
(
10
),
allowNull
:
true
,
defaultValue
:
null
,
comment
:
"数量"
},
price
:{
type
:
DataTypes
.
STRING
(
20
),
allowNull
:
true
,
defaultValue
:
null
,
comment
:
"单价"
},
remark
:{
type
:
DataTypes
.
STRING
(
200
),
allowNull
:
true
,
defaultValue
:
null
,
comment
:
"备注"
},
created_at
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
created_at
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated_at
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated_at
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
deleted_at
:
{
type
:
DataTypes
.
DATE
,
allowNull
:
true
},
deleted_at
:
{
type
:
DataTypes
.
DATE
,
allowNull
:
true
},
...
...
xggsve-invoice/app/base/service/impl/invoice/iinvoiceSve.js
View file @
0f353c14
...
@@ -129,6 +129,11 @@ class IInvoiceService extends ServiceBase {
...
@@ -129,6 +129,11 @@ class IInvoiceService extends ServiceBase {
_invoice
.
mail_addr
=
this
.
trim
(
params
.
mail_addr
)
||
""
;
_invoice
.
mail_addr
=
this
.
trim
(
params
.
mail_addr
)
||
""
;
_invoice
.
saas_deliver_api
=
this
.
trim
(
params
.
saas_deliver_api
)
||
""
;
_invoice
.
saas_deliver_api
=
this
.
trim
(
params
.
saas_deliver_api
)
||
""
;
_invoice
.
unit
=
this
.
trim
(
params
.
unit
)
||
0
;
_invoice
.
quantity
=
this
.
trim
(
params
.
quantity
)
||
0
;
_invoice
.
price
=
this
.
trim
(
params
.
price
)
||
0
;
_invoice
.
remark
=
this
.
trim
(
params
.
remark
)
||
""
;
try
{
try
{
let
processList
=
await
this
.
buildProcess
(
_invoice
.
product_id
)
||
[];
let
processList
=
await
this
.
buildProcess
(
_invoice
.
product_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