/** * <p>Get match foreign given ID.</p> * @param pReqVars additional param * @param pId ID * @return match foreign * @throws Exception an Exception **/ public final MatchForeign getFor(final Map<String, Object> pReqVars, final Long pId) throws Exception { MatchForeign mf = getSrvOrm().retrieveEntityById(pReqVars, MatchForeign.class, pId); mf.setItsLines(getSrvOrm().retrieveListWithConditions(pReqVars, MatchForeignLine.class, "where ITSOWNER=" + pId)); return mf; }
setTransactionIsolation(ISrvDatabase.TRANSACTION_READ_UNCOMMITTED); this.srvDatabase.beginTransaction(); csvMethod = getSrvOrm().retrieveEntityById(pReqVars, CsvMethod.class, csvMethodId); List<CsvColumn> cols = getSrvOrm()
AccountingEntries itsOwner = getSrvOrm().retrieveEntityById(pAddParam, AccountingEntries.class, pEntity.getSourceId());
final AccountingEntry pEntity, final IRequestData pRequestData) throws Exception { AccountingEntries doc = getSrvOrm().retrieveEntityById(pAddParam, AccountingEntries.class, pEntity.getSourceId()); if (!doc.getIdDatabaseBirth()
final IRequestData pRequestData) throws Exception { AccountingEntry entity = this.srvOrm.retrieveEntity(pAddParam, pEntity); AccountingEntries doc = getSrvOrm().retrieveEntityById(pAddParam, AccountingEntries.class, entity.getSourceId()); if (!doc.getIdDatabaseBirth()
if (fileToUploadName != null) { String bankCsvMethodId = pRequestData.getParameter("bankCsvMethod"); BankCsvMethod bankCsvMethod = getSrvOrm().retrieveEntityById(pAddParam, BankCsvMethod.class, Long.parseLong(bankCsvMethodId)); bankCsvMethod.getCsvMethod().setColumns(getSrvOrm()
if (pEntity.getIdDatabaseBirth().equals(pEntity reversed = getSrvOrm().retrieveEntityById(pAddParam, entityClass, pEntity.getReversedId()); } else { //reversing foreign doc T oldEntity = getSrvOrm().retrieveEntityById(pAddParam, entityClass, pEntity.getItsId()); if (oldEntity.getHasMadeAccEntries()) {
pEntity.setIsNew(false); if (pEntity.getReversedId() != null) { BeginningInventoryLine reversed = getSrvOrm().retrieveEntityById( pAddParam, BeginningInventoryLine.class, pEntity.getReversedId()); if (reversed.getReversedId() != null) {
pEntity.setIsNew(false); if (pEntity.getReversedId() != null) { GoodsLossLine reversed = getSrvOrm().retrieveEntityById( pAddParam, GoodsLossLine.class, pEntity.getReversedId()); if (reversed.getReversedId() != null) {
pReqVars.remove("DebtorCreditortaxDestinationdeepLevel"); if (pEntity.getReversedId() != null) { PurchaseInvoiceLine reversed = getSrvOrm().retrieveEntityById( pReqVars, PurchaseInvoiceLine.class, pEntity.getReversedId()); if (reversed.getReversedId() != null) {
Long resultRecordId = null; if (pBsl.getItsAmount().compareTo(BigDecimal.ZERO) > 0) { PrepaymentFrom prep = getSrvOrm().retrieveEntityById(pReqVars, PrepaymentFrom.class, Long.parseLong(pPrepayId)); if (!prep.getHasMadeAccEntries() || pBsl.getItsAmount().abs() prep.getItsDate(), pLangDef); } else { PrepaymentTo prep = getSrvOrm().retrieveEntityById(pReqVars, PrepaymentTo.class, Long.parseLong(pPrepayId)); if (!prep.getHasMadeAccEntries() || pBsl.getItsAmount().abs()
pReqVars.remove("DebtorCreditortaxDestinationdeepLevel"); if (pEntity.getReversedId() != null) { SalesInvoiceLine reversed = getSrvOrm().retrieveEntityById( pReqVars, SalesInvoiceLine.class, pEntity.getReversedId()); if (reversed.getReversedId() != null) {
PurchaseReturnLine reversed = getSrvOrm().retrieveEntityById( pReqVars, PurchaseReturnLine.class, pEntity.getReversedId()); if (reversed.getReversedId() != null) {
SalesReturnLine reversed = getSrvOrm().retrieveEntityById(pReqVars, SalesReturnLine.class, pEntity.getReversedId()); if (reversed.getReversedId() != null) {
getSrvAccSettings().lazyGetAccSettings(pAddParam).getRoundingMode())); if (pEntity.getReversedId() != null) { Manufacture reversed = getSrvOrm().retrieveEntityById(pAddParam, Manufacture.class, pEntity.getReversedId()); if (reversed.getReversedId() != null) {
Long resultRecordId = null; if (pBsl.getItsAmount().compareTo(BigDecimal.ZERO) > 0) { PaymentFrom pay = getSrvOrm().retrieveEntityById(pReqVars, PaymentFrom.class, Long.parseLong(pPayId)); if (!pay.getHasMadeAccEntries() || pBsl.getItsAmount().abs() pay.getItsDate(), pLangDef); } else { PaymentTo pay = getSrvOrm().retrieveEntityById(pReqVars, PaymentTo.class, Long.parseLong(pPayId)); if (!pay.getHasMadeAccEntries() || pBsl.getItsAmount().abs()
pEntity.setItsOwner(pEntity.getItsOwner()); if (pEntity.getReversedId() != null) { UsedMaterialLine reversed = getSrvOrm().retrieveEntityById( pAddParam, UsedMaterialLine.class, pEntity.getReversedId()); if (reversed.getReversedId() != null) {
WageLine wl = new WageLine(); Wage reversed = getSrvOrm(). retrieveEntityById(pAddParam, Wage.class, pEntity.getReversedId()); wl.setItsOwner(reversed); List<WageLine> wageLines = getSrvOrm().
String resultDescription = null; Long resultRecordId = null; AccountingEntry accent = getSrvOrm().retrieveEntityById(pReqVars, AccountingEntry.class, Long.parseLong(pEntryId)); if (accent == null) {
.retrieveEntityById(pAddParam, ManufacturingProcess.class, pEntity.getReversedId()); reversed.setTheRest(BigDecimal.ZERO);