/** * <p>Create entity with its itsOwner e.g. invoice line * for invoice.</p> * @param pAddParam additional param * @param pIdEntityItsOwner entity itsOwner ID * @return entity instance * @throws Exception - an exception **/ @Override public final SalesReturnLine createEntityWithOwnerById( final Map<String, Object> pAddParam, final Object pIdEntityItsOwner) throws Exception { SalesReturnLine entity = new SalesReturnLine(); entity.setIdDatabaseBirth(getSrvOrm().getIdDatabase()); entity.setIsNew(true); SalesReturn itsOwner = new SalesReturn(); itsOwner.setItsId(Long.valueOf(pIdEntityItsOwner.toString())); entity.setItsOwner(itsOwner); addAccSettingsIntoAttrs(pAddParam); return entity; }
typeCodeMap.put(new SalesReturn().constTypeCode(), SalesReturn.class); typeCodeMap.put(new SalesReturnLine().constTypeCode(), SalesReturnLine.class); typeCodeMap.put(new PurchaseReturn().constTypeCode(),
/** * <p>Create entity with its itsOwner e.g. invoice line * for invoice.</p> * @param pAddParam additional param * @param pEntityItsOwner itsOwner * @return entity instance * @throws Exception - an exception **/ @Override public final SalesReturnLine createEntityWithOwner( final Map<String, Object> pAddParam, final SalesReturn pEntityItsOwner) throws Exception { SalesReturnLine entity = new SalesReturnLine(); entity.setIsNew(true); entity.setIdDatabaseBirth(getSrvOrm().getIdDatabase()); entity.setItsOwner(pEntityItsOwner); addAccSettingsIntoAttrs(pAddParam); return entity; }
typeCodeMap.put(new SalesReturn().constTypeCode(), SalesReturn.class); typeCodeMap.put(new SalesReturnLine().constTypeCode(), SalesReturnLine.class); typeCodeMap.put(new PurchaseReturn().constTypeCode(),
/** * <p>Create entity.</p> * @param pAddParam additional param * @return entity instance * @throws Exception - an exception **/ @Override public final SalesReturnLine createEntity( final Map<String, Object> pAddParam) throws Exception { SalesReturnLine entity = new SalesReturnLine(); entity.setIdDatabaseBirth(getSrvOrm().getIdDatabase()); entity.setIsNew(true); SalesReturn itsOwner = new SalesReturn(); entity.setItsOwner(itsOwner); addAccSettingsIntoAttrs(pAddParam); return entity; }
"There is withdrawals from this source!"); SalesReturnLine reversingLine = new SalesReturnLine(); reversingLine.setIdDatabaseBirth(getSrvOrm().getIdDatabase()); reversingLine.setReversedId(reversedLine.getItsId());
&& pEntity.getReversedId() != null) { SalesReturnLine srl = new SalesReturnLine(); SalesReturn reversed = new SalesReturn(); reversed.setItsId(pEntity.getReversedId()); "There is withdrawals from this source!"); SalesReturnLine reversingLine = new SalesReturnLine(); reversingLine.setIdDatabaseBirth(getSrvOrm().getIdDatabase()); reversingLine.setReversedId(reversedLine.getItsId());