Skip to content

Commit

Permalink
O3-3323: Fix update of stock item reference that is failing when any …
Browse files Browse the repository at this point in the history
…update operation is being done
  • Loading branch information
slubwama committed May 28, 2024
1 parent a290fa6 commit 6bf08df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,7 @@ public void voidStockItemPackagingUOM(String uuid, String reason, int voidedBy)
public void voidStockItemReference(String uuid, String reason, int voidedBy) {
DbSession session = getSession();
Query query = session
.createQuery("UPDATE stockmanagement.StockItemReference SET voided=1, dateVoided=:dateVoided, voidedBy=:voidedBy, voidReason=:reason WHERE uuid = :uuid)");
.createQuery("UPDATE stockmanagement.StockItemReference SET voided=1, dateVoided=:dateVoided, voidedBy=:voidedBy, voidReason=:reason WHERE uuid = :uuid");
query.setParameter("uuid", uuid);
query.setDate("dateVoided", new Date());
query.setInteger("voidedBy", voidedBy);
Expand Down

0 comments on commit 6bf08df

Please sign in to comment.