Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
Kivii.Biz.Finances.V2.0
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陶然
Kivii.Biz.Finances.V2.0
Commits
5729c8c9
Commit
5729c8c9
authored
Aug 18, 2023
by
陶然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
6cfc2f2c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
Payment.cs
Src/Entities/Payment.cs
+0
-2
PaymentExtension.cs
Src/Extensions/PaymentExtension.cs
+3
-0
RestfulInvoice.cs
Src/Transforms/RestfulInvoice.cs
+0
-1
RestfulPayment.cs
Src/Transforms/RestfulPayment.cs
+6
-0
No files found.
Src/Entities/Payment.cs
View file @
5729c8c9
...
@@ -185,12 +185,10 @@ namespace Kivii.Finances.Entities
...
@@ -185,12 +185,10 @@ namespace Kivii.Finances.Entities
[
StringLength
(
100
),
Default
(
""
)]
[
StringLength
(
100
),
Default
(
""
)]
public
string
OperatorName
{
get
;
set
;
}
public
string
OperatorName
{
get
;
set
;
}
[
IgnoreUpdate
]
[
DefaultEmptyGuid
]
[
DefaultEmptyGuid
]
public
Guid
AuditorKvid
{
get
;
set
;
}
public
Guid
AuditorKvid
{
get
;
set
;
}
[
ApiMember
(
Description
=
"审核人"
)]
[
ApiMember
(
Description
=
"审核人"
)]
[
IgnoreUpdate
]
[
StringLength
(
100
),
Default
(
""
)]
[
StringLength
(
100
),
Default
(
""
)]
public
string
AuditorName
{
get
;
set
;
}
public
string
AuditorName
{
get
;
set
;
}
...
...
Src/Extensions/PaymentExtension.cs
View file @
5729c8c9
...
@@ -621,6 +621,7 @@ namespace Kivii.Finances
...
@@ -621,6 +621,7 @@ namespace Kivii.Finances
assignPayment
.
SerialNumber
=
payment
.
GetSubSerialNumber
();
assignPayment
.
SerialNumber
=
payment
.
GetSubSerialNumber
();
assignPayment
.
Type
=
PaymentType
.
Assign
;
assignPayment
.
Type
=
PaymentType
.
Assign
;
//金额设置
//金额设置
assignPayment
.
AuditorName
=
assignPayment
.
OperateTime
.
Year
.
ToString
();
assignPayment
.
Amount
=
amountAssign
;
assignPayment
.
Amount
=
amountAssign
;
assignPayment
.
AmountSplited
=
0
;
assignPayment
.
AmountSplited
=
0
;
assignPayment
.
AmountUsed
=
amountUsed
;
assignPayment
.
AmountUsed
=
amountUsed
;
...
@@ -694,6 +695,7 @@ namespace Kivii.Finances
...
@@ -694,6 +695,7 @@ namespace Kivii.Finances
splitPayment
.
SerialNumber
=
payment
.
GetSubSerialNumber
();
splitPayment
.
SerialNumber
=
payment
.
GetSubSerialNumber
();
splitPayment
.
Type
=
PaymentType
.
Split
;
splitPayment
.
Type
=
PaymentType
.
Split
;
//金额设置
//金额设置
splitPayment
.
AuditorName
=
splitPayment
.
OperateTime
.
Year
.
ToString
();
splitPayment
.
Amount
=
amountSplit
;
splitPayment
.
Amount
=
amountSplit
;
splitPayment
.
AmountSplited
=
0
;
splitPayment
.
AmountSplited
=
0
;
splitPayment
.
AmountUsed
=
0
;
splitPayment
.
AmountUsed
=
0
;
...
@@ -765,6 +767,7 @@ namespace Kivii.Finances
...
@@ -765,6 +767,7 @@ namespace Kivii.Finances
splitPayment
.
SerialNumber
=
payment
.
GetSubSerialNumber
();
splitPayment
.
SerialNumber
=
payment
.
GetSubSerialNumber
();
splitPayment
.
Type
=
paymentType
;
splitPayment
.
Type
=
paymentType
;
//金额设置
//金额设置
splitPayment
.
AuditorName
=
splitPayment
.
OperateTime
.
Year
.
ToString
();
splitPayment
.
Amount
=
amountSplit
;
splitPayment
.
Amount
=
amountSplit
;
splitPayment
.
AmountSplited
=
0
;
splitPayment
.
AmountSplited
=
0
;
splitPayment
.
AmountUsed
=
0
;
splitPayment
.
AmountUsed
=
0
;
...
...
Src/Transforms/RestfulInvoice.cs
View file @
5729c8c9
...
@@ -344,7 +344,6 @@ namespace Kivii.Finances.Transforms
...
@@ -344,7 +344,6 @@ namespace Kivii.Finances.Transforms
invoice
.
PayerBankAccount
=
info
.
PayerBankAccount
;
invoice
.
PayerBankAccount
=
info
.
PayerBankAccount
;
invoice
.
OperatorName
=
info
.
OperatorName
;
invoice
.
OperatorName
=
info
.
OperatorName
;
invoice
.
Remark
=
info
.
Remark
;
invoice
.
Remark
=
info
.
Remark
;
invoice
.
Summary
=
"插入发票!"
;
invoice
.
Metadata
=
new
Dictionary
<
string
,
string
>();
invoice
.
Metadata
=
new
Dictionary
<
string
,
string
>();
if
(!
info
.
Metadata
.
IsNullOrEmpty
())
if
(!
info
.
Metadata
.
IsNullOrEmpty
())
...
...
Src/Transforms/RestfulPayment.cs
View file @
5729c8c9
...
@@ -11,6 +11,12 @@ using System.Threading.Tasks;
...
@@ -11,6 +11,12 @@ using System.Threading.Tasks;
namespace
Kivii.Finances.Transforms
namespace
Kivii.Finances.Transforms
{
{
[
RequiresAnyRole
(
SystemRoles
.
Everyone
)]
[
RequiresAnyRole
(
SystemRoles
.
Everyone
)]
public
class
PaymentUpdate
:
RestfulUpdate
<
Payment
>
{
}
[
RequiresAnyRole
(
SystemRoles
.
Everyone
)]
public
class
PaymentQuery
:
RestfulQuery
<
Payment
>
public
class
PaymentQuery
:
RestfulQuery
<
Payment
>
{
{
...
...
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