Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Savings account Pay charge transaction balances #10

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
17faf45
FINERACT-1760: savings account externalId support
abraham-menyhart Aug 29, 2023
48735f6
FINERACT-1971: Align dates and dateformat in tests
adamsaghy Sep 21, 2023
9633907
FINERACT-1958: Rework down-payment calculation
adamsaghy Sep 19, 2023
7c81e11
FINERACT-1968
reluxa Sep 24, 2023
a8fd587
FINERACT-1927: Incorrect exception info in BatchAPI response
marta-jankovics Sep 25, 2023
b0b1b88
FINERACT-1971
reluxa Sep 28, 2023
28b98e7
FINERACT-1971: Minor bug-fixes and enhancements
marta-jankovics Sep 25, 2023
09ea034
FINERACT-1958-Rework-Down-Payment-Overlapping-Installment
ruchiD Sep 22, 2023
164353a
[FINERACT-1958] Business events for down payment installments
taskain7 Sep 12, 2023
08cb84b
FINERACT-1958: Business events for down payment installments
adamsaghy Sep 29, 2023
ac58ef3
FINERACT-1938: Fix calculating running balance after release amount i…
mariiaKraievska Sep 29, 2023
eae79c6
FINERACT-1958-Loan-repayment-calculation
ruchiD Sep 27, 2023
4c8ca9b
Bump actions/setup-java from 3.12.0 to 3.13.0
dependabot[bot] Sep 21, 2023
7abddcd
Pin dependencies
renovate-bot Sep 25, 2023
46caf09
Update gradle/wrapper-validation-action digest to 342dbeb
renovate-bot Sep 25, 2023
2ab3037
Update ghcr.io/navikt/mock-oauth2-server Docker tag to v2
renovate-bot Sep 18, 2023
7ac4203
Update postgres Docker tag to v16
renovate-bot Sep 18, 2023
d934ffd
FINERACT-1932: Add starter configuration class for portfolio.repaymen…
mmagdiab Oct 1, 2023
1870a42
Add custom Configuration class for floatingrates module (FINERACT-1932)
abhinav7sinha Sep 21, 2023
7aa7aad
FINERACT-1932: Add starter configuration class for portfolio.rate module
mmagdiab Oct 1, 2023
0edce27
FINERACT-1932: Add custom Configuration class for self-account module
mmagdiab Sep 3, 2023
a9d8441
Add custom AutoConfiguration class for tax service (FINERACT-1932)
mmagdiab Aug 12, 2023
69aa434
Add custom AutoConfiguration class for transfer service (FINERACT-1932)
mmagdiab Aug 12, 2023
d9609c8
Add custom Configuration class for collectionsheet module (FINERACT-1…
abhinav7sinha Aug 31, 2023
8f1a13a
FINERACT-1921: BatchAPI - status code mismatch
marta-jankovics Sep 25, 2023
944f3ab
FINERACT-1971
reluxa Oct 2, 2023
6568117
FINERACT-1971: Adding charge on a closed loan after maturity date sho…
adamsaghy Oct 4, 2023
7f0d9e4
FINERACT-1932: Add stater configuration class for provider.paymentdet…
mmagdiab Oct 3, 2023
9291d6f
FINERACT-1932: Add stater configuration class for provider.paymenttyp…
mmagdiab Oct 3, 2023
a1f0127
FINERACT-1724-Loan-Product-Update
ruchiD Oct 6, 2023
d193810
[FINERACT-1968] Adv. Pay. All. CBR test
taskain7 Oct 6, 2023
dbff67a
FINERACT-1968-Advanced-Payment-Allocation-Charge-Off
ruchiD Oct 5, 2023
0e06df5
FINERACT-1968: Add Advanced Payment Alloc Data in Loan Product
Oct 10, 2023
9cafa43
[FINERACT-1971] LoanRepaymentDueBusinessEvent shouldn't be sent if th…
taskain7 Oct 10, 2023
d59fd17
Update actions/setup-java digest to cd89f46
renovate-bot Oct 9, 2023
e6357bb
FINERACT-1932: Add stater configuration class for spm module services
mmagdiab Oct 4, 2023
7fab372
FINERACT-1932: Add stater configuration class for template module ser…
mmagdiab Oct 4, 2023
2a98dcc
FINERACT-1932: Add stater configuration class for portfolio.loadprodu…
mmagdiab Oct 7, 2023
df76fc0
FINERACT-1932: Add stater configuration class for portfolio.loanaccou…
mmagdiab Oct 7, 2023
134d01a
FINERACT-1992-Installment-level-delinquency-calculation-db
ruchiD Oct 11, 2023
9b2f43a
Bump actions/setup-java from 3.12.0 to 3.13.0
dependabot[bot] Oct 12, 2023
a761196
[FINERACT-1971] LoanRepaymentDueBusinessEvent shouldn't be sent if th…
taskain7 Oct 10, 2023
65dbba4
[FINERACT-1971] don't send event if the installment is paid
taskain7 Oct 16, 2023
c3e2a0a
FINERACT-1971: Downpayment repayment undo (#3512)
taskain7 Oct 16, 2023
514ff46
Update plugin com.adarshr.test-logger to v4
renovate-bot Oct 16, 2023
598a704
FINERACT-1992: Multi-dlnqcy - Configuration of Installment level deli…
Oct 16, 2023
cc35c61
FINERACT-1724
reluxa Oct 13, 2023
54c8882
FINERACT-1971: Minor bug-fixes
marta-jankovics Oct 9, 2023
c0cc8a4
FINERACT-1978: Delete data table does not delete references
marta-jankovics Oct 2, 2023
9717814
FINERACT-1929: Allow the length of client name to be 160 chars
marta-jankovics Oct 10, 2023
8341e94
FINERACT-1971: Update sonar plugin
adamsaghy Oct 20, 2023
cbee6cc
Bump actions/setup-node from 3.8.1 to 4.0.0
dependabot[bot] Oct 24, 2023
52c6d2b
Update dependency org.apache.bval:org.apache.bval.bundle to v3
renovate-bot Oct 23, 2023
7a675da
Update actions/checkout digest to b4ffde6
renovate-bot Oct 23, 2023
6b1eac3
FINERACT-1724
reluxa Oct 23, 2023
088fbe0
FINERACT-1724
reluxa Oct 21, 2023
1736bf3
FINERACT-1724
reluxa Oct 21, 2023
b682356
FINERACT-1724
reluxa Oct 20, 2023
58479ce
FINERACT-1955: Timezone handling of Savings account
marta-jankovics Oct 12, 2023
17c0549
FINERACT-1983: Date handling improvements - general
marta-jankovics Sep 26, 2023
39975cd
FINERACT-1971: Flaky test improvement on BatchAPI
galovics Oct 26, 2023
94626a9
Add custom Configuration class for mix module (FINERACT-1932)
abhinav7sinha Oct 23, 2023
4edcc74
Add custom Configuration class for interoperation module (FINERACT-1932)
abhinav7sinha Oct 23, 2023
866040f
Add custom Configuration class for organisation/workingdays module (F…
abhinav7sinha Oct 23, 2023
fef7c7b
Add custom Configuration class for organisation/teller module (FINERA…
abhinav7sinha Oct 23, 2023
6164774
Add custom Configuration class for organisation/staff module (FINERAC…
abhinav7sinha Oct 23, 2023
08585bc
Add custom Configuration class for organisation/office module (FINERA…
abhinav7sinha Oct 23, 2023
69210fc
Add custom Configuration class for commands module (FINERACT-1932)
abhinav7sinha Oct 23, 2023
25be543
Add custom Configuration class for accounting/rule module (FINERACT-1…
abhinav7sinha Oct 23, 2023
601ea6d
Add custom Configuration class for accounting/provisioning module (F…
abhinav7sinha Oct 23, 2023
55712bd
Add custom Configuration class for accounting/journalentry module (FI…
abhinav7sinha Oct 23, 2023
147e4e9
Add custom Configuration class for accounting/accrual module (FINERA…
abhinav7sinha Oct 23, 2023
88e9ed1
Add custom Configuration class for organisation/holiday module (FINER…
abhinav7sinha Oct 23, 2023
e422123
Add custom Configuration class for collateralmanagement module (FINER…
abhinav7sinha Sep 19, 2023
c180745
Add custom Configuration class for organisation/provisioning module (…
abhinav7sinha Oct 23, 2023
6ead0c9
Add custom Configuration class for organisation/monetary module (FIN…
abhinav7sinha Oct 23, 2023
4ccaf10
Add custom Configuration class for adhocquery module (FINERACT-1932)
abhinav7sinha Oct 23, 2023
6b997f9
FINERACT-1724
reluxa Oct 26, 2023
a05a4f9
FINERACT-1992-FINERACT-Installment-level-delinquency-calculation
ruchiD Oct 26, 2023
2913636
Add custom Configuration class for notification module (FINERACT-1932)
abhinav7sinha Oct 23, 2023
9defcba
FINERACT-1932: Add custom Configuration class for self-client module
mmagdiab Sep 4, 2023
87682d8
FINERACT-1932: Add custom Configuration class for self-pockets module
mmagdiab Sep 6, 2023
1609163
FINERACT-1932: Add custom Configuration class for shareaccounts services
mmagdiab Aug 27, 2023
8fbe4ac
FINERACT-1932: Add starter Configuration class for self-shareaccounts…
mmagdiab Sep 30, 2023
2838994
FINERACT-1932: Add starter Configuration class for portfolio.fund module
mmagdiab Oct 14, 2023
2f89b88
FINERACT-1905 Loan Charge Reverse Replay with Advanced Payment Alloca…
reluxa Oct 20, 2023
922d3d9
FINERACT-1932: Add starter Configuration class for portfolio.group mo…
mmagdiab Oct 14, 2023
cdf2db1
FINERACT-1932: Add starter Configuration class for portfolio.interest…
mmagdiab Oct 14, 2023
80c490e
Update actions/setup-node action to v4
renovate-bot Oct 30, 2023
b0bbc42
FINERACT-1932: Add custom Configuration class for shareproduct services
mmagdiab Aug 25, 2023
de5e10d
FINERACT-1971: Fixing Loan repayment re-schedule with down payment.
reluxa Oct 30, 2023
9be3270
FINERACT-1971: Fixing obligation met on date when adding charge after…
reluxa Oct 30, 2023
caa5400
FINERACT-1981: Progressive loan schedule handling
adamsaghy Oct 30, 2023
6edefbd
FINERACT-1968: Adv.paym.disbursement
adamsaghy Oct 30, 2023
5d765a1
[FINERACT-1968] charge payment adv.paym.alloc.strategy
taskain7 Oct 26, 2023
33829b5
FINERACT-1996: Reporting should support query that includes json path…
marta-jankovics Oct 17, 2023
b0e7868
FINERACT-1971: Swagger classes primary keys fix (#3545)
peter-kovacs-dpc Oct 31, 2023
8fe4e95
FINERACT-1992: Paused delinquency actions persistence
ruchiD Oct 31, 2023
0f20b71
Fix Savings account Pay charge transaction balances
Nov 24, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/workflows/build-docker-mariadb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3
with:
java-version: '17'
distribution: 'zulu'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-docker-postgresql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3
with:
java-version: '17'
distribution: 'zulu'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ jobs:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3
with:
java-version: '17'
distribution: 'zulu'
cache: gradle
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4
with:
node-version: 16
- name: Congfigure vega-cli
run: npm i -g vega-cli --unsafe
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4
uses: gradle/wrapper-validation-action@342dbebe7272035434f9baccc29a816ec6dd2c7b
- name: Install additional software
run: |
sudo apt-get update
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build-mariadb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
options: --health-cmd="healthcheck.sh --su-mysql --connect --innodb_initialized" --health-interval=5s --health-timeout=2s --health-retries=3

mock-oauth2-server:
image: ghcr.io/navikt/mock-oauth2-server:1.0.0
image: ghcr.io/navikt/mock-oauth2-server:2.0.0
ports:
- 9000:9000
env:
Expand All @@ -30,22 +30,22 @@ jobs:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3
with:
java-version: '17'
distribution: 'zulu'
cache: gradle
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4
with:
node-version: 16
- name: Congfigure vega-cli
run: npm i -g vega-cli --unsafe
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4
uses: gradle/wrapper-validation-action@342dbebe7272035434f9baccc29a816ec6dd2c7b
- name: Verify MariaDB connection
run: |
while ! mysqladmin ping -h"127.0.0.1" -P3306 ; do
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3

mock-oauth2-server:
image: ghcr.io/navikt/mock-oauth2-server:1.0.0
image: ghcr.io/navikt/mock-oauth2-server:2.0.0
ports:
- 9000:9000
env:
Expand All @@ -30,22 +30,22 @@ jobs:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3
with:
java-version: '17'
distribution: 'zulu'
cache: gradle
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4
with:
node-version: 16
- name: Congfigure vega-cli
run: npm i -g vega-cli --unsafe
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4
uses: gradle/wrapper-validation-action@342dbebe7272035434f9baccc29a816ec6dd2c7b
- name: Verify MariaDB connection
run: |
while ! mysqladmin ping -h"127.0.0.1" -P3306 ; do
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/build-postgresql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

services:
postgresql:
image: postgres:15.3
image: postgres:16.0
ports:
- 5432:5432
env:
Expand All @@ -19,7 +19,7 @@ jobs:
options: --health-cmd="pg_isready -q -d postgres -U root" --health-interval=5s --health-timeout=2s --health-retries=3

mock-oauth2-server:
image: ghcr.io/navikt/mock-oauth2-server:1.0.0
image: ghcr.io/navikt/mock-oauth2-server:2.0.0
ports:
- 9000:9000
env:
Expand All @@ -31,22 +31,22 @@ jobs:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3
with:
java-version: '17'
distribution: 'zulu'
cache: gradle
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4
with:
node-version: 16
- name: Congfigure vega-cli
run: npm i -g vega-cli --unsafe
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4
uses: gradle/wrapper-validation-action@342dbebe7272035434f9baccc29a816ec6dd2c7b
- name: Verify PostgreSQL connection
run: |
while ! pg_isready -d postgres -U root -h 127.0.0.1 -p 5432 ; do
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/smoke-activemq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3
with:
java-version: '17'
distribution: 'zulu'
Expand All @@ -36,4 +36,4 @@ jobs:
- name: Check info Worker1
run: (( $(curl -f -k --retry 5 --retry-connrefused --connect-timeout 30 --retry-delay 30 https://localhost:8444/fineract-provider/actuator/info | wc --chars) > 100 ))
- name: Run Smoke Test with Remote COB
run: ./gradlew --no-daemon --console=plain :integration-tests:cleanTest :integration-tests:test --tests "org.apache.fineract.integrationtests.investor.externalassetowner.InitiateExternalAssetOwnerTransferTest" -PcargoDisabled
run: ./gradlew --no-daemon --console=plain :integration-tests:cleanTest :integration-tests:test --tests "org.apache.fineract.integrationtests.investor.externalassetowner.InitiateExternalAssetOwnerTransferTest.saleActiveLoanToExternalAssetOwnerAndBuybackADayLater" -PcargoDisabled
6 changes: 3 additions & 3 deletions .github/workflows/smoke-kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3
with:
java-version: '17'
distribution: 'zulu'
Expand All @@ -36,4 +36,4 @@ jobs:
- name: Check info Worker1
run: (( $(curl -f -k --retry 5 --retry-connrefused --connect-timeout 30 --retry-delay 30 https://localhost:8444/fineract-provider/actuator/info | wc --chars) > 100 ))
- name: Run Smoke Test with Remote COB
run: ./gradlew --no-daemon --console=plain :integration-tests:cleanTest :integration-tests:test --tests "org.apache.fineract.integrationtests.investor.externalassetowner.InitiateExternalAssetOwnerTransferTest" -PcargoDisabled
run: ./gradlew --no-daemon --console=plain :integration-tests:cleanTest :integration-tests:test --tests "org.apache.fineract.integrationtests.investor.externalassetowner.InitiateExternalAssetOwnerTransferTest.saleActiveLoanToExternalAssetOwnerAndBuybackADayLater" -PcargoDisabled
6 changes: 3 additions & 3 deletions .github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ jobs:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3
with:
java-version: '17'
distribution: 'zulu'
cache: gradle
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4
uses: gradle/wrapper-validation-action@342dbebe7272035434f9baccc29a816ec6dd2c7b
- name: Sonarqube
run: ./gradlew --no-daemon --console=plain -Dsonar.verbose=true -Dsonar.login=$SONAR_TOKEN -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.organization=$SONAR_ORGANIZATION -Dsonar.projectKey=$SONAR_PROJECT_KEY --info --stacktrace sonarqube
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
pull-requests: write # for actions/stale to close stale PRs
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
- uses: actions/stale@1160a2240286f5da8ec72b1c0816ce2481aabf84 # v8
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# stale-issue-message: 'Stale issue message'
Expand Down
9 changes: 5 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ buildscript {
plugins {
id 'me.qoomon.git-versioning' version '6.4.2'
id "org.barfuin.gradle.taskinfo" version "2.1.0"
id 'com.adarshr.test-logger' version '3.2.0'
id 'com.adarshr.test-logger' version '4.0.0'
id 'com.diffplug.spotless' version '6.19.0' apply false
id 'org.nosphere.apache.rat' version '0.8.0' apply false
id 'com.github.hierynomus.license' version '0.16.1' apply false
Expand All @@ -86,7 +86,7 @@ plugins {
id 'org.asciidoctor.jvm.gems' version '3.3.2' apply false
id 'org.asciidoctor.kindlegen.base' version '3.2.0' apply false
id 'com.google.cloud.tools.jib' version '3.3.2' apply false
id 'org.sonarqube' version '4.2.1.3168'
id 'org.sonarqube' version '4.4.1.3373'
id 'com.github.andygoossens.modernizer' version '1.8.0' apply false
id 'com.github.spotbugs' version '5.0.14' apply false
id 'se.thinkcode.cucumber-runner' version '0.0.11' apply false
Expand Down Expand Up @@ -356,9 +356,9 @@ configure(project.fineractJavaProjects) {
// and during an IntelliJ recompilation, it fails
//"-Werror",
"-Xmaxwarns",
1500,
"1500",
"-Xmaxerrs",
1500
"1500"
]
// TODO FINERACT-959 (gradually) enable -Xlint:all (see "javac -help -X")

Expand Down Expand Up @@ -569,6 +569,7 @@ configure(project.fineractJavaProjects) {
'org.mockito:mockito-junit-jupiter',
'org.junit.jupiter:junit-jupiter-api',
'org.junit.jupiter:junit-jupiter-engine',
'org.junit.jupiter:junit-jupiter-params',
'org.junit.platform:junit-platform-runner', // required to be able to run tests directly under Eclipse, see FINERACT-943 & FINERACT-1021
'org.bouncycastle:bcpkix-jdk15to18',
'org.bouncycastle:bcprov-jdk15to18',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ dependencyManagement {
dependency 'jakarta.ws.rs:jakarta.ws.rs-api:3.1.0'
dependency 'org.glassfish.jersey.media:jersey-media-multipart:3.1.2'
dependency 'org.glassfish.jaxb:jaxb-runtime:2.3.6' // Swagger needs exactly this version
dependency 'org.apache.bval:org.apache.bval.bundle:2.0.6'
dependency 'org.apache.bval:org.apache.bval.bundle:3.0.0'
dependency 'joda-time:joda-time:2.12.5'

dependency 'io.github.classgraph:classgraph:4.8.160'
Expand Down
6 changes: 6 additions & 0 deletions custom/docker/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ apply from: "${rootDir}/buildSrc/src/main/groovy/org.apache.fineract.dependencie
jib {
from {
image = 'azul/zulu-openjdk-alpine:17'
platforms {
platform {
architecture = System.getProperty("os.arch").equals("aarch64")?"arm64":"amd64"
os = 'linux'
}
}
}

to {
Expand Down
2 changes: 1 addition & 1 deletion docker-compose-postgresql-activemq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ services:
- 61616:61616
# Backend service
fineractpostgresql:
image: postgres:15.3
image: postgres:16.0
volumes:
- ./fineract-db/docker/postgresql:/docker-entrypoint-initdb.d/:Z,ro
restart: always
Expand Down
2 changes: 1 addition & 1 deletion docker-compose-postgresql-kafka-msk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ version: '3.7'
services:
# Backend service
fineractpostgresql:
image: postgres:15.3
image: postgres:16.0
volumes:
- ./fineract-db/docker/postgresql:/docker-entrypoint-initdb.d/:Z,ro
environment:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose-postgresql-kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ services:
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092
# Backend service
fineractpostgresql:
image: postgres:15.3
image: postgres:16.0
volumes:
- ./fineract-db/docker/postgresql:/docker-entrypoint-initdb.d/:Z,ro
environment:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose-postgresql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ version: '3.7'
services:
# Backend service
fineractpostgresql:
image: postgres:15.3
image: postgres:16.0
volumes:
- ./fineract-db/docker/postgresql:/docker-entrypoint-initdb.d/:Z,ro
restart: always
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,14 @@
"null",
"bigdecimal"
]
},
{
"default": null,
"name": "downPaymentPeriod",
"type": [
"null",
"boolean"
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,14 @@ public CommandProcessingResult createGLClosure(final JsonCommand command) {
final Office office = this.officeRepositoryWrapper.findOneWithNotFoundDetection(officeId);
// TODO: Get Tenant specific date
// ensure closure date is not in the future
final LocalDate todaysDate = DateUtils.getBusinessLocalDate();
final LocalDate closureDate = command.localDateValueOfParameterNamed(GLClosureJsonInputParams.CLOSING_DATE.getValue());
if (closureDate.isAfter(todaysDate)) {
if (DateUtils.isDateInTheFuture(closureDate)) {
throw new GLClosureInvalidException(GlClosureInvalidReason.FUTURE_DATE, closureDate);
}
// shouldn't be before an existing accounting closure
final GLClosure latestGLClosure = this.glClosureRepository.getLatestGLClosureByBranch(officeId);
if (latestGLClosure != null) {
if (latestGLClosure.getClosingDate().isAfter(closureDate)) {
if (DateUtils.isAfter(latestGLClosure.getClosingDate(), closureDate)) {
throw new GLClosureInvalidException(GlClosureInvalidReason.ACCOUNTING_CLOSED, latestGLClosure.getClosingDate());
}
}
Expand Down Expand Up @@ -122,7 +121,7 @@ public CommandProcessingResult deleteGLClosure(final Long glClosureId) {
**/
final LocalDate closureDate = glClosure.getClosingDate();
final GLClosure latestGLClosure = this.glClosureRepository.getLatestGLClosureByBranch(glClosure.getOffice().getId());
if (latestGLClosure.getClosingDate().isAfter(closureDate)) {
if (DateUtils.isAfter(latestGLClosure.getClosingDate(), closureDate)) {
throw new GLClosureInvalidDeleteException(latestGLClosure.getOffice().getId(), latestGLClosure.getOffice().getName(),
latestGLClosure.getClosingDate());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import lombok.Setter;
import lombok.experimental.Accessors;
import org.apache.fineract.infrastructure.core.domain.AbstractPersistableCustom;
import org.apache.fineract.infrastructure.core.service.DateUtils;

@Entity
@Table(name = "m_trial_balance")
Expand Down Expand Up @@ -70,9 +71,8 @@ public boolean equals(Object obj) {
}
TrialBalance other = (TrialBalance) obj;
return Objects.equals(other.officeId, officeId) && Objects.equals(other.glAccountId, glAccountId)
&& Objects.equals(other.amount, amount) && other.entryDate.compareTo(entryDate) == 0 ? Boolean.TRUE
: Boolean.FALSE && other.transactionDate.compareTo(transactionDate) == 0 ? Boolean.TRUE
: Boolean.FALSE && Objects.equals(other.closingBalance, closingBalance);
&& Objects.equals(other.amount, amount) && DateUtils.isEqual(other.entryDate, entryDate)
&& DateUtils.isEqual(other.transactionDate, transactionDate) && Objects.equals(other.closingBalance, closingBalance);
}

@Override
Expand Down
Loading
Loading