Class MovementAction
java.lang.Object
org.apache.struts.action.Action
org.apache.struts.actions.BaseAction
org.apache.struts.actions.DispatchAction
org.bgerp.action.base.BaseAction
org.bgerp.plugin.inventoru.action.QueueScreenAction
org.bgerp.plugin.inventoru.action.MovementAction
Stock movements: the journal screen — a queue like every other entity's — and the operations
that write into it (receipt, reserve, writeoff, return, transfer).
Mapped at /user/plugin/inventoru/movement.do
-
Field Summary
Fields inherited from class BaseAction
l, MAPPER, PATH_JSP_ADMIN, PATH_JSP_OPEN, PATH_JSP_USER, PATH_JSP_USERMOB, setupFields inherited from class org.apache.struts.actions.DispatchAction
clazz, methods, typesFields inherited from class org.apache.struts.actions.BaseAction
messagesFields inherited from class org.apache.struts.action.Action
servlet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected QueueEntityThe entity the screen lists.protected StringgetScreenTitle(DynActionForm form) Screen title, shown in the browser tab.protected StringPermission node of the card the rows link to, e.g.org.apache.struts.action.ActionForwardprocessTab(DynActionForm form, ConnectionSet conSet) org.apache.struts.action.ActionForwardqueueFilter(DynActionForm form, ConnectionSet conSet) org.apache.struts.action.ActionForwardqueueShow(DynActionForm form, ConnectionSet conSet) org.apache.struts.action.ActionForwardrecord(DynActionForm form, ConnectionSet conSet) Records a new stock movement (reserve, writeoff, receipt, etc.).org.apache.struts.action.ActionForwardrecordMultiple(DynActionForm form, ConnectionSet conSet) Records multiple reserve movements at once (called from the Materials process tab).org.apache.struts.action.ActionForwardresolveCode(DynActionForm form, ConnectionSet conSet) Resolves a scanned code (camera/scanner input) to an inventory object.org.apache.struts.action.ActionForwardreturnStock(DynActionForm form, ConnectionSet conSet) Returns previously issued/unused stock back to a store as plain available quantity (increments quantity only, never touches reserved — reserved is a store+item aggregate shared by every process with an active reserve on this item, so releasing it here could silently cancel a DIFFERENT process's legitimate reservation).org.apache.struts.action.ActionForwardtransfer(DynActionForm form, ConnectionSet conSet) Moves stock from one store to another.org.apache.struts.action.ActionForwardunreserve(DynActionForm form, ConnectionSet conSet) Cancels a previously recorded reserve by creating an unreserve movement.org.apache.struts.action.ActionForwardunspecified(DynActionForm form, ConnectionSet conSet) Default action method if no parameter 'action' passed.Methods inherited from class QueueScreenAction
getToolbarJsp, queueFilterScreen, queueScreen, queueShowScreenMethods inherited from class BaseAction
checkModified, dispatchMethod, getParameter, html, html, json, json, permissionCheck, restoreRequestParams, unspecified, updatePersonalizationMethods inherited from class org.apache.struts.actions.DispatchAction
cancelled, execute, getMethod, getMethodName, unspecifiedMethods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
-
Constructor Details
-
MovementAction
public MovementAction()
-
-
Method Details
-
unspecified
public org.apache.struts.action.ActionForward unspecified(DynActionForm form, ConnectionSet conSet) throws Exception Description copied from class:BaseActionDefault action method if no parameter 'action' passed. Overwrite and implement.- Overrides:
unspecifiedin classBaseAction- Parameters:
form-conSet-- Returns:
- the action forward
- Throws:
Exception
-
queueFilter
public org.apache.struts.action.ActionForward queueFilter(DynActionForm form, ConnectionSet conSet) throws Exception - Throws:
Exception
-
queueShow
public org.apache.struts.action.ActionForward queueShow(DynActionForm form, ConnectionSet conSet) throws Exception - Throws:
Exception
-
getEntity
Description copied from class:QueueScreenActionThe entity the screen lists.- Specified by:
getEntityin classQueueScreenAction
-
getScreenTitle
Description copied from class:QueueScreenActionScreen title, shown in the browser tab.- Specified by:
getScreenTitlein classQueueScreenAction
-
getShowAction
Description copied from class:QueueScreenActionPermission node of the card the rows link to, e.g./user/plugin/inventoru/store:show; the row menu is hidden without it.- Specified by:
getShowActionin classQueueScreenAction
-
resolveCode
public org.apache.struts.action.ActionForward resolveCode(DynActionForm form, ConnectionSet conSet) throws Exception Resolves a scanned code (camera/scanner input) to an inventory object. Order: nomenclature barcode → item ext_id (1C GUID) → device serial number. Response:type= item|device|none + object fields.- Throws:
Exception
-
processTab
public org.apache.struts.action.ActionForward processTab(DynActionForm form, ConnectionSet conSet) throws Exception - Throws:
Exception
-
recordMultiple
public org.apache.struts.action.ActionForward recordMultiple(DynActionForm form, ConnectionSet conSet) throws Exception Records multiple reserve movements at once (called from the Materials process tab).- Throws:
Exception
-
unreserve
public org.apache.struts.action.ActionForward unreserve(DynActionForm form, ConnectionSet conSet) throws Exception Cancels a previously recorded reserve by creating an unreserve movement.- Throws:
Exception
-
transfer
public org.apache.struts.action.ActionForward transfer(DynActionForm form, ConnectionSet conSet) throws Exception Moves stock from one store to another. Only the source store requires access (giving stock to a colleague's store isn't a security-sensitive action the way taking from it is) — destination just has to exist and not be deleted. Records a linked transfer/transfer_in pair viaMovementDAO.transfer(int, int, int, BigDecimal, int, int, String, String)so the history shows exactly where it went and where it came from on both sides.- Throws:
Exception
-
returnStock
public org.apache.struts.action.ActionForward returnStock(DynActionForm form, ConnectionSet conSet) throws Exception Returns previously issued/unused stock back to a store as plain available quantity (increments quantity only, never touches reserved — reserved is a store+item aggregate shared by every process with an active reserve on this item, so releasing it here could silently cancel a DIFFERENT process's legitimate reservation). Distinct from unreserve(): unreserve cancels one specific process's active reservation (touches reserved, not quantity); this is for physically handing stock back to the warehouse regardless of process/reserve state (touches quantity, not reserved).- Throws:
Exception
-
record
public org.apache.struts.action.ActionForward record(DynActionForm form, ConnectionSet conSet) throws Exception Records a new stock movement (reserve, writeoff, receipt, etc.).- Throws:
Exception
-