This commit is contained in:
parent
8a8d012064
commit
a73729ebf3
|
@ -62,6 +62,9 @@ public class InvoiceDateValidatorSubOp extends AbstractOperationServicePlugIn {
|
||||||
Date currentDate = new Date();//当前日期
|
Date currentDate = new Date();//当前日期
|
||||||
// Date currentDate = invoiceEntry.getDate("zcgj_invoicedate");//当前日期
|
// Date currentDate = invoiceEntry.getDate("zcgj_invoicedate");//当前日期
|
||||||
Date invoiceDate = invoiceEntry.getDate("invoicedate");//开票日期
|
Date invoiceDate = invoiceEntry.getDate("invoicedate");//开票日期
|
||||||
|
if (invoiceDate == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
try {
|
try {
|
||||||
Date currentDateFormat = sdf.parse(sdf.format(currentDate));//当前日期
|
Date currentDateFormat = sdf.parse(sdf.format(currentDate));//当前日期
|
||||||
|
|
Loading…
Reference in New Issue