Main Koha release repository https://koha-community.org
Find a file
Martin Renvoize 35d1c7c41c Bug 27971: Update void method to use double entry accounting
This patch adds double-entry accounting to the Koha::Account::Line->void method.

This results in the addition of a VOID debit type line that is offset
against the original credit type line that is being voided. This allows
us to accurately record when the void took place, at what branch and by
whome the void was triggered.

Test plan
1/ Apply the database update
2/ Add some debts to a borrower account
3/ Pay those debts
4/ Void the payment
5/ A new 'VOID' line should appear on the account for the full amount of
the original payment.
6/ Payments should have all been reversed
7/ t/db_dependent/Koha/Account/Line.t should still pass
8/ Signoff

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-04-23 11:58:49 +02:00
acqui Bug 23971: Rename pref with AcquisitionLog 2021-04-23 11:58:49 +02:00
admin Bug 23207: (QA follow-up) Add new column on item types UI table 2021-04-22 11:11:05 +02:00
api Bug 23666: Add PATCH /patron/:patron_id/extended_attributes/:extended_attribute_id 2021-04-22 14:50:11 +02:00
authorities Bug 8976: Sort subfields for authority records 2021-03-01 15:14:22 +01:00
basket Bug 27268: (QA follow-up) Add Koha::Biblios to basket scripts 2021-03-09 17:20:47 +01:00
bin
C4 Bug 27896: Remove DeleteTransfer 2021-04-23 11:58:49 +02:00
catalogue Bug 27114: Use Template Toolkit plugin for Koha plugins hook 'intranet_catalog_biblio_tab' 2021-04-22 14:37:14 +02:00
cataloguing Bug 27739: Advanced editor should use DefaultCountryField008 preference 2021-04-16 12:28:17 +02:00
circ Bug 27896: Remove DeleteTransfer from circ/return.pl 2021-04-23 11:58:49 +02:00
clubs
course_reserves
debian Bug 23207: (QA follow-up) Add to cron files 2021-04-22 11:11:05 +02:00
docs
errors
etc Bug 14300: Add %P to SIP LogPattern 2021-04-21 15:25:07 +02:00
ill
installer Bug 27971: Update void method to use double entry accounting 2021-04-23 11:58:49 +02:00
Koha Bug 27971: Update void method to use double entry accounting 2021-04-23 11:58:49 +02:00
koha-tmpl Bug 24300: (follow-up) Set minimum for amount input 2021-04-23 11:58:49 +02:00
labels
members Bug 27971: Update void method to use double entry accounting 2021-04-23 11:58:49 +02:00
misc Bug 23207: (QA follow-up) Add to cron files 2021-04-22 11:11:05 +02:00
offline_circ
opac Bug 23583: Handle OpacHiddenItems with yaml_preference 2021-04-21 15:25:07 +02:00
patron_lists
patroncards Bug 23271: Replace search_limited with search_with_library_limits 2021-04-21 15:25:07 +02:00
plugins
pos Bug 27796: Centralise payment/transaction type handling 2021-04-16 12:28:17 +02:00
reports Bug 23271: Replace search_limited with search_with_library_limits 2021-04-21 15:25:07 +02:00
reserve Bug 16787: (follow-up) Fix check to ensure reasons are passed to template 2021-04-22 14:50:11 +02:00
reviews
rotating_collections Bug 26618: (QA follow-up) Fix unit test for TranferCollection change 2021-03-03 15:36:13 +01:00
serials Bug 23243: Adjust previous patch 2021-04-21 15:25:07 +02:00
services
skel
suggestion Bug 7806: Fix remaining occurrences of 0000-00-00 2021-03-01 11:16:42 +01:00
svc
t Bug 27971: Update void method to use double entry accounting 2021-04-23 11:58:49 +02:00
tags
tmp/modified_authorities
tools Bug 23271: Replace search_limited with search_with_library_limits 2021-04-21 15:25:07 +02:00
virtualshelves
xt
.editorconfig
.eslintrc.json
.gitignore
.htaccess
.mailmap
.perlcriticrc
.scss-lint.yml
about.pl Bug 28125: Display a warning on the about page for OPACHiddenItems is needed 2021-04-16 12:28:17 +02:00
app.psgi
changelanguage.pl
cpanfile Bug 28110: Require YAML::XS 0.67 2021-04-14 15:28:12 +02:00
fix-perl-path.PL
gulpfile.js
help.pl
INSTALL
Koha.pm Bug 12362: DBRev 20.12.00.039 2021-04-23 11:58:49 +02:00
koha_perl_deps.pl
kohaversion.pl
LICENSE Bug 9440 - update Koha's LICENSE file from GPL2 to GPL3 2013-02-12 08:52:10 -05:00
mainpage.pl
Makefile.PL Bug 26363: Provide a systemd unit file for koha-worker for source installs 2021-03-01 10:51:15 +01:00
MANIFEST.SKIP
package.json Bug 27939: Update yarn.lock file 2021-03-16 12:04:06 +01:00
README
README.md
README.robots
rewrite-config.PL
yarn.lock Bug 27939: Update yarn.lock file 2021-03-16 12:04:06 +01:00

Koha is a free software integrated library system (ILS).

Koha is distributed under the GNU GPL version 3 or later.

Note: Koha does not accept pull requests from git hosting sites.

Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.

For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch

The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook

http://koha-community.org/

Koha Logo