Class MovementAction

java.lang.Object
org.apache.struts.action.Action
org.apache.struts.actions.BaseAction
org.apache.struts.actions.DispatchAction

public class MovementAction extends QueueScreenAction
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
  • 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: BaseAction
      Default action method if no parameter 'action' passed. Overwrite and implement.
      Overrides:
      unspecified in class BaseAction
      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

      protected QueueEntity getEntity()
      Description copied from class: QueueScreenAction
      The entity the screen lists.
      Specified by:
      getEntity in class QueueScreenAction
    • getScreenTitle

      protected String getScreenTitle(DynActionForm form)
      Description copied from class: QueueScreenAction
      Screen title, shown in the browser tab.
      Specified by:
      getScreenTitle in class QueueScreenAction
    • getShowAction

      protected String getShowAction()
      Description copied from class: QueueScreenAction
      Permission node of the card the rows link to, e.g. /user/plugin/inventoru/store:show; the row menu is hidden without it.
      Specified by:
      getShowAction in class QueueScreenAction
    • 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 via MovementDAO.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