Opened 8 years ago

Closed 7 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:

Description

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$reverseMove.call(Unknown Source)

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

	at $Proxy16.doInTransaction(Unknown Source)

	at InventoryPurchaseService.delete(InventoryPurchaseService.groovy:125)

	at InventoryPurchaseService$delete.call(Unknown Source)

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

Change History (1)

comment:1 Changed 7 years ago by Gavin

Resolution: fixed
Status: newclosed

Fix by r964.

Note: See TracTickets for help on using tickets.