code: @Override
    public final List<AccountingEntry> retrieveAccEntriesFor(
      final Map<String, Object> pAddParam,
        final IDoc pEntity) throws Exception {
      Long docId = pEntity.getItsId();
      if (pEntity.getIdBirth() != null) {
        docId = pEntity.getIdBirth();
      }
      List<AccountingEntry> result = getSrvOrm().retrieveListWithConditions(
        pAddParam, AccountingEntry.class, " where SOURCETYPE="
          + pEntity.constTypeCode() + " and SOURCEID=" + docId
            + " and SOURCEDATABASEBIRTH=" + pEntity.getIdDatabaseBirth());
      return result;
    }
docs: <p>Retrieve accounting entries for document.</p>
  @param pAddParam additional param
  @param pEntity a document
  @throws Exception - an exception