Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
openApi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hj
openApi
Commits
d3acd67b
Commit
d3acd67b
authored
Mar 02, 2023
by
hangjun83
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财务开票模块更新]
parent
ad9a39a9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
server/app/Finance/Repositories/Eloquent/RhawnInvoiceRepositoryEloquent.php
.../Repositories/Eloquent/RhawnInvoiceRepositoryEloquent.php
+5
-1
server/database/migrations/2023_02_08_082627_create_finance_invoice_record_table.php
...2023_02_08_082627_create_finance_invoice_record_table.php
+1
-1
No files found.
server/app/Finance/Repositories/Eloquent/RhawnInvoiceRepositoryEloquent.php
View file @
d3acd67b
...
@@ -34,6 +34,10 @@ class RhawnInvoiceRepositoryEloquent extends BaseRepository implements RhawnInvo
...
@@ -34,6 +34,10 @@ class RhawnInvoiceRepositoryEloquent extends BaseRepository implements RhawnInvo
public
function
updateInvoiceById
(
$id
,
$updateParams
)
public
function
updateInvoiceById
(
$id
,
$updateParams
)
{
{
$invoice
=
$this
->
getInvoiceById
(
$id
);
if
(
$invoice
){
return
$this
->
updateOrCreate
([
'soi_id'
=>
$id
],
$updateParams
)
->
toArray
();
return
$this
->
updateOrCreate
([
'soi_id'
=>
$id
],
$updateParams
)
->
toArray
();
}
}
return
null
;
}
}
}
server/database/migrations/2023_02_08_082627_create_finance_invoice_record_table.php
View file @
d3acd67b
...
@@ -19,7 +19,7 @@ class CreateFinanceInvoiceRecordTable extends Migration
...
@@ -19,7 +19,7 @@ class CreateFinanceInvoiceRecordTable extends Migration
$table
->
string
(
'invoice_number'
)
->
nullable
(
false
)
->
comment
(
'发票编号'
);
$table
->
string
(
'invoice_number'
)
->
nullable
(
false
)
->
comment
(
'发票编号'
);
$table
->
string
(
'invoice_real_number'
)
->
nullable
()
->
comment
(
'发票真实编号'
);
$table
->
string
(
'invoice_real_number'
)
->
nullable
()
->
comment
(
'发票真实编号'
);
$table
->
integer
(
'invoice_type'
)
->
nullable
(
false
)
->
comment
(
'发票类型 1:蓝字 2:红字'
);
$table
->
integer
(
'invoice_type'
)
->
nullable
(
false
)
->
comment
(
'发票类型 1:蓝字 2:红字'
);
$table
->
integer
(
'invoice_status'
)
->
nullable
(
false
)
->
comment
(
'发票状态 0:已申请待确认 1:已确认 2:
开票作废 3:红字撤销
'
);
$table
->
integer
(
'invoice_status'
)
->
nullable
(
false
)
->
comment
(
'发票状态 0:已申请待确认 1:已确认 2:
发票失败 3:开票作废已申请 4:蓝字发票作废
'
);
$table
->
decimal
(
'invoice_money'
)
->
nullable
(
false
)
->
comment
(
'开票金额'
);
$table
->
decimal
(
'invoice_money'
)
->
nullable
(
false
)
->
comment
(
'开票金额'
);
$table
->
string
(
'invoice_platform'
)
->
nullable
(
false
)
->
comment
(
'订单所属平台: rhawn ,bhua'
);
$table
->
string
(
'invoice_platform'
)
->
nullable
(
false
)
->
comment
(
'订单所属平台: rhawn ,bhua'
);
$table
->
string
(
'platform_invoice_id'
)
->
nullable
(
false
)
->
comment
(
'平台发票id'
);
$table
->
string
(
'platform_invoice_id'
)
->
nullable
(
false
)
->
comment
(
'平台发票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