Bug 24470: Mark a batch as 'imported' if all the bib has been imported
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 9 Dec 2020 14:22:35 +0000 (15:22 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 11 Jan 2021 13:06:32 +0000 (14:06 +0100)
commit5f126b129128ecbf7a65eda4b5b62f355c7349d8
treeff780601ee151fe502191a5b05003559ffb5acf5
parent2212ba008d75c274cb7a4baa16040ad48df8810c
Bug 24470: Mark a batch as 'imported' if all the bib has been imported

When a staged MARC file is used to populate a basket in acquisitions,
the status of the batch is kept as "staged" until a user repeat the operation.
The "imported" status is added to the batch when new orders are added to
a basket "from a new file" (yes!...)

Test plan:
- Create a basket
- Add to basket From a New File
- Select a marc file and stage
- Add titles to your basket
Until all your records are imported the batch will have the status
"staged"
When all your records will be imported, the status of the batch will be
"imported"

Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 99cebb82dc6fd1aa3f7466f03a267cac9deedc6c)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
acqui/addorderiso2709.pl