Koha-clms/t/db_dependent/Koha
Aleisha Amohia 2a1d85fc32
Bug 15348: Add estimated delivery date field to individual orders
This patch allows you to specify an estimated delivery date per order.
The specified estimated delivery date is also considered when searching
for late orders and exporting late orders. You can also edit the
estimated delivery date from the late orders page.

Test plan:
1. Update database, rebuild schema, restart services
2. Go to Acquisitions, search for a vendor, and create a new basket
3. Add an order to the basket. When filling in the accounting details,
notice the new 'estimated delivery date' field, but don't add a date.
Save the order.
4. Confirm no date shows in the estimated delivery date column in the
orders table.
5. Modify the order. Add a date in the estimated delivery date field and
save the order.
6. Confirm the date now shows in the orders table.
7. Close the basket.
8. Go to the Late Orders page.
9. Put estimated delivery date from and to parameters in the search
filters on the left. Ensure the from and to dates encapsulate the date
you entered in the estimated delivery date field for the order.
10. Click Filter and ensure the order shows.
11. Select the checkbox next to the order. Click the Export as CSV button.
12. Open the CSV and confirm the estimated delivery date that you
entered shows as expected in the file.
13. Click Edit under the estimated delivery date. Confirm the estimated
delivery date modal pops up with the correct order line number in the
modal header.
14. Remove the estimated delivery date and click Save.
15. Confirm that the estimated delivery date calculated by Koha now
shows in the late orders table.
16. Select the checkbox next to the order. Click the Export as CSV button.
17. Open the CSV and confirm the calculated estimated delivery date
shows in the CSV.
18. Confirm tests pass: t/db_dependent/Koha/Acquisition/Order.t

Sponsored-by: Bibliotheksservice-Zentrum Baden-Württemberg (BSZ)
Signed-off-by: Christian Stelzenmüller <christian.stelzenmueller@bsz-bw.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Christian Stelzenmüller <christian.stelzenmueller@bsz-bw.de>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-09-16 10:36:53 -03:00
..
Account Bug 30612: Rename other occurrences 2022-08-01 09:59:05 -03:00
Acquisition Bug 15348: Add estimated delivery date field to individual orders 2022-09-16 10:36:53 -03:00
Auth Bug 28998: (follow-up) Check missing encryption key in script and module 2022-05-04 05:18:31 -10:00
BackgroundJobs Bug 31351: (QA follow-up) Adjust tests accordingly 2022-09-07 13:59:07 -07:00
Biblio Bug 29697: Use flag embed_items 2022-07-22 15:24:11 -03:00
BiblioUtils Bug 29625: Add test for get_all_biblios_iterator 2022-02-21 15:15:47 -10:00
Cash Bug 27779: (QA follow-up) Fix unit test 2022-08-09 07:37:03 -03:00
Charges
…
Checkouts Bug 28854: (QA follow-up) Remove duplicate key test 2022-07-13 10:36:14 -03:00
CirculationRules Bug 29705: In test suite merge IssuingRules with CirculationRules 2022-05-06 10:33:10 -10:00
Club Bug 29857: (follow-up) Fix t/db_dependent/Koha/Club/Hold.t 2022-03-02 09:40:05 -10:00
Config
…
Edifact Bug 30135: Unit tests 2022-04-13 15:55:39 +02:00
Filter Bug 29697: Use flag embed_items 2022-07-22 15:24:11 -03:00
Import Bug 30830: Add Koha Objects for Koha Import Items 2022-05-31 08:53:55 -03:00
Item Bug 31183: Unit tests 2022-08-09 08:26:19 -03:00
Items Bug 29781: Unit test 2022-02-16 11:51:11 -10:00
Library
…
Objects/Mixin Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
Old Bug 30023: Add Koha::Old::Checkout->anonymize 2022-03-01 22:47:47 -10:00
Patron Bug 23681: Move to ::Patron::Restriction::Type(s) 2022-08-25 08:50:35 -03:00
Patrons Bug 29005: Unit tests 2022-04-20 09:03:39 -10:00
Plugins Bug 31223: Regression tests 2022-08-01 09:03:47 -03:00
REST Bug 30194: (26351 follow-up) Silence useless warning 2022-03-29 16:44:31 +02:00
SMTP
…
SearchEngine Bug 30718: (follow-up) index_records is called more times than we thought 2022-08-22 11:19:27 -03:00
Subscription
…
Tags
…
Template/Plugin Bug 30901: Add Unit Tests 2022-08-16 10:43:10 -03:00
UI/Form/Builder Bug 31179: (QA follow-up) Set field as hidden for tests 2022-07-20 09:04:59 -03:00
XSLT
…
Z3950Responder
…
Account.t Bug 29844: Fix t/db_dependent/Koha/* 2022-02-09 15:36:23 -10:00
ActionLogs.t
…
AdditionalContents.t Bug 29144: Add $contents->find_best_match, $library->opac_info 2022-09-16 09:55:19 -03:00
ApiKey.t
…
ArticleRequest.t
…
ArticleRequests.t
…
Authorities.t Bug 29897: Remove 'linkage' leftover 2022-08-09 10:58:48 -03:00
BackgroundJob.t Bug 31351: (QA follow-up) Trivial string fix 2022-09-07 14:04:41 -07:00
BackgroundJobs.t Bug 31351: (QA follow-up) Adjust tests accordingly 2022-09-07 13:59:07 -07:00
Biblio.t Bug 29897: Move code to private method for reusability 2022-08-09 10:58:44 -03:00
BiblioFrameworks.t
…
Biblios.t
…
Checkout.t Bug 30275: Add Unit test for renewals relation 2022-07-05 09:46:22 -03:00
Checkouts.t Bug 30612: Rename other occurrences 2022-08-01 09:59:05 -03:00
CirculationRules.t Bug 29705: In test suite merge IssuingRules with CirculationRules 2022-05-06 10:33:10 -10:00
Cities.t
…
ClassSortRules.t
…
ClassSources.t
…
ClassSplitRules.t
…
CoverImages.t
…
CsvProfiles.t
…
CurbsidePickups.t Bug 30650: Fix some typos 2022-07-29 15:01:45 -03:00
Database.t
…
Desks.t
…
Encryption.t Bug 28998: (follow-up) Check missing encryption key in script and module 2022-05-04 05:18:31 -10:00
Hold.t Bug 22456: Add cancellation request methods to Koha::Hold 2022-07-29 15:28:25 -03:00
Holds.t Bug 22456: (QA follow-up) Consider cancellation requested as cancelled in OPAC 2022-07-29 15:28:45 -03:00
Item.t Bug 31313: Unit tests 2022-08-16 10:10:03 -03:00
ItemTypes.t
…
Items.t Bug 31473: Fix fragile test about bad OpacHiddenItems conf 2022-08-26 16:49:30 -03:00
KeyboardShortcuts.t
…
Libraries.t Bug 29844: Fix t/db_dependent/Koha/* 2022-02-09 15:36:23 -10:00
Library.t Bug 29144: Add $contents->find_best_match, $library->opac_info 2022-09-16 09:55:19 -03:00
MarcSubfieldStructures.t
…
Notices.t
…
Object.t Bug 30420: Rename Koha::Patron->get_overdues with ->overdues 2022-06-14 08:46:05 -03:00
Objects.t Bug 29844: Remove use of wantarray from Koha::Objects 2022-02-09 15:36:23 -10:00
Old.t
…
Patron.t Bug 31005: Unit test 2022-06-24 11:36:19 -03:00
Patrons.t Bug 30933: Change for patron->delete 2022-07-20 09:04:06 -03:00
Pseudonymization.t Bug 31201: Prevent Pseudonymization.t to fail 2022-07-21 09:39:28 -03:00
Quotes.t
…
Ratings.t
…
Recall.t Bug 30291: Changes to tests 2022-05-05 11:17:36 -10:00
Recalls.t Bug 30291: (QA follow-up) Fix for revert to recall_id 2022-05-05 11:17:36 -10:00
Reports.t Bug 29579: (QA follow-up) Fix up t/db_dependent/Koha/Reports.t 2022-08-01 14:37:09 -03:00
Reviews.t
…
SMS_Providers.t
…
SearchField.t
…
SharedContent.t
…
Statistics.t
…
Subscription.t
…
Suggestion.t
…
Suggestions.t Bug 30663: Add Koha::Suggestions helper methods 2022-05-05 10:26:41 -03:00
Tags.t
…
Virtualshelf.t Bug 30933: Unit tests 2022-07-20 09:04:07 -03:00
Virtualshelves.t Bug 31288: Regression tests 2022-08-03 11:42:39 -03:00
Z3950Servers.t
…