|
|
|
@ -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();
|
|
|
|
|