This commit is contained in:
xuhaihui 2025-09-30 14:51:41 +08:00
parent 8a8d012064
commit a73729ebf3
1 changed files with 3 additions and 0 deletions

View File

@ -62,6 +62,9 @@ public class InvoiceDateValidatorSubOp extends AbstractOperationServicePlugIn {
Date currentDate = new Date();//当前日期
// Date currentDate = invoiceEntry.getDate("zcgj_invoicedate");//当前日期
Date invoiceDate = invoiceEntry.getDate("invoicedate");//开票日期
if (invoiceDate == null) {
return;
}
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
try {
Date currentDateFormat = sdf.parse(sdf.format(currentDate));//当前日期