Commit 0fc93991 authored by liudong1993's avatar liudong1993

1 财务单抬头

parent ec52770d
......@@ -88,6 +88,7 @@ namespace REBORN.CacheManager.User
.Set(d => d.B2BShow, branch.B2BShow)
.Set(d => d.StandardCurrencyId, branch.StandardCurrencyId)
.Set(d => d.StandardCurrencyName, branch.StandardCurrencyName)
.Set(d => d.FinanceTitle, branch.FinanceTitle)
;
try
{
......
......@@ -267,5 +267,10 @@ namespace REBORN.Model.Entity
/// 本位币名称
/// </summary>
public string StandardCurrencyName { get; set; }
/// <summary>
/// 财务单据抬头 (没有就使用集团名称)
/// </summary>
public string FinanceTitle { get; set; }
}
}
\ No newline at end of file
......@@ -193,6 +193,7 @@ namespace REBORN.Module.PlatformModule
bmodel.ServiceFee = demodel.ServiceFee;
bmodel.StandardCurrencyId = demodel.StandardCurrencyId;
bmodel.StandardCurrencyName = demodel.StandardCurrencyName;
bmodel.FinanceTitle = demodel.FinanceTitle;
flag = respository.Update(bmodel);
if (flag)
{
......@@ -266,6 +267,7 @@ namespace REBORN.Module.PlatformModule
IsFreeFee=demodel.IsFreeFee,
ServiceFee=demodel.ServiceFee,
StandardCurrencyId=demodel.StandardCurrencyId,
FinanceTitle = demodel.FinanceTitle
};
flag = respository.Insert(bmodel) > 0;
branchMCache.Set(bmodel);
......
......@@ -1862,6 +1862,7 @@ namespace REBORN.Services.FinanceService
KingdeeClientBankAccountList = clientBankAccountRepository.GetList(new RB_ClientBankAccount() { RB_Group_Id = userInfo.RB_Group_id }, "", model.KingdeeClientID.ToString());
}
if (model.vorcherInos == null || !model.vorcherInos.Any()) { model.vorcherInos.Add(new RB_Voucher_Extend() { ID = 0, Type = VoucherEnum.Picture, VoucherType = 0, Content = "" }); }
model.RB_GroupName = new CacheManager.User.RbBranchMongoCache().GetBranch(model.RB_Branch_Id.Value)?.FinanceTitle ?? "";//集团使用配置的
var obj = new
{
model.FrID,
......@@ -2329,6 +2330,7 @@ namespace REBORN.Services.FinanceService
{
KingdeeClientBankAccountList = clientBankAccountRepository.GetList(new RB_ClientBankAccount() { RB_Group_Id = userInfo.RB_Group_id }, "", model.KingdeeClientID.ToString());
}
model.RB_GroupName = new CacheManager.User.RbBranchMongoCache().GetBranch(model.RB_Branch_Id.Value)?.FinanceTitle ?? "";//集团使用配置的
obj = new
{
model.FrID,
......
......@@ -66,6 +66,12 @@ namespace REBORN.Services.PlatformService
list = list.Where(x => x.Id != 1250).ToList();
}
}
if (list.Where(x=> string.IsNullOrEmpty(x.FinanceTitle)).Any()) {
string GroupName = CacheManager.User.RbGroupCache.GetGroup(userInfo.RB_Group_id)?.GroupName ?? "";
foreach (var item in list.Where(x => string.IsNullOrEmpty(x.FinanceTitle))) {
item.FinanceTitle = GroupName;
}
}
return ApiResult.Success("", list);
}
......@@ -112,6 +118,7 @@ namespace REBORN.Services.PlatformService
dmodel.IsFreeFee,
dmodel.ServiceFee,
dmodel.StandardCurrencyId,
dmodel.FinanceTitle,
TravelLogo = Config.GetFileUrl(dmodel.TravelLogo)
});
}
......
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