MStorageReservation getQty for public access

Description

From an external new plugin (Libero Mfg) i want to access getReservedQty and so i access MStorageReservation.getQty which is private. Attached patch to make it public if such fix is considered.
Kind regards.

Environment

External OSGi plugin to access MStorageResrvation private getQty. In org.adempiere.base plugin.

Attachments

1

relates to

Activity

Show:

RedhuanO September 17, 2013 at 10:36 PM

After examining the code more closely from HTMLMessenger in LiberoMfg, it can be refactored without asking for getQty (reserved) and just taking getQtyAvailable. QtyReserved is refactored as shown below. Thus this patch is not needed.

#QtyOnHand = MStorageOnHand.getQtyOnHand
#QtyRerserved = QtyOnHand.subtract(MStorageReservation.getQtyAvailable)

Fixed

Details

Assignee

Reporter

Time tracking

1h logged

Components

Affects versions

Priority

Created September 17, 2013 at 9:56 PM
Updated August 26, 2015 at 2:23 PM
Resolved September 17, 2013 at 10:36 PM