Shouldn't allow negative payments or credits

Description

Overview

Negative amounts in payments or credits change the meaning of the transaction and should not be allowed.

Expected

A payment of a negative amount should be rejected

A credit of a negative amount should be rejected

Actual

both Payments and Credits can be successfully posted with negative values.

See the comments of MODFIN-71 for examples.

Acceptance Criteria

  • Negative payments/credits are disallowed

  • An appropriate error message is returned

  • unit tests are updated

  • API tests are updated

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Yauheni Kuzmianok September 3, 2020 at 9:33 AM

Verified on snapshot by running api tests:
https://github.com/folio-org/folio-api-tests/pull/473

Aliaksandr Pautau August 28, 2020 at 8:14 AM

Done

Details

Assignee

Reporter

Tester Assignee

Priority

Story Points

Sprint

Development Team

Thunderjet

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created February 7, 2020 at 9:39 PM
Updated October 12, 2020 at 11:20 AM
Resolved September 3, 2020 at 9:33 AM
TestRail: Cases
TestRail: Runs