Commit a1facfda by Neo Turing

冲销撤销操作优化,处理payment中核算日期和年份

parent e72c7d4e
......@@ -138,7 +138,7 @@ namespace Kivii.Finances.Entities
public string SerialNumber { get; set; }
[ApiMember(Description = "发票类型,普通,专用增值等")]
[IgnoreUpdate]
[InternalSetter]
[StringLength(50), Required]
public string Type { get; set; }
......
......@@ -33,5 +33,5 @@ using System.Runtime.InteropServices;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.4.2025.1070")]
[assembly: AssemblyFileVersion("5.4.2025.1070")]
[assembly: AssemblyVersion("5.4.2025.5120")]
[assembly: AssemblyFileVersion("5.4.2025.5120")]
......@@ -171,6 +171,13 @@ namespace Kivii.Finances.Transforms
{
item.InvoiceTime = null;
item.AddOnlyProperties(o => o.InvoiceTime);
if (!item.Metadata.ContainsKey("ManualAuditTime"))
{
item.AuditTime = null;
item.AddOnlyProperties(o => o.AuditTime);
item.AuditorName = item.OperateTime.Year.ToString();
item.AddOnlyProperties(o => o.AuditorName);
}
}
}
if (!splitPayments.IsNullOrEmpty())//要是所选Payment存在拆分项,满足条件就要更新AmountInvoice
......@@ -186,6 +193,13 @@ namespace Kivii.Finances.Transforms
{
split.InvoiceTime = null;
split.AddOnlyProperties(o => o.InvoiceTime);
if (!split.Metadata.ContainsKey("ManualAuditTime"))
{
split.AuditTime = null;
split.AddOnlyProperties(o => o.AuditTime);
split.AuditorName = split.OperateTime.Year.ToString();
split.AddOnlyProperties(o => o.AuditorName);
}
}
amountInvoice -= split.AmountInvoice;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment