Commit 0b844212 authored by 吴春's avatar 吴春

提交代码

parent b6b616f2
...@@ -2660,25 +2660,54 @@ namespace Property.Module.FixedAssets ...@@ -2660,25 +2660,54 @@ namespace Property.Module.FixedAssets
UnitPrice = Math.Round((x.ReportLossPrice ?? 0) / (x.ReportLossNum ?? 1), 2, MidpointRounding.AwayFromZero), UnitPrice = Math.Round((x.ReportLossPrice ?? 0) / (x.ReportLossNum ?? 1), 2, MidpointRounding.AwayFromZero),
Remark = x.GoodsName + x.SpecificationName Remark = x.GoodsName + x.SpecificationName
}); });
var financeObj = new string sign = "";
if (applyModel.CheckStatus == PropertyCheckStatusEnum.InventoryLosses)
{ {
CreateBy = demodel.CreateBy, var financeObj = new
IsPublic = 0,// supplierModel.ClientBankAccount.AccountType, //financeConfigurineModel.AccountType, {
ClientType = 10, CreateBy = demodel.CreateBy,
ClientID = 3134, IsPublic = 0,// supplierModel.ClientBankAccount.AccountType, //financeConfigurineModel.AccountType,
CurrencyId = Config.OutCurrencyId, ClientType = 10,
WBMoney = applyModel.DetailList.Sum(x => (x.ReportLossPrice ?? 0)), ClientID = 3170,
RB_Branch_Id = Config.ExpendBranchId, CurrencyId = Config.OutCurrencyId,
PayDate = System.DateTime.Now.ToString("yyyy-MM-dd"), WBMoney = applyModel.DetailList.Sum(x => (x.ReportLossPrice ?? 0)),
TemplateId = applyModel.CheckStatus == PropertyCheckStatusEnum.InventoryLosses ? 129 : 130, RB_Branch_Id = Config.ExpendBranchId,
OrderSource = 16, PayDate = System.DateTime.Now.ToString("yyyy-MM-dd"),
OtherType = 17, TemplateId = 129,
Remark = System.DateTime.Now.ToString("yyyy年MM月dd日") + "生成" + (applyModel.CheckStatus == PropertyCheckStatusEnum.InventoryLosses ? "盘亏" : "盘盈") + "财务单据", OrderSource = 16,
detailList, OtherType = 17,
RB_Depart_Id = RB_Department_Id, Remark = System.DateTime.Now.ToString("yyyy年MM月dd日") + "生成" + (applyModel.CheckStatus == PropertyCheckStatusEnum.InventoryLosses ? "盘亏" : "盘盈") + "财务单据",
ReFinanceId = Id detailList,
}; RB_Depart_Id = RB_Department_Id,
string sign = EncryptionHelper.AesEncrypt(JsonHelper.Serialize(financeObj), Config.FinanceKey); ReFinanceId = Id
};
sign = EncryptionHelper.AesEncrypt(JsonHelper.Serialize(financeObj), Config.FinanceKey);
}
else if (applyModel.CheckStatus == PropertyCheckStatusEnum.InventoryProfit)
{
var financeObj = new
{
CreateBy = applyModel.CreateBy,
IsPublic = 0,
BType = 4,
AccountId = 27,
WBMoney = applyModel.DetailList.Sum(x => (x.ReportLossPrice ?? 0)),
RB_Branch_Id = Config.ExpendBranchId,
RemitterName = "商品盘点-盘盈",
TradeDate = System.DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd"),
AccountNumber = System.DateTime.Now.AddDays(-1).ToString("yyyyMMdd"),
TemplateId = 130,
OrderSource = 16,
Remark = System.DateTime.Now.ToString("yyyy年MM月dd日") + "自动生成财务单据",
detailList,
RB_Depart_Id = RB_Department_Id
};
sign = EncryptionHelper.AesEncrypt(JsonHelper.Serialize(financeObj), Config.FinanceKey);
}
var resultInfo = new var resultInfo = new
{ {
msg = sign, msg = sign,
......
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