Class UserImportPendingAction

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.sync1c.action.UserImportPendingAction

public class UserImportPendingAction extends BaseAction
User-facing action for viewing and confirming pending stock balance imports from 1C. Anyone who works with the store — its owner, a StoreAccess grant, or a "кладовщик" edit_group_id membership — sees and confirms its pending items here. This is the working tier (StoreAccessService.workStoreIds(Connection, DynActionForm, String), option stores of the node), not the managing one, on purpose: the proposals come from 1C, which is the master of the stock, and posting one is the installer confirming what reached them — not a change of the store the way a CSV "replace" or a correction is.
  • Constructor Details

    • UserImportPendingAction

      public UserImportPendingAction()
  • 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
    • apply

      public org.apache.struts.action.ActionForward apply(DynActionForm form, ConnectionSet conSet) throws Exception
      Posts one proposal. A refusal is thrown — the unit that cannot come or leave is named with the reason — and nothing of it stays.
      Throws:
      Exception
    • applyAll

      public org.apache.struts.action.ActionForward applyAll(DynActionForm form, ConnectionSet conSet) throws Exception
      Posts the proposals of a store and position (or all accessible); refusals are listed, the rest goes on.
      Throws:
      Exception
    • rejectAll

      public org.apache.struts.action.ActionForward rejectAll(DynActionForm form, ConnectionSet conSet) throws Exception
      Rejects the proposals of the same narrowing "Post all" works on — a store and a position, or everything the screen currently shows. Rejecting by hand, row after row, was the only way, and a write-off made without 1C brings its positions back at every import until 1C itself lets go of them: a few dozen rows every cycle is a job of its own. It takes exactly what is on the screen and nothing beyond it, and the screen asks first — rejecting too much is worse than accepting too much, because what was rejected comes back silently and what was accepted shows up in the balance.
      Throws:
      Exception
    • reject

      public org.apache.struts.action.ActionForward reject(DynActionForm form, ConnectionSet conSet) throws Exception
      Throws:
      Exception