public static Cheque map()

in service/src/main/java/org/apache/fineract/cn/cheque/service/internal/mapper/ChequeMapper.java [54:71]


  public static Cheque map(final ChequeEntity chequeEntity) {
    final MICR micr = new MICR();
    micr.setChequeNumber(chequeEntity.getChequeNumber());
    micr.setBranchSortCode(chequeEntity.getBranchSortCode());
    micr.setAccountNumber(chequeEntity.getAccountNumber());

    final Cheque cheque = new Cheque();
    cheque.setMicr(micr);
    cheque.setDrawee(chequeEntity.getDrawee());
    cheque.setDrawer(chequeEntity.getDrawer());
    cheque.setPayee(chequeEntity.getPayee());
    cheque.setAmount(chequeEntity.getAmount().toString());
    cheque.setDateIssued(DateConverter.toIsoString(chequeEntity.getDateIssued().toLocalDate()));
    cheque.setOpenCheque(chequeEntity.getOpenCheque());
    cheque.setState(chequeEntity.getState());
    cheque.setJournalEntryIdentifier(chequeEntity.getJournalEntryIdentifier());
    return cheque;
  }