}
// Set updated timestamp
- // @TODO detachedReceipt.setReceiptUpdated(new Date());
+ detachedReceipt.setReceiptEntryUpdated(new Date());
+
// Get receipt from it and find it
final BillableReceipt foundReceipt = this.getEntityManager().find(detachedReceipt.getClass(), detachedReceipt.getReceiptId());
// Merge receipt instance
final BillableReceipt managedReceipt = this.getEntityManager().merge(foundReceipt);
- // Set updated timestamp
- managedReceipt.setReceiptEntryUpdated(new Date());
-
// Trace message
this.getLoggerBeanLocal().logTrace(MessageFormat.format("mergeReceipt: managedReceipt={0} - EXIT!", managedReceipt)); //NOI18N
}
// Set updated timestamp
- // @TODO detachedReceipt.setReceiptUpdated(new Date());
+ detachedReceiptItem.setItemEntryUpdated(new Date());
+
// Get receipt from it and find it
final BillableReceiptItem foundReceiptItem = this.getEntityManager().find(detachedReceiptItem.getClass(), detachedReceiptItem.getItemId());
// Merge receipt item instance
final BillableReceiptItem managedReceiptItem = this.getEntityManager().merge(foundReceiptItem);
- // Set updated timestamp
- managedReceiptItem.setItemEntryUpdated(new Date());
-
// Trace message
this.getLoggerBeanLocal().logTrace(MessageFormat.format("mergeReceiptItem: managedReceiptItem={0} - EXIT!", managedReceiptItem)); //NOI18N
}
// Merge data
- final BillableReceipt managedReceipt = this.mergeReceipt(receipt);
+ final BillableReceipt updatedReceipt = this.mergeReceipt(receipt);
// Trace message
- this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.updateReceipt(): managedReceipt.receiptId={1} - EXIT!", this.getClass().getSimpleName(), managedReceipt.getReceiptId())); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.updateReceipt(): updatedReceipt.receiptId={1} - EXIT!", this.getClass().getSimpleName(), updatedReceipt.getReceiptId())); //NOI18N
// Return it
- return managedReceipt;
+ return updatedReceipt;
}
}
final BillableReceiptItem updatedReceiptItem = this.mergeReceiptItem(receiptItem);
// Trace message
- this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.updateReceiptItem(): updatedReceiptItem={1} - CALLED!", this.getClass().getSimpleName(), updatedReceiptItem)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.updateReceiptItem(): updatedReceiptItem.itemId={1} - EXIT!", this.getClass().getSimpleName(), updatedReceiptItem.getItemId())); //NOI18N
// Return it
return updatedReceiptItem;