Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBestPessimist committed Jun 25, 2020
1 parent 742fc76 commit c74cde3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public static Percent of(
@NonNull final BigDecimal denominator,
final int precision)
{
return of(numerator, denominator, 2, RoundingMode.HALF_UP);
return of(numerator, denominator, precision, RoundingMode.HALF_UP);
}

public static Percent of(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public PaymentAndInvoiceRowsRepo(

public PaymentAndInvoiceRows getByBPartnerId(@NonNull final BPartnerId bPartnerId)
{
final ZonedDateTime evaluationDate = SystemTime.asZonedDateTime();
final ZonedDateTime evaluationDate = SystemTime.asZonedDateTime(); // todo. somehow we should pass Payment date here. I don't think that's possible. Have to talk to mark.

final List<PaymentToAllocate> paymentsToAllocate = paymentAllocationRepo.retrievePaymentsToAllocate(PaymentToAllocateQuery.builder()
.bpartnerId(bPartnerId)
Expand Down

0 comments on commit c74cde3

Please sign in to comment.