/** * <p>Process entity request.</p> * @param pAddParam additional param, e.g. return this line's * document in "nextEntity" for farther process * @param pRequestData Request Data * @param pEntity Entity to process * @return Entity processed for farther process or null * @throws Exception - an exception **/ @Override public final T process( final Map<String, Object> pAddParam, final T pEntity, final IRequestData pRequestData) throws Exception { T result = this.prcEntityFolSave.process(pAddParam, pEntity, pRequestData); this.srvAccSettings.clearAccSettings(pAddParam); return result; }
/** * <p>Process entity request.</p> * @param pAddParam additional param, e.g. return this line's * document in "nextEntity" for farther process * @param pRequestData Request Data * @param pEntity Entity to process * @return Entity processed for farther process or null * @throws Exception - an exception **/ @Override public final GoodsLossLine process( final Map<String, Object> pAddParam, final GoodsLossLine pEntityPb, final IRequestData pRequestData) throws Exception { GoodsLossLine entity = this.prcAccEntityPbCopy .process(pAddParam, pEntityPb, pRequestData); entity.setItsQuantity(BigDecimal.ZERO); return entity; }
/** * <p>Process entity request.</p> * @param pReqVars additional param, e.g. return this line's * document in "nextEntity" for farther process * @param pRequestData Request Data * @param pEntity Entity to process * @return Entity processed for farther process or null * @throws Exception - an exception **/ @Override public final SalesReturn process(final Map<String, Object> pReqVars, final SalesReturn pEntity, final IRequestData pRequestData) throws Exception { pReqVars.put("DebtorCreditortaxDestinationdeepLevel", 2); Set<String> ndFlDc = new HashSet<String>(); ndFlDc.add("itsId"); ndFlDc.add("itsName"); ndFlDc.add("isForeigner"); ndFlDc.add("taxDestination"); pReqVars.put("DebtorCreditorneededFields", ndFlDc); SalesReturn invoice = this.prcEntityPbEditDelete .process(pReqVars, pEntity, pRequestData); pReqVars.remove("DebtorCreditorneededFields"); pReqVars.remove("DebtorCreditortaxDestinationdeepLevel"); return invoice; } //Simple getters and setters:
/** * <p>Process entity request.</p> * @param pAddParam additional param, e.g. return this line's * document in "nextEntity" for farther process * @param pRequestData Request Data * @param pEntity Entity to process * @return Entity processed for farther process or null * @throws Exception - an exception **/ @Override public final T process( final Map<String, Object> pAddParam, final T pEntity, final IRequestData pRequestData) throws Exception { pRequestData.setAttribute("typeCodeSubaccMap", this.srvTypeCode.getTypeCodeMap()); return this.prcAccEntityRetrieve.process(pAddParam, pEntity, pRequestData); }
/** * <p>Process entity request.</p> * @param pAddParam additional param, e.g. return this line's * document in "nextEntity" for farther process * @param pRequestData Request Data * @param pEntity Entity to process * @return Entity processed for farther process or null * @throws Exception - an exception **/ @Override public final T process( final Map<String, Object> pAddParam, final T pEntity, final IRequestData pRequestData) throws Exception { pRequestData.setAttribute("typeCodeSubaccMap", this.srvTypeCode.getTypeCodeMap()); return this.prcAccEntityCreate.process(pAddParam, pEntity, pRequestData); }
/** * <p>Process entity request.</p> * @param pAddParam additional param, e.g. return this line's * document in "nextEntity" for farther process * @param pRequestData Request Data * @param pEntity Entity to process * @return Entity processed for farther process or null * @throws Exception - an exception **/ @Override public final T process( final Map<String, Object> pAddParam, final T pEntity, final IRequestData pRequestData) throws Exception { pRequestData.setAttribute("typeCodeSubaccMap", this.srvTypeCode.getTypeCodeMap()); return this.prcAccEntityPbCopy.process(pAddParam, pEntity, pRequestData); }
/** * <p>Process entity request.</p> * @param pAddParam additional param, e.g. return this line's * document in "nextEntity" for farther process * @param pRequestData Request Data * @param pEntity Entity to process * @return Entity processed for farther process or null * @throws Exception - an exception **/ @Override public final T process( final Map<String, Object> pAddParam, final T pEntity, final IRequestData pRequestData) throws Exception { pRequestData.setAttribute("typeCodeSubaccMap", this.srvTypeCode.getTypeCodeMap()); return this.prcAccEntityCopy.process(pAddParam, pEntity, pRequestData); }
/** * <p>Process entity request.</p> * @param pAddParam additional param, e.g. return this line's * document in "nextEntity" for farther process * @param pRequestData Request Data * @param pEntity Entity to process * @return Entity processed for farther process or null * @throws Exception - an exception **/ @Override public final T process( final Map<String, Object> pAddParam, final T pEntity, final IRequestData pRequestData) throws Exception { T entity = this.prcDocReverse.process(pAddParam, pEntity, pRequestData); entity.setTotalTaxes(BigDecimal.ZERO); entity.setSubtotal(BigDecimal.ZERO); return entity; }
/** * <p>Process entity request.</p> * @param pAddParam additional param, e.g. return this line's * document in "nextEntity" for farther process * @param pRequestData Request Data * @param pEntity Entity to process * @return Entity processed for farther process or null * @throws Exception - an exception **/ @Override public final T process( final Map<String, Object> pAddParam, final T pEntity, final IRequestData pRequestData) throws Exception { pRequestData.setAttribute("typeCodeSubaccMap", this.srvTypeCode.getTypeCodeMap()); return this.prcAccEntityPbEditDelete .process(pAddParam, pEntity, pRequestData); }
/** * <p>Process entity request.</p> * @param pAddParam additional param, e.g. return this line's * document in "nextEntity" for farther process * @param pRequestData Request Data * @param pEntity Entity to process * @return Entity processed for farther process or null * @throws Exception - an exception **/ @Override public final AReplExcludeAccountsDebitCredit process( final Map<String, Object> pAddParam, final AReplExcludeAccountsDebitCredit pEntity, final IRequestData pRequestData) throws Exception { AReplExcludeAccountsDebitCredit entity = this.prcEntityFolSave .process(pAddParam, pEntity, pRequestData); for (IHandlerModelChanged<ReplicationAccMethod> replAccMethChangedHandler : this.replAccMethChangedHandlers) { replAccMethChangedHandler.handleModelChanged(entity.getItsOwner()); } return entity; }
/** * <p>Process entity request.</p> * @param pAddParam additional param, e.g. return this line's * document in "nextEntity" for farther process * @param pRequestData Request Data * @param pEntity Entity to process * @return Entity processed for farther process or null * @throws Exception - an exception **/ @Override public final Manufacture process( final Map<String, Object> pAddParam, final Manufacture pEntity, final IRequestData pRequestData) throws Exception { Manufacture entity = this.prcAccEntityPbCopy .process(pAddParam, pEntity, pRequestData); entity.setItsQuantity(BigDecimal.ZERO); entity.setTheRest(BigDecimal.ZERO); return entity; }
/** * <p>Process entity request.</p> * @param pAddParam additional param, e.g. return this line's * document in "nextEntity" for farther process * @param pRequestData Request Data * @param pEntity Entity to process * @return Entity processed for farther process or null * @throws Exception - an exception **/ @Override public final PaymentFrom process( final Map<String, Object> pAddParam, final PaymentFrom pEntity, final IRequestData pRequestData) throws Exception { PaymentFrom entity = this.prcAccDocGetForReverse .process(pAddParam, pEntity, pRequestData); entity.setForeignTotal(entity.getForeignTotal().negate()); pRequestData.setAttribute("typeCodeSubaccMap", this.srvTypeCode.getTypeCodeMap()); return entity; }
/** * <p>Process entity request.</p> * @param pAddParam additional param, e.g. return this line's * document in "nextEntity" for farther process * @param pRequestData Request Data * @param pEntity Entity to process * @return Entity processed for farther process or null * @throws Exception - an exception **/ @Override public final Wage process( final Map<String, Object> pAddParam, final Wage pEntity, final IRequestData pRequestData) throws Exception { Wage entity = this.prcAccDocGetForReverse .process(pAddParam, pEntity, pRequestData); entity.setTotalTaxesEmployee(pEntity.getTotalTaxesEmployee().negate()); entity.setTotalTaxesEmployer(pEntity.getTotalTaxesEmployer().negate()); entity.setNetWage(pEntity.getNetWage().negate()); return entity; }
/** * <p>Process entity request.</p> * @param pAddParam additional param, e.g. return this line's * document in "nextEntity" for farther process * @param pRequestData Request Data * @param pEntity Entity to process * @return Entity processed for farther process or null * @throws Exception - an exception **/ @Override public final BeginningInventoryLine process( final Map<String, Object> pAddParam, final BeginningInventoryLine pEntityPb, final IRequestData pRequestData) throws Exception { BeginningInventoryLine entity = this.prcAccEntityPbCopy .process(pAddParam, pEntityPb, pRequestData); entity.setItsQuantity(BigDecimal.ZERO); entity.setItsCost(BigDecimal.ZERO); entity.setItsTotal(BigDecimal.ZERO); return entity; }
/** * <p>Process entity request.</p> * @param pAddParam additional param, e.g. return this line's * document in "nextEntity" for farther process * @param pRequestData Request Data * @param pEntity Entity to process * @return Entity processed for farther process or null * @throws Exception - an exception **/ @Override public final T process( final Map<String, Object> pAddParam, final T pEntity, final IRequestData pRequestData) throws Exception { T entity = this.prcAccEntityRetrieve .process(pAddParam, pEntity, pRequestData); String actionAdd = pRequestData.getParameter("actionAdd"); if ("full".equals(actionAdd)) { pRequestData.setAttribute("accEntries", this.srvAccEntry .retrieveAccEntriesFor(pAddParam, entity)); pRequestData.setAttribute("classAccountingEntry", AccountingEntry.class); } return entity; }
/** * <p>Process entity request.</p> * @param pAddParam additional param, e.g. return this line's * document in "nextEntity" for farther process * @param pRequestData Request Data * @param pEntity Entity to process * @return Entity processed for farther process or null * @throws Exception - an exception **/ @Override public final ManufacturingProcess process( final Map<String, Object> pAddParam, final ManufacturingProcess pEntity, final IRequestData pRequestData) throws Exception { ManufacturingProcess entity = this.prcAccDocGetForReverse .process(pAddParam, pEntity, pRequestData); if (entity.getItsQuantity().compareTo(entity.getTheRest()) != 0) { throw new ExceptionWithCode(ExceptionWithCode .WRONG_PARAMETER, "where_is_withdrawals_from_this_source"); } entity.setItsQuantity(entity.getItsQuantity().negate()); return entity; }
/** * <p>Process entity request.</p> * @param pAddParam additional param, e.g. return this line's * document in "nextEntity" for farther process * @param pRequestData Request Data * @param pEntity Entity to process * @return Entity processed for farther process or null * @throws Exception - an exception **/ @Override public final Manufacture process( final Map<String, Object> pAddParam, final Manufacture pEntity, final IRequestData pRequestData) throws Exception { Manufacture entity = this.prcAccDocGetForReverse .process(pAddParam, pEntity, pRequestData); if (entity.getItsQuantity().compareTo(entity.getTheRest()) != 0) { throw new ExceptionWithCode(ExceptionWithCode .WRONG_PARAMETER, "where_is_withdrawals_from_this_source"); } entity.setItsQuantity(entity.getItsQuantity().negate()); return entity; }
/** * <p>Process entity request.</p> * @param pAddParam additional param, e.g. return this line's * document in "nextEntity" for farther process * @param pRequestData Request Data * @param pEntityPb Entity to process * @return Entity processed for farther process or null * @throws Exception - an exception **/ @Override public final UsedMaterialLine process( final Map<String, Object> pAddParam, final UsedMaterialLine pEntityPb, final IRequestData pRequestData) throws Exception { UsedMaterialLine entity = this.prcAccEntityPbCopy .process(pAddParam, pEntityPb, pRequestData); entity.setItsQuantity(BigDecimal.ZERO); entity.setItsCost(BigDecimal.ZERO); entity.setItsTotal(BigDecimal.ZERO); return entity; }
/** * <p>Process entity request.</p> * @param pAddParam additional param, e.g. return this line's * document in "nextEntity" for farther process * @param pRequestData Request Data * @param pEntity Entity to process * @return Entity processed for farther process or null * @throws Exception - an exception **/ @Override public final PaymentTo process( final Map<String, Object> pAddParam, final PaymentTo pEntity, final IRequestData pRequestData) throws Exception { PaymentTo entity = this.prcAccDocGetForReverse .process(pAddParam, pEntity, pRequestData); entity.setForeignTotal(entity.getForeignTotal().negate()); pRequestData.setAttribute("typeCodeSubaccMap", this.srvTypeCode.getTypeCodeMap()); return entity; }
/** * <p>Process entity request.</p> * @param pAddParam additional param, e.g. return this line's * document in "nextEntity" for farther process * @param pRequestData Request Data * @param pEntity Entity to process * @return Entity processed for farther process or null * @throws Exception - an exception **/ @Override public final T process( final Map<String, Object> pAddParam, final T pEntity, final IRequestData pRequestData) throws Exception { T entity = this.prcAccDocCogsRetrieve .process(pAddParam, pEntity, pRequestData); String actionAdd = pRequestData.getParameter("actionAdd"); if ("full".equals(actionAdd)) { pRequestData .setAttribute("classUseMaterialEntry", UseMaterialEntry.class); pRequestData.setAttribute("useMaterialEntries", srvUseMaterialEntry .retrieveEntriesFor(pAddParam, entity)); } return entity; }