private Procedure createProcedure(BaseDateTime date, String code, double quantity) {
return this.createProcedure(new Date(date.getMillis()), code, quantity);
}
private Procedure createProcedure(Date date, String code, double quantity) {
Procedure p = new Procedure();
p.setCode(code);
p.setQuantity(quantity);
p.setDate(date);
return p;
}