@Transactional(readOnly=true) public class InstrumentService extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BANK_CODE |
static String |
BANKACCOUNTID |
static String |
BRANCH_NAME |
static String |
DETAIL_KEY_ID |
static String |
DETAIL_TYPE_ID |
static String |
ECSTYPE |
static String |
INSTRUMENT_AMOUNT |
static String |
INSTRUMENT_DATE |
static String |
INSTRUMENT_HEADER |
static String |
INSTRUMENT_NUMBER |
static String |
INSTRUMENT_SERIALNO |
static String |
INSTRUMENT_STATUS_DATE |
static String |
INSTRUMENT_TYPE |
static String |
IS_NULL |
static String |
IS_PAYCHECK |
static String |
PAY_TO |
static String |
PAYEE_NAME |
static String |
PAYIN_SLIP_ID |
static String |
RECONCILED_AMOUNT |
static String |
STATUS_ID |
static String |
TRANSACTION_DATE |
static String |
TRANSACTION_NUMBER |
static String |
VOUCHER_HEADER |
| Constructor and Description |
|---|
InstrumentService() |
| Modifier and Type | Method and Description |
|---|---|
org.egov.commons.Bankreconciliation |
addToBankReconcilation(org.egov.commons.CVoucherHeader vouherHeader,
InstrumentHeader instrumentHeader)
this api is called for every instrument type but amount is reconciled in this step only for type BANK else only entry is
made in bankreconcialtion table.
|
org.egov.commons.Bankreconciliation |
addToBankReconcilationWithLoop(org.egov.commons.CVoucherHeader vouherHeader,
InstrumentHeader instrumentHeader,
org.egov.commons.EgwStatus instrumentReconciledStatus) |
List<InstrumentHeader> |
addToInstrument(List<Map<String,Object>> paramList)
Accepts the list of instruments and save the same to instrument object The values that needs to be passed are:
Instrument number, Instrument date, Instrument amount, Instrument type, payee name,Bank code,Bank account,Bank branch name,Is pay cheque |
boolean |
cancelInstrument(InstrumentHeader ih) |
InstrumentAccountCodes |
createInstrumentAccountCodes(InstrumentAccountCodes iAccCodes) |
InstrumentType |
createInstrumentType(InstrumentType iType) |
void |
editInstruments(InstrumentOtherDetails instrumentOtherDetails) |
List<InstrumentVoucher> |
getBouncedCheques(Date dishonoredFromDate,
Date dishonoredToDate)
returns List of InstrumentVouhcers dishonored from dishonoredFromDate to dishonoredToDate to get list of InstrumentVouchers
dishonored on a perticular date pass both as same Date
|
InstrumentHeader |
getInstrumentHeader(Long bankaccountId,
String instrumentNo,
String payTo) |
InstrumentHeader |
getInstrumentHeader(Long bankaccountId,
String instrumentNo,
String payTo,
String serialNo) |
InstrumentHeader |
getInstrumentHeaderById(Long id) |
InstrumentType |
getInstrumentTypeById(Long id) |
InstrumentType |
getInstrumentTypeByType(String type) |
List<InstrumentVoucher> |
getReconciledCheques(Date reconcilationFromDate,
Date reconcilationToDate)
returns list of InstrumentVouchers reconciled from reconcilationFromDate to reconcilationToDate to get list of
InstrumentVouchers reconciled on a perticular date pass both as same Date 'dd/MM/yyyy'),reconcilationToDate('dd/MM/yyyy')
|
org.egov.commons.EgwStatus |
getStatusId(String statusString) |
boolean |
isChequeIsSurrenderdForReassign(String chequeNumber,
Long bankAccountId,
String serialNo) |
boolean |
isChequeNumberUnique(String chequeNumber,
Long bankAccountId,
String serialNo) |
boolean |
isChequeNumberValid(String chequeNumber,
Long bankAccountId,
Integer departmentId,
String serialNo) |
boolean |
isChequeNumberWithinRange(String chequeNumber,
Long bankAccountId,
Integer departmentId,
String serialNo) |
boolean |
isReassigningChequeNumberValid(String chequeNumber,
Long bankAccountId,
Integer departmentId,
String serialNo) |
boolean |
isRtgsNumberUnique(String chequeNumber,
Long bankAccountId) |
boolean |
isRtgsNumberValid(String chequeNumber,
Long bankAccountId) |
List<InstrumentVoucher> |
modifyInstrumentVoucher(List<Map<String,Object>> paramList) |
void |
surrenderCheques(List<InstrumentHeader> suurenderChequelist) |
void |
unDeposit(Long payinslipId) |
List<InstrumentOtherDetails> |
updateInstrumentOtherDetails(List<Map<String,Object>> paramList)
Accepts list of following Objects in a Map and updates them into InstrumnetOtherdetails and statusid in InstrumentHeader.
|
void |
updateInstrumentOtherDetailsStatus(InstrumentHeader instrumentHeader,
Date statusDate,
BigDecimal reconciledAmount) |
List<InstrumentVoucher> |
updateInstrumentVoucherReference(List<Map<String,Object>> paramList)
Accepts List of Instrument and Voucher objects and updates the same in InstrumentVoucher Object .
List of Values that can be Passed are Instrument header -InstrumentHeader Object(Mandatory), Voucher header - Voucher Header Object (Mandatory) |
public static final String STATUS_ID
public static final String RECONCILED_AMOUNT
public static final String INSTRUMENT_STATUS_DATE
public static final String PAYIN_SLIP_ID
public static final String VOUCHER_HEADER
public static final String INSTRUMENT_HEADER
public static final String BRANCH_NAME
public static final String PAYEE_NAME
public static final String PAY_TO
public static final String DETAIL_TYPE_ID
public static final String DETAIL_KEY_ID
public static final String BANK_CODE
public static final String INSTRUMENT_TYPE
public static final String INSTRUMENT_AMOUNT
public static final String INSTRUMENT_DATE
public static final String INSTRUMENT_NUMBER
public static final String INSTRUMENT_SERIALNO
public static final String IS_NULL
public static final String IS_PAYCHECK
public static final String BANKACCOUNTID
public static final String ECSTYPE
public static final String TRANSACTION_NUMBER
public static final String TRANSACTION_DATE
@Transactional public List<InstrumentHeader> addToInstrument(List<Map<String,Object>> paramList)
paramList - for receipts Is pay cheque will be '0' and for payments '1' @Transactional public List<InstrumentVoucher> updateInstrumentVoucherReference(List<Map<String,Object>> paramList)
paramList - @Transactional public List<InstrumentVoucher> modifyInstrumentVoucher(List<Map<String,Object>> paramList)
@Transactional
public org.egov.commons.Bankreconciliation addToBankReconcilation(org.egov.commons.CVoucherHeader vouherHeader,
InstrumentHeader instrumentHeader)
throws org.egov.infra.exception.ApplicationRuntimeException
vouherHeader - instrumentHeader - org.egov.infra.exception.ApplicationRuntimeException@Transactional
public org.egov.commons.Bankreconciliation addToBankReconcilationWithLoop(org.egov.commons.CVoucherHeader vouherHeader,
InstrumentHeader instrumentHeader,
org.egov.commons.EgwStatus instrumentReconciledStatus)
throws org.egov.infra.exception.ApplicationRuntimeException
vouherHeader - instrumentHeader - instrumentReconciledStatus - org.egov.infra.exception.ApplicationRuntimeException - instrumentReconciledStatus is used for INSTRUMENT_TYPE_BANK and
INSTRUMENT_TYPE_BANK_TO_BANK since they are reconciled on voucher creation itself . Others will be in deposited status@Transactional public List<InstrumentOtherDetails> updateInstrumentOtherDetails(List<Map<String,Object>> paramList) throws org.egov.infra.exception.ApplicationRuntimeException
paramList - org.egov.infra.exception.ApplicationRuntimeException@Transactional public boolean cancelInstrument(InstrumentHeader ih) throws org.egov.infra.exception.ApplicationRuntimeException
org.egov.infra.exception.ApplicationRuntimeExceptionpublic List<InstrumentVoucher> getReconciledCheques(Date reconcilationFromDate, Date reconcilationToDate) throws org.egov.infra.exception.ApplicationRuntimeException
org.egov.infra.exception.ApplicationRuntimeExceptionpublic List<InstrumentVoucher> getBouncedCheques(Date dishonoredFromDate, Date dishonoredToDate) throws org.egov.infra.exception.ApplicationRuntimeException
dishonoredFromDate - ,dishonoredToDateorg.egov.infra.exception.ApplicationRuntimeExceptionpublic InstrumentType getInstrumentTypeById(Long id) throws org.egov.infra.exception.ApplicationRuntimeException
org.egov.infra.exception.ApplicationRuntimeExceptionpublic InstrumentType getInstrumentTypeByType(String type) throws org.egov.infra.exception.ApplicationRuntimeException
org.egov.infra.exception.ApplicationRuntimeExceptionpublic org.egov.commons.EgwStatus getStatusId(String statusString)
public InstrumentHeader getInstrumentHeader(Long bankaccountId, String instrumentNo, String payTo)
public InstrumentHeader getInstrumentHeader(Long bankaccountId, String instrumentNo, String payTo, String serialNo)
public InstrumentHeader getInstrumentHeaderById(Long id)
@Transactional public InstrumentType createInstrumentType(InstrumentType iType)
@Transactional public InstrumentAccountCodes createInstrumentAccountCodes(InstrumentAccountCodes iAccCodes)
public boolean isChequeNumberWithinRange(String chequeNumber, Long bankAccountId, Integer departmentId, String serialNo)
public boolean isChequeNumberUnique(String chequeNumber, Long bankAccountId, String serialNo)
public boolean isChequeIsSurrenderdForReassign(String chequeNumber, Long bankAccountId, String serialNo)
public boolean isChequeNumberValid(String chequeNumber, Long bankAccountId, Integer departmentId, String serialNo)
public void unDeposit(Long payinslipId)
vhId - @Transactional public void surrenderCheques(List<InstrumentHeader> suurenderChequelist)
suurenderChequelist - @Transactional public void updateInstrumentOtherDetailsStatus(InstrumentHeader instrumentHeader, Date statusDate, BigDecimal reconciledAmount)
@Transactional public void editInstruments(InstrumentOtherDetails instrumentOtherDetails)
Copyright © 2015–2017 eGovernments Foundation. All rights reserved.