/** * <p>Added source types.</p> * @param pAddParam additional param */ public final void addTypeCodeIntoAttrs(final Map<String, Object> pAddParam) { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("typeCodeSubaccMap", srvTypeCode.getTypeCodeMap()); }
/** * <p>Added source types.</p> * @param pAddParam additional param */ public final void addTypeCodeIntoAttrs(final Map<String, Object> pAddParam) { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("typeCodeSubaccMap", srvTypeCode.getTypeCodeMap()); }
/** * <p>Process entity request.</p> * @param pAddParam additional param * @param pRequestData Request Data * @throws Exception - an exception **/ @Override public final void process(final Map<String, Object> pAddParam, final IRequestData pRequestData) throws Exception { this.prcAccEntitiesPage.process(pAddParam, pRequestData); pRequestData.setAttribute("typeCodeSubaccMap", this.srvTypeCode.getTypeCodeMap()); }
/** * <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.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.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 { 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 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 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 PrepaymentFrom process( final Map<String, Object> pAddParam, final PrepaymentFrom pEntity, final IRequestData pRequestData) throws Exception { PrepaymentFrom entity = this.prcAccEntityPbWithSubaccCopy .process(pAddParam, pEntity, pRequestData); entity.setSalesInvoiceId(null); 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 PrepaymentTo process( final Map<String, Object> pAddParam, final PrepaymentTo pEntity, final IRequestData pRequestData) throws Exception { PrepaymentTo entity = this.prcAccDocGetForReverse .process(pAddParam, pEntity, pRequestData); entity.setForeignTotal(entity.getForeignTotal().negate()); entity.setPurchaseInvoiceId(null); 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 PrepaymentFrom process( final Map<String, Object> pAddParam, final PrepaymentFrom pEntity, final IRequestData pRequestData) throws Exception { PrepaymentFrom entity = this.prcAccDocGetForReverse .process(pAddParam, pEntity, pRequestData); entity.setSalesInvoiceId(null); entity.setForeignTotal(entity.getForeignTotal().negate()); pRequestData.setAttribute("typeCodeSubaccMap", this.srvTypeCode.getTypeCodeMap()); return entity; }
/** * <p>Make description for warehouse entry.</p> * @param pEntity movement * @param pLangDef Lang Default * @param pDateFormat DateFormat * @return description **/ public final String makeDescription(final IMakingWarehouseEntry pEntity, final String pLangDef, final DateFormat pDateFormat) { String strWho = getSrvI18n().getMsg(pEntity.getClass().getSimpleName() + "short", pLangDef) + " #" + getSrvOrm().getIdDatabase() + "-" + pEntity.getItsId(); //only local if (pEntity.getOwnerId() == null) { strWho += ", " + pDateFormat.format(pEntity .getDocumentDate()); } else { strWho += " " + getSrvI18n().getMsg("in", pLangDef) + " " + getSrvI18n() .getMsg(getSrvTypeCodeDocuments().getTypeCodeMap().get(pEntity .getOwnerType()).getSimpleName() + "short", pLangDef) + " #" + getSrvOrm() .getIdDatabase() + "-" + pEntity.getOwnerId() + ", " + pDateFormat.format(pEntity.getDocumentDate()); } return getSrvI18n().getMsg("made_at", pLangDef) + " " + pDateFormat.format( new Date()) + " " + getSrvI18n().getMsg("by", pLangDef) + " " + strWho; }
this.srvTypeCode.getTypeCodeMap()); return bsl;
} else { strWho += " " + getSrvI18n().getMsg("in", langDef) + " " + getSrvI18n() .getMsg(getSrvTypeCode().getTypeCodeMap().get(pEntity.getOwnerType()) .getSimpleName() + "short", langDef) + " #" + getSrvOrm().getIdDatabase() + "-" + pEntity.getOwnerId() + ", " + getSrvI18n().getMsg(getSrvTypeCode().getTypeCodeMap() .get(pSource.getSourceType()).getSimpleName() + "short", langDef) + " #" + getSrvOrm().getIdDatabase() + "-" + pSource.getSourceId();
/** * <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 PrepaymentTo process( final Map<String, Object> pAddParam, final PrepaymentTo pEntity, final IRequestData pRequestData) throws Exception { PrepaymentTo entity = this.prcAccEntityPbWithSubaccCopy .process(pAddParam, pEntity, pRequestData); entity.setReversedId(null); entity.setItsTotal(BigDecimal.ZERO); entity.setItsDate(new Date()); entity.setHasMadeAccEntries(false); entity.setPurchaseInvoiceId(null); pRequestData.setAttribute("typeCodeSubaccMap", this.srvTypeCode.getTypeCodeMap()); return entity; }
/** * <p>Make description for warehouse entry.</p> * @param pEntity movement * @param pSource source of item * @return description **/ public final String makeDescription(final IMakingWarehouseEntry pEntity, final ADrawItemEntry pSource) { String strWho = getSrvI18n().getMsg(pEntity.getClass().getSimpleName() + "short") + " #" + getSrvOrm().getIdDatabase() + "-" //only local + pEntity.getItsId(); if (pEntity.getOwnerId() == null) { strWho += ", " + getDateFormatter().format(pEntity .getDocumentDate()); } else { strWho += " " + getSrvI18n().getMsg("in") + " " + getSrvI18n() .getMsg(getSrvTypeCode().getTypeCodeMap().get(pEntity.getOwnerType()) .getSimpleName() + "short") + " #" + getSrvOrm().getIdDatabase() + "-" + pEntity.getOwnerId() + ", " + getDateFormatter().format(pEntity.getDocumentDate()); } String strFrom = " " + getSrvI18n().getMsg("from") + " " + getSrvI18n() .getMsg(getSrvTypeCode().getTypeCodeMap().get(pSource.getSourceType()) .getSimpleName() + "short") + " #" + getSrvOrm().getIdDatabase() + "-" + pSource.getSourceId(); return getSrvI18n().getMsg("made_at") + " " + getDateFormatter().format( new Date()) + " " + getSrvI18n().getMsg("by") + " " + strWho + strFrom; }
/** * <p>Make description for warehouse entry.</p> * @param pEntity movement * @return description **/ public final String makeDescription(final IMakingWarehouseEntry pEntity) { String strWho = getSrvI18n().getMsg(pEntity.getClass().getSimpleName() + "short") + " #" + getSrvOrm().getIdDatabase() + "-" + pEntity.getItsId(); //only local if (pEntity.getOwnerId() == null) { strWho += ", " + getDateFormatter().format(pEntity .getDocumentDate()); } else { strWho += " " + getSrvI18n().getMsg("in") + " " + getSrvI18n() .getMsg(getSrvTypeCodeDocuments().getTypeCodeMap().get(pEntity .getOwnerType()).getSimpleName() + "short") + " #" + getSrvOrm() .getIdDatabase() + "-" + pEntity.getOwnerId() + ", " + getDateFormatter().format(pEntity.getDocumentDate()); } return getSrvI18n().getMsg("made_at") + " " + getDateFormatter().format( new Date()) + " " + getSrvI18n().getMsg("by") + " " + strWho; }
/** * <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 SubaccountLine process( final Map<String, Object> pAddParam, final SubaccountLine pEntity, final IRequestData pRequestData) throws Exception { SubaccountLine entity = this.prcAccEntityCreate .process(pAddParam, pEntity, pRequestData); entity.setItsOwner(getSrvOrm() .retrieveEntity(pAddParam, entity.getItsOwner())); pEntity.setSubaccType(entity.getItsOwner().getSubaccType()); pRequestData.setAttribute("typeCodeSubaccMap", this.srvTypeCode.getTypeCodeMap()); return entity; }