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
9decdf22
Commit
9decdf22
authored
Jan 25, 2024
by
陶然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整核算日期赋值算法
parent
680e0dbf
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
25 deletions
+42
-25
InvoiceApplyExtension.cs
Src/Extensions/InvoiceApplyExtension.cs
+16
-12
PaymentExtension.cs
Src/Extensions/PaymentExtension.cs
+24
-11
AssemblyInfo.cs
Src/Properties/AssemblyInfo.cs
+2
-2
No files found.
Src/Extensions/InvoiceApplyExtension.cs
View file @
9decdf22
...
...
@@ -101,19 +101,23 @@ namespace Kivii.Finances
}
if
(
payment
.
InvoiceTime
!=
null
)
{
if
(
payment
.
AuditTime
==
null
)
{
payment
.
AuditTime
=
payment
.
InvoiceTime
;
if
(
payment
.
InvoiceTime
.
Value
>
payment
.
OperateTime
)
payment
.
AuditTime
=
payment
.
InvoiceTime
;
else
payment
.
AuditTime
=
payment
.
OperateTime
;
payment
.
AddOnlyProperties
(
o
=>
o
.
AuditTime
);
}
else
{
if
(
payment
.
AuditTime
.
Value
<
payment
.
InvoiceTime
.
Value
)
{
payment
.
AuditTime
=
payment
.
InvoiceTime
;
payment
.
AddOnlyProperties
(
o
=>
o
.
AuditTime
);
}
}
//if (payment.AuditTime == null)
//{
// payment.AuditTime = payment.InvoiceTime;
// payment.AddOnlyProperties(o => o.AuditTime);
//}
//else
//{
// if (payment.AuditTime.Value < payment.InvoiceTime.Value)
// {
// payment.AuditTime = payment.InvoiceTime;
// payment.AddOnlyProperties(o => o.AuditTime);
// }
//}
}
payment
.
AddOnlyProperties
(
o
=>
o
.
AmountInvoice
);
}
...
...
Src/Extensions/PaymentExtension.cs
View file @
9decdf22
...
...
@@ -339,19 +339,26 @@ namespace Kivii.Finances
{
payment
.
InvoiceTime
=
invoiceTime
;
payment
.
AddOnlyProperties
(
o
=>
o
.
InvoiceTime
);
if
(
payment
.
AuditTime
=
=
null
)
if
(
payment
.
InvoiceTime
!
=
null
)
{
payment
.
AuditTime
=
invoiceTime
;
if
(
payment
.
InvoiceTime
.
Value
>
payment
.
OperateTime
)
payment
.
AuditTime
=
payment
.
InvoiceTime
;
else
payment
.
AuditTime
=
payment
.
OperateTime
;
payment
.
AddOnlyProperties
(
o
=>
o
.
AuditTime
);
}
else
{
if
(
payment
.
AuditTime
.
Value
<
invoiceTime
.
Value
)
{
payment
.
AuditTime
=
invoiceTime
;
payment
.
AddOnlyProperties
(
o
=>
o
.
AuditTime
);
}
}
//if (payment.AuditTime == null)
//{
// payment.AuditTime = invoiceTime;
// payment.AddOnlyProperties(o => o.AuditTime);
//}
//else
//{
// if (payment.AuditTime.Value < invoiceTime.Value)
// {
// payment.AuditTime = invoiceTime;
// payment.AddOnlyProperties(o => o.AuditTime);
// }
//}
}
conn
.
UpdateOnly
(
payment
);
if
(
parentPayment
!=
null
)
parentPayment
.
RecalculateAmountInvoice
(
conn
);
...
...
@@ -716,7 +723,7 @@ namespace Kivii.Finances
splitPayment
.
Category
=
category
;
//金额设置
splitPayment
.
AuditorName
=
splitPayment
.
OperateTime
.
Year
.
ToString
();
splitPayment
.
AuditTime
=
payment
.
OperateTime
;
splitPayment
.
Amount
=
amountSplit
;
splitPayment
.
AmountSplited
=
0
;
splitPayment
.
AmountUsed
=
0
;
...
...
@@ -728,6 +735,12 @@ namespace Kivii.Finances
//splitPayment.Summary = string.Empty;
if
(!
remark
.
IsNullOrEmpty
())
splitPayment
.
Remark
+=
$"[认领备注:
{
remark
}
]"
;
splitPayment
.
OperateTime
=
payment
.
OperateTime
;
if
(
splitPayment
.
InvoiceTime
!=
null
)
{
if
(
splitPayment
.
InvoiceTime
.
Value
>
splitPayment
.
OperateTime
)
splitPayment
.
AuditTime
=
payment
.
InvoiceTime
;
else
splitPayment
.
AuditTime
=
payment
.
OperateTime
;
}
if
(
operatorKvid
!=
null
&&
operatorKvid
.
Value
!=
Guid
.
Empty
)
{
splitPayment
.
OperatorName
=
operatorName
;
...
...
Src/Properties/AssemblyInfo.cs
View file @
9decdf22
...
...
@@ -33,5 +33,5 @@ using System.Runtime.InteropServices;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.4.2024.1
1
50")]
[assembly: AssemblyFileVersion("5.4.2024.1
1
50")]
[assembly: AssemblyVersion("5.4.2024.1
2
50")]
[assembly: AssemblyFileVersion("5.4.2024.1
2
50")]
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