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
c54a1981
Commit
c54a1981
authored
Dec 13, 2023
by
陶然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化到账认领方法,可自定义指定认领人信息
parent
4081df0d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
PaymentExtension.cs
Src/Extensions/PaymentExtension.cs
+11
-3
AssemblyInfo.cs
Src/Properties/AssemblyInfo.cs
+2
-2
No files found.
Src/Extensions/PaymentExtension.cs
View file @
c54a1981
...
@@ -649,7 +649,7 @@ namespace Kivii.Finances
...
@@ -649,7 +649,7 @@ namespace Kivii.Finances
/// <param name="ownerKvid"></param>
/// <param name="ownerKvid"></param>
/// <param name="ownerName"></param>
/// <param name="ownerName"></param>
/// <returns></returns>
/// <returns></returns>
public
static
Payment
BizSplit
(
this
Payment
payment
,
decimal
amountSplit
,
string
remark
=
null
,
Guid
?
ownerKvid
=
null
,
string
ownerName
=
null
,
IDbConnection
conn
=
null
,
string
category
=
null
)
public
static
Payment
BizSplit
(
this
Payment
payment
,
decimal
amountSplit
,
string
remark
=
null
,
Guid
?
ownerKvid
=
null
,
string
ownerName
=
null
,
IDbConnection
conn
=
null
,
string
category
=
null
,
Guid
?
operatorKvid
=
null
,
string
operatorName
=
null
)
{
{
payment
.
ThrowIfNull
(
$"传入payment参数为空"
);
payment
.
ThrowIfNull
(
$"传入payment参数为空"
);
if
(
payment
.
Type
!=
PaymentType
.
Bank
)
throw
new
Exception
(
"非银行到账不可以认领!"
);
if
(
payment
.
Type
!=
PaymentType
.
Bank
)
throw
new
Exception
(
"非银行到账不可以认领!"
);
...
@@ -704,8 +704,16 @@ namespace Kivii.Finances
...
@@ -704,8 +704,16 @@ namespace Kivii.Finances
//splitPayment.Summary = string.Empty;
//splitPayment.Summary = string.Empty;
if
(!
remark
.
IsNullOrEmpty
())
splitPayment
.
Remark
+=
$"[认领备注:
{
remark
}
]"
;
if
(!
remark
.
IsNullOrEmpty
())
splitPayment
.
Remark
+=
$"[认领备注:
{
remark
}
]"
;
splitPayment
.
OperateTime
=
payment
.
OperateTime
;
splitPayment
.
OperateTime
=
payment
.
OperateTime
;
splitPayment
.
OperatorName
=
KiviiContext
.
CurrentMember
.
FullName
;
if
(
operatorKvid
!=
null
&&
operatorKvid
.
Value
!=
Guid
.
Empty
)
splitPayment
.
OperatorKvid
=
KiviiContext
.
CurrentMember
.
Kvid
;
{
splitPayment
.
OperatorName
=
operatorName
;
splitPayment
.
OperatorKvid
=
operatorKvid
.
Value
;
}
else
{
splitPayment
.
OperatorName
=
KiviiContext
.
CurrentMember
.
FullName
;
splitPayment
.
OperatorKvid
=
KiviiContext
.
CurrentMember
.
Kvid
;
}
//splitPayment.Status = 1;
//splitPayment.Status = 1;
#
endregion
#
endregion
...
...
Src/Properties/AssemblyInfo.cs
View file @
c54a1981
...
@@ -33,5 +33,5 @@ using System.Runtime.InteropServices;
...
@@ -33,5 +33,5 @@ using System.Runtime.InteropServices;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.4.2023.1
12
30")]
[assembly: AssemblyVersion("5.4.2023.1
21
30")]
[assembly: AssemblyFileVersion("5.4.2023.1
12
30")]
[assembly: AssemblyFileVersion("5.4.2023.1
21
30")]
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