Main Koha release repository https://koha-community.org
Find a file
Katrin Fischer c8faeac4cd
Bug 33262: Store the biblionumber of a deleted record in the order line
When a bibliographic record is deleted and linked to an order
in the acquisition module, the biblionumber in the order line is
currently deleted as well. This makes it impossible to tell what
was ordered in the first place. This is a big issue for libraries
that need to be able to track how money was spent over long periods
of time.

With this patch the biblionumber of the deleted record will be moved
to a new column deleted_biblionumber in the order line, keeping the FK
on biblionumber.

To test:
* Apply patch, run dataase update
* Create a order/basket in the acquisitions module
* Order several things, you can use existing records from the sample data
* Make sure you order one of the records at least twice
* Take a look at the aqorders table in your database, using a report:

  SELECT biblionumber, deleted_biblionumber, ordernumber from aqorders;

* From the catalog, delete the items on the records and then the records

  Note: There is a warning about attached orders warning about consequences
  for acquisitions. I have chosen to keep it at this point in time, as
  there are still visible side effects of deleting the record, like bug 10758.

* Re-run the report and compare results to the first run. deleted_biblionumber
  should now be filled with the biblionumber of the deleted record.
  biblionumber should be NULL/empty.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-05-05 10:18:33 -03:00
acqui Bug 32484: Enable plugins when UseACQFrameworkForBiblioRecords is set 2023-04-21 10:36:28 -03:00
admin Bug 22440: New ILL requests table 2023-05-05 09:13:41 -03:00
api Bug 22440: Move backend statuses api endpoint 2023-05-05 09:13:43 -03:00
authorities Bug 32484: (QA follow-up) Few typos 2023-04-21 10:36:30 -03:00
basket
bin
C4 Bug 33262: Store the biblionumber of a deleted record in the order line 2023-05-05 10:18:33 -03:00
catalogue Bug 18829: (QA follow-up) Replace forbidden indirect syntax 2023-04-17 09:39:42 -03:00
cataloguing Bug 32874: Fix cataloguing/value_builder/unimarc_field_700-4.pl 2023-05-05 09:13:37 -03:00
circ Bug 33345: On-site checkout checkbox does not work since issue date using flatpickr 2023-04-14 11:35:22 -03:00
clubs
course_reserves
debian Bug 33629: allow pbuilder to use network via build-git-snapshot 2023-05-05 09:13:15 -03:00
docs
erm
errors
etc Bug 33360: Update koha-conf.xml 2023-04-14 11:35:33 -03:00
ill
installer Bug 33262: Add deleted_biblionumber column to aqorders table 2023-05-05 10:18:32 -03:00
Koha Bug 22440: DBIC schema 2023-05-05 09:13:44 -03:00
koha-tmpl Bug 22440: Move backend statuses api endpoint 2023-05-05 09:13:43 -03:00
labels
lib/CGI/Session/Serialize
members Bug 26598: Display guarantee's fines on guarantor's details page 2023-04-06 10:03:16 -03:00
misc Bug 32250: (follow-up) Remove use of AutoCommit=0 2023-05-05 09:13:23 -03:00
offline_circ
opac Bug 12029: Remove 'params' from filter_by_unread 2023-04-20 15:48:47 -03:00
patron_lists
patroncards
plugins
pos
recalls
reports Bug 23824: Add a "Save and run" button to reports 2023-04-17 09:39:45 -03:00
reserve
reviews
rotating_collections
serials
services
skel
suggestion
svc Bug 33408: Fetch sysprefs from svc/config/systempreferences 2023-04-13 11:47:58 -03:00
t Bug 22440: Move backend statuses api endpoint 2023-05-05 09:13:43 -03:00
tags
tools
virtualshelves
xt
.editorconfig
.eslintrc.json
.gitignore
.htaccess
.mailmap
.perlcriticrc
.proverc.dist
.stylelintrc.json
about.pl Bug 30403: (QA follow-up) Add new YAML syspref to about.pl 2023-04-06 11:28:19 -03:00
app.psgi
build-resources.PL
changelanguage.pl
cpanfile
cypress.json Bug 33408: Extend defaultCommandTimeout for cypress 2023-04-13 11:48:00 -03:00
fix-perl-path.PL
gulpfile.js
help.pl
INSTALL
Koha.pm Bug 22440: DBRev 22.12.00.026 2023-05-05 09:13:44 -03:00
koha_perl_deps.pl
kohaversion.pl
LICENSE
mainpage.pl
Makefile.PL
MANIFEST.SKIP
package.json Bug 33066: Introduce a KohaTable Vue component 2023-04-10 07:38:28 -03:00
README
README.md
README.robots
rewrite-config.PL
tsconfig.json
webpack.config.js
yarn.lock Bug 33066: Introduce a KohaTable Vue component 2023-04-10 07:38:28 -03: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