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
680e0dbf
Commit
680e0dbf
authored
Jan 15, 2024
by
陶然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加发票作废对接OA功能
parent
2393bf86
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
Invoice.cs
Src/Entities/Invoice.cs
+0
-3
InvoiceExtension.cs
Src/Extensions/InvoiceExtension.cs
+6
-1
AssemblyInfo.cs
Src/Properties/AssemblyInfo.cs
+2
-2
No files found.
Src/Entities/Invoice.cs
View file @
680e0dbf
...
@@ -41,17 +41,14 @@ namespace Kivii.Finances.Entities
...
@@ -41,17 +41,14 @@ namespace Kivii.Finances.Entities
public
Guid
BizKvid
{
get
;
set
;
}
public
Guid
BizKvid
{
get
;
set
;
}
[
ApiMember
(
Description
=
"业务流水号"
)]
[
ApiMember
(
Description
=
"业务流水号"
)]
[
InternalSetter
]
[
StringLength
(
200
)]
[
StringLength
(
200
)]
public
string
BizId
{
get
;
set
;
}
public
string
BizId
{
get
;
set
;
}
[
ApiMember
(
Description
=
"业务类型"
)]
[
ApiMember
(
Description
=
"业务类型"
)]
[
InternalSetter
]
[
StringLength
(
100
)]
[
StringLength
(
100
)]
public
string
BizType
{
get
;
set
;
}
public
string
BizType
{
get
;
set
;
}
[
ApiMember
(
Description
=
"收付款关联,针对Payment和Invoice多对多的关系 使用中间表Apply(开票申请)关联起来"
)]
[
ApiMember
(
Description
=
"收付款关联,针对Payment和Invoice多对多的关系 使用中间表Apply(开票申请)关联起来"
)]
[
InternalSetter
]
[
DefaultEmptyGuid
]
[
DefaultEmptyGuid
]
public
Guid
ApplyKvid
{
get
;
set
;
}
public
Guid
ApplyKvid
{
get
;
set
;
}
...
...
Src/Extensions/InvoiceExtension.cs
View file @
680e0dbf
...
@@ -9,7 +9,7 @@ namespace Kivii.Finances
...
@@ -9,7 +9,7 @@ namespace Kivii.Finances
{
{
public
static
class
InvoiceExtension
public
static
class
InvoiceExtension
{
{
public
static
Invoice
Offset
(
this
Invoice
invoice
,
string
remark
)
public
static
Invoice
Offset
(
this
Invoice
invoice
,
string
remark
,
Invoice
redInvoice
=
null
)
{
{
invoice
.
ThrowIfNull
(
"发票不能为空!"
);
invoice
.
ThrowIfNull
(
"发票不能为空!"
);
(
invoice
.
Currency
==
CurrencyUnit
.
Unsupported
).
ThrowIfTrue
(
"不支持的货币单位"
);
(
invoice
.
Currency
==
CurrencyUnit
.
Unsupported
).
ThrowIfTrue
(
"不支持的货币单位"
);
...
@@ -39,6 +39,11 @@ namespace Kivii.Finances
...
@@ -39,6 +39,11 @@ namespace Kivii.Finances
offsetInvoice
.
OperateTime
=
DateTime
.
Now
;
offsetInvoice
.
OperateTime
=
DateTime
.
Now
;
offsetInvoice
.
OperatorName
=
KiviiContext
.
CurrentMember
.
FullName
;
offsetInvoice
.
OperatorName
=
KiviiContext
.
CurrentMember
.
FullName
;
offsetInvoice
.
OperatorKvid
=
KiviiContext
.
CurrentMember
.
Kvid
;
offsetInvoice
.
OperatorKvid
=
KiviiContext
.
CurrentMember
.
Kvid
;
if
(
redInvoice
!=
null
)
{
if
(!
redInvoice
.
SerialNumber
.
IsNullOrEmpty
())
offsetInvoice
.
SerialNumber
=
redInvoice
.
SerialNumber
;
if
(
redInvoice
.
OperateTime
!=
DateTime
.
MinValue
)
offsetInvoice
.
OperateTime
=
redInvoice
.
OperateTime
;
}
#
endregion
#
endregion
return
offsetInvoice
;
return
offsetInvoice
;
...
...
Src/Properties/AssemblyInfo.cs
View file @
680e0dbf
...
@@ -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.2024.1
06
0")]
[assembly: AssemblyVersion("5.4.2024.1
15
0")]
[assembly: AssemblyFileVersion("5.4.2024.1
06
0")]
[assembly: AssemblyFileVersion("5.4.2024.1
15
0")]
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