示例#1
0
 /**
  * Add an amount to the existing collected amount, with a tolerance of one paisa i.e. balance can
  * be exceeded by 1 paisa. This can be used when split amounts are being calculated by
  * MoneyUtils.allocate(), where amounts may be off by 1 paisa.
  */
 public void addCollectedWithOnePaisaTolerance(BigDecimal amount) {
   addCollectedWithTolerance(amount, ONE_PAISA_TOLERANCE_FOR_ADDCOLLECTED);
 }
示例#2
0
 /**
  * Add an amount to the existing collected amount, with zero tolerance i.e. balance cannot be
  * exceeded.
  */
 public void addCollected(BigDecimal amount) {
   addCollectedWithTolerance(amount, BigDecimal.ZERO);
 }