诺诺全电 取消当天无法冲红的限制

DS7_HYRD
dengyu 1 year ago
parent 7dc7203277
commit 9a3986cb8a

@ -1767,13 +1767,14 @@ namespace DSWeb.Areas.Account.Controllers
}
//增加判断 如果原票createtime晚于当前时间24小时之前则报错不允许开出
if (BlueInvoice.INVOICEMAKETIME == null || BlueInvoice.INVOICEMAKETIME == "" || Convert.ToDateTime(BlueInvoice.INVOICEMAKETIME) > DateTime.Now.AddDays(-1))
{
jsonRespose.Success = false;
jsonRespose.Message = $"该蓝票为{BlueInvoice.INVOICEMAKETIME}开出,当前无法冲红";
//20231120 取消此限制
//if (BlueInvoice.INVOICEMAKETIME == null || BlueInvoice.INVOICEMAKETIME == "" || Convert.ToDateTime(BlueInvoice.INVOICEMAKETIME) > DateTime.Now.AddDays(-1))
//{
// jsonRespose.Success = false;
// jsonRespose.Message = $"该蓝票为{BlueInvoice.INVOICEMAKETIME}开出,当前无法冲红";
return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) };
}
// return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) };
//}
}

Loading…
Cancel
Save