diff --git a/src/main/java/info/bukova/isspst/ui/tripbill/TripBillForm.java b/src/main/java/info/bukova/isspst/ui/tripbill/TripBillForm.java index 578d61fd..286269a6 100644 --- a/src/main/java/info/bukova/isspst/ui/tripbill/TripBillForm.java +++ b/src/main/java/info/bukova/isspst/ui/tripbill/TripBillForm.java @@ -19,6 +19,7 @@ import org.zkoss.zul.Messagebox; import org.zkoss.zul.Window; import java.util.ArrayList; +import java.util.Date; import java.util.List; public class TripBillForm extends FormWithUpload { @@ -36,6 +37,11 @@ public class TripBillForm extends FormWithUpload { vehicles = new ArrayList(); vehicles.add(null); vehicles.addAll(settingsService.getSettings().getVehicles()); + TripBill bill = getDataBean(); + + if (bill.getResultMessageDate() == null) { + bill.setResultMessageDate(new Date()); + } } @Command