报销单审核回调调整

dev
douhandong 3 weeks ago
parent 57e84f05cb
commit b1c2b3bf5c

@ -75,6 +75,13 @@ namespace DS.WMS.Core.Fee.Dtos
/// 会计科目
/// </summary>
public string LedgerAccount { get; set; }
/// <summary>
/// 驳回原因
/// </summary>
public string Remark { get; set; }
}
}

@ -87,5 +87,6 @@ namespace DS.WMS.Core.Fee.Entity
/// </summary>
public string LedgerAccount { get; set; }
}
}

@ -437,8 +437,17 @@ namespace DS.WMS.Core.Fee.Method
{
item.Status = ReimbursementTypeEnums.Approved;
tenantDb.Updateable(item).ExecuteCommand();
//找到对应的审批发票
var ininviceinfo = tenantDb.Queryable<InInvoice>().Where(t => t.InvoiceNumber == item.InvoiceNumber).First();
if (ininviceinfo != null)
{
ininviceinfo.ReimbursementType = ReimbursementTypeEnums.Approved;
tenantDb.Updateable(ininviceinfo).ExecuteCommand();
}
}
}
//审核驳回
if (callback.FlowStatus == FlowStatusEnum.Reject)
{
info.ReimbursementType = ReimbursementTypeEnums.Rejected;
@ -452,7 +461,17 @@ namespace DS.WMS.Core.Fee.Method
item.Status = ReimbursementTypeEnums.Approved;
item.RejectReason = callback.RejectReason;
tenantDb.Updateable(item).ExecuteCommand();
//找到对应的审批发票
var ininviceinfo = tenantDb.Queryable<InInvoice>().Where(t => t.InvoiceNumber==item.InvoiceNumber).First();
if (ininviceinfo != null)
{
ininviceinfo.ReimbursementType = ReimbursementTypeEnums.NotSubmitted;
tenantDb.Updateable(ininviceinfo).ExecuteCommand();
}
}
}
return DataResult.Success;
@ -489,7 +508,7 @@ namespace DS.WMS.Core.Fee.Method
{
item.LedgerAccount = request.LedgerAccount;
}
db.Updateable(info).ExecuteCommand();
tenantDb.Updateable(info).ExecuteCommand();
//获取当前审批人信息
var userinfo= db.Queryable<SysUser>().Where(t => t.Id.ToString()== user.UserId).First();

Loading…
Cancel
Save