Commit 2e235fea by 陶然

优化

parent 0bc0e8c2
......@@ -188,6 +188,11 @@ namespace Kivii.Finances.Transforms
//invoice.ApplyKvid = ApplyKvid;
invoice.OwnerKvid = info.OwnerKvid;
invoice.OwnerName = info.OwnerName;
if (invoice.OwnerKvid == Guid.Empty)
{
invoice.OwnerKvid = KiviiContext.CurrentMember.DepartmentKvid;
invoice.OwnerName = KiviiContext.CurrentMember.DepartmentName;
}
invoice.Currency = CurrencyUnit.CNY;
invoice.Type = info.Type;
invoice.Category = info.Category.IsNullOrEmpty() ? category.ToString() : info.Category;
......
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