Commit 82b47419 by 陶然

优化

parent b4af6c5d
......@@ -260,7 +260,7 @@ namespace Kivii.Finances.Transforms
//invoice.ApplyKvid = ApplyKvid;
invoice.OwnerKvid = info.OwnerKvid;
invoice.OwnerName = info.OwnerName;
if (invoice.OwnerKvid == Guid.Empty)
if (invoice.OwnerKvid == Guid.Empty && invoice.OwnerName.IsNullOrEmpty())
{
invoice.OwnerKvid = KiviiContext.CurrentMember.DepartmentKvid;
invoice.OwnerName = KiviiContext.CurrentMember.DepartmentName;
......
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