question: public void updateQuantityCount ( ItemBean original , ItemBean itemToAdd , boolean add ) { BigDecimal originalQuantity = original . getQtyCount ( ) ; BigDecimal quantityToAdd = itemToAdd . getQtyCount ( ) ; BigDecimal finalQuantity = null ; if ( ! add ) finalQuantity = originalQuantity . subtract ( quantityToAdd ) ; else finalQuantity = originalQuantity . add ( quantityToAdd ) ; original . setQtyCount ( finalQuantity ) ; }
target:  Update Quantity count in inventory