Opened 9 years ago

Closed 8 years ago

#105 closed defect (fixed)

InventoryItemPurchase's can't be deleted when order quantity = 0

Reported by: Gavin Owned by:
Priority: blocker Milestone: 0.8 - Purchasing and Inventory Improvements
Component: gnuMims - application general Version: trunk
Keywords: Cc:


The rollback deletion is failing. This is working perfectly when ordered quantity > 0 but fails (and allows the order to be deleted) when order quantity = 0.

java.lang.NullPointerException: Cannot get property 'id' on null object

	at InventoryMovementService$_reverseMove_closure1.doCall(InventoryMovementService.groovy:20)

	at $Proxy16.doInTransaction(Unknown Source)

	at InventoryMovementService.reverseMove(InventoryMovementService.groovy:9)

	at InventoryMovementService$ Source)

	at InventoryPurchaseService$_delete_closure5.doCall(InventoryPurchaseService.groovy:196)

	at $Proxy16.doInTransaction(Unknown Source)

	at InventoryPurchaseService.delete(InventoryPurchaseService.groovy:125)

	at InventoryPurchaseService$ Source)

	at InventoryItemPurchaseDetailedController$_closure5.doCall(InventoryItemPurchaseDetailedController.groovy:198)

Change History (1)

comment:1 Changed 8 years ago by Gavin

Resolution: fixed
Status: newclosed

Fix by r964.

Note: See TracTickets for help on using tickets.