Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin
Agustin Moyano a551cb47ea
Bug 8179: Receive multiple orders
This patch implements the code to allow a patron to receive multiple
orders at the same time in /cgi-bin/koha/acqui/orderreceive.pl page

To test:
1. apply all patches
2. updatedatabase
3. Go to system preferences and allow AcqReceiveMultipleOrderLines
4. In acquisitions module, create a vendor if you don't have one and add
   3 baskets.. one with create items on ordering, one with create items
   on receiving and finally one with create items when cataloguing
5. Fill baskets with orders (There should be at least 15 orders in total). There should be a mix of orders created by suggestions, others by subscriptions and others by neither of those methods.
6. Close all baskets and receive shipment.
CHECK => in /cgi-bin/koha/acqui/parcel.pl page, in top table there is a column with checkboxes, and a button that says "Receive selected"
7. If all orders from all baskets are shown in the table, set the rows per page to 10, so table has more than one page
8. Check some of the checkboxes
CHECK => "Receive selected" button shows how many rows are selected
9. Go to the next page and select some more rows
CHECK => Changing page does not modify how many rows where selected
10. Go back to previous page
CHECK => Previously selected rows are still selected
11. Reload the page to deselect all rows
12. Select only one row and click on "Receive selected" button
CHECK => the page /cgi-bin/koha/acqui/orderreceive.pl behaves just the same as if the "receive" link in the selected row would have been clicked.
13. Click on cancel to go back to parcel.pl page
14. Select all rows (even the ones from the next page of the table) and
    click on "Receive selected"
CHECH => In orderreceive.pl page there is a table with all selected rows
15. Ensure table has more than one page, as in step 7
16. Click on the "edit" link in the last row of the current page
CHECK => A modal window is displayed with 4 tabs within: Info,
Accounting, Receipt history and Items
CHECK => Modal has 4 buttons at the bottom, 'Previous' to go to previos
order, 'Cancel' to close the modal without keeping modifications, 'Save'
to close modal keeping modifications and 'Next' to go to the next order
CHECK => Even that we are at the end of the current page, 'Next' button
is still available
17. Click on 'Next' button
CHECK => The table behind the modal now displays the next page, and the modal was not closed
18. Click on 'Previous'
CHECK => The table behind the modal went back to the first page, and the modal was not closed
19. Click on 'Previous' button till you reach the first row of the first
    page
CHECK => Only when you reach the first row of the first page 'Previous'
button gets disabled
20. Click on 'Next' button till you reach the last row of the last page
CHECK => Only when you reach the last button of the last page 'Next'
button gets disabled
21. Check that behaviour for the different types of order are still the
    same
    a. For orders that where created through suggestion, check that the
suggestion info is present in Info tab. If when suggestion was accepted
you set a reason, a dropdown to change the reason shoul display also.
    b. For orders that where created through subscriptions, check that
the Items tab is disabled, and the Receipt history is enabled. On
accounting tab you should be able to change quantity ordered. If there
were less items received than ordered, the next time you receive this
order the child order generated from this one shoul appear in receipt
history.
    c. For orders that don't come from subscription and creates there items on ordering, Receipt history
should be disabled, and a table with prefilled items shold appear in the
Items tab. You can edit them and the changes should appear in the item's
row.
    d. For orders that don't come from subscription and creates there
items on receiving, Receipt history should be disabled, and a form to
create the items should appear in Items tab. When you add an item a
table should appear.
    e. For orders that don't come from subscription and creates there
ites on cataloguing, Receipt history and Items tabs should be disabled.
    f. Any changes made in quantity (received or ordered) or funds in the modal should be
reflected in the table if you click save from the modal.
22. Once you've done all you checking and verifications click save
23. While saving a progress bar should appear
24. If no error was detected, you should be redirected back to parcel.pl
    page
25. If an error or warning was detected (like there is an order with 0
    items to receive) the save button should be disabled and warnings
are dispayed.
26. prove t/db_dependent/Koha/Acquisition/Fund.t t/db_dependent/Koha/Acquisitoin/Order.t t/db_dependent/Koha/Item.t

Sponsored-by: Virginia Polytechnic Institute and State University
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-05-15 08:53:47 -03:00
..
preferences Bug 8179: Receive multiple orders 2023-05-15 08:53:47 -03:00
searchengine/elasticsearch Bug 33129: Use template wrapper for breadcrumbs: Administration part 6 2023-04-14 15:39:39 -03:00
additional-fields.tt Bug 33006: (follow-up) Add spans for translatability 2023-04-12 11:22:10 -03:00
admin-home.tt Bug 33673: Change "global system preferences" to "system preferences" 2023-05-09 10:58:01 -03:00
adveditorshortcuts.tt Bug 33006: (follow-up) Add spans for translatability 2023-04-12 11:22:10 -03:00
aqbudgetperiods.tt Bug 33180: Use template wrapper for tabs: Budgets and Search engine configuration 2023-04-12 11:43:13 -03:00
aqbudgets.tt Bug 33696: Fix doubled up home icon in budgets page 2023-05-09 10:57:59 -03:00
aqcontract.tt Bug 33006: (follow-up) Add spans for translatability 2023-04-12 11:22:10 -03:00
aqplan.tt Bug 33006: (follow-up) Add spans for translatability 2023-04-12 11:22:10 -03:00
audio_alerts.tt Bug 33006: (follow-up) Add spans for translatability 2023-04-12 11:22:10 -03:00
auth_subfields_structure.tt Bug 33006: (follow-up) Add spans for translatability 2023-04-12 11:22:10 -03:00
auth_tag_structure.tt Bug 33006: (follow-up) Add spans for translatability 2023-04-12 11:22:10 -03:00
authorised_values.tt Bug 33104: DB changes 2023-05-05 10:18:45 -03:00
authtypes.tt Bug 33007: Use template wrapper for breadcrumbs: Administration part 2 2023-04-12 11:22:11 -03:00
background_jobs.tt Bug 33579: Typo: record record 2023-04-24 10:43:36 -03:00
biblio_framework.tt Bug 33007: Use template wrapper for breadcrumbs: Administration part 2 2023-04-12 11:22:11 -03:00
branch_transfer_limits.tt Bug 33007: Use template wrapper for breadcrumbs: Administration part 2 2023-04-12 11:22:11 -03:00
branches.tt Bug 33007: Use template wrapper for breadcrumbs: Administration part 2 2023-04-12 11:22:11 -03:00
cash_registers.tt Bug 33007: Use template wrapper for breadcrumbs: Administration part 2 2023-04-12 11:22:11 -03:00
categories.tt Bug 33007: Use template wrapper for breadcrumbs: Administration part 2 2023-04-12 11:22:11 -03:00
checkmarc.tt Bug 33007: Use template wrapper for breadcrumbs: Administration part 2 2023-04-12 11:22:11 -03:00
cities.tt Bug 33077: Improve ease of translating template title tags 2023-04-12 11:43:22 -03:00
classsources.tt Bug 33007: Use template wrapper for breadcrumbs: Administration part 2 2023-04-12 11:22:11 -03:00
clone-rules.tt Bug 33068: Use template wrapper for breadcrumbs: Administration part 3 2023-03-06 14:45:14 -03:00
columns_settings.tt Bug 33068: Use template wrapper for breadcrumbs: Administration part 3 2023-03-06 14:45:14 -03:00
credit_types.tt Bug 26403: Use accounts include in account management pages 2023-05-10 15:26:15 -03:00
curbside_pickup.tt Bug 33068: Use template wrapper for breadcrumbs: Administration part 3 2023-03-06 14:45:14 -03:00
currency.tt Bug 33068: Use template wrapper for breadcrumbs: Administration part 3 2023-03-06 14:45:14 -03:00
debit_types.tt Bug 26403: Use accounts include in account management pages 2023-05-10 15:26:15 -03:00
desks.tt Bug 33151: Improve translation of string in cities.tt and desks.tt 2023-03-17 09:59:13 -03:00
didyoumean.tt Bug 33068: Use template wrapper for breadcrumbs: Administration part 3 2023-03-06 14:45:14 -03:00
edi_accounts.tt Bug 33076: (QA follow-up) Update context hint to "EDIFACT message QUOTE" 2023-03-20 09:39:39 -03:00
edi_ean_accounts.tt Bug 33111: Use template wrapper for breadcrumbs: Administration part 4 2023-04-12 11:43:22 -03:00
identity_provider_domains.tt Bug 33699: Typo in identity_provider_domains.tt (presedence) 2023-05-12 11:22:40 -03:00
identity_providers.tt Bug 33111: (QA follow-up) Add more context to breadcrumb parts for easier translation 2023-04-12 11:43:23 -03:00
item_circulation_alerts.tt Bug 33154: Tab WRAPPER follow-up: label text must be translatable 2023-04-13 11:47:54 -03:00
items_search_field.tt Bug 33111: (QA follow-up) Add more context to breadcrumb parts for easier translation 2023-04-12 11:43:23 -03:00
items_search_fields.tt Bug 33111: Use template wrapper for breadcrumbs: Administration part 4 2023-04-12 11:43:22 -03:00
itemtypes.tt Bug 33111: Use template wrapper for breadcrumbs: Administration part 4 2023-04-12 11:43:22 -03:00
koha2marclinks.tt Bug 33111: Use template wrapper for breadcrumbs: Administration part 4 2023-04-12 11:43:22 -03:00
library_groups.tt Bug 33111: Use template wrapper for breadcrumbs: Administration part 4 2023-04-12 11:43:22 -03:00
localization.tt
marc-overlay-rules.tt Bug 33335: (QA follow-up) Polishing and comments 2023-05-12 17:50:09 -03:00
marc_subfields_structure.tt Bug 33111: Use template wrapper for breadcrumbs: Administration part 4 2023-04-12 11:43:22 -03:00
marctagstructure.tt Bug 33127: Use template wrapper for breadcrumbs: Administration part 5 2023-04-21 10:36:24 -03:00
matching-rules.tt Bug 33111: Use template wrapper for breadcrumbs: Administration part 4 2023-04-12 11:43:22 -03:00
oai_set_mappings.tt Bug 33127: Use template wrapper for breadcrumbs: Administration part 5 2023-04-21 10:36:24 -03:00
oai_sets.tt Bug 31405: Set focus for cursor to setSpec input when adding a new OAI set 2023-05-05 12:13:56 -03:00
overdrive.tt Bug 33127: Use template wrapper for breadcrumbs: Administration part 5 2023-04-21 10:36:24 -03:00
patron-attr-types.tt Bug 33127: Use template wrapper for breadcrumbs: Administration part 5 2023-04-21 10:36:24 -03:00
preferences.tt Bug 33127: Use template wrapper for breadcrumbs: Administration part 5 2023-04-21 10:36:24 -03:00
restrictions.tt Bug 33549: Improve wording of dialog messages 2023-04-24 10:43:41 -03:00
search_filters.tt Bug 33127: Use template wrapper for breadcrumbs: Administration part 5 2023-04-21 10:36:24 -03:00
share_content.tt Bug 33129: Use template wrapper for breadcrumbs: Administration part 6 2023-04-14 15:39:39 -03:00
smart-rules.tt Bug 33129: Use template wrapper for breadcrumbs: Administration part 6 2023-04-14 15:39:39 -03:00
sms_providers.tt Bug 33129: Use template wrapper for breadcrumbs: Administration part 6 2023-04-14 15:39:39 -03:00
smtp_servers.tt Bug 33129: Use template wrapper for breadcrumbs: Administration part 6 2023-04-14 15:39:39 -03:00
sru_modmapping.tt
sru_modmapping_auth.tt Bug 26433: Add Control number to SRU field configuration 2023-03-31 12:06:51 +02:00
systempreferences.tt Bug 33129: Use template wrapper for breadcrumbs: Administration part 6 2023-04-14 15:39:39 -03:00
transfer_limits.tt Bug 33129: Use template wrapper for breadcrumbs: Administration part 6 2023-04-14 15:39:39 -03:00
transport-cost-matrix.tt Bug 33129: Use template wrapper for breadcrumbs: Administration part 6 2023-04-14 15:39:39 -03:00
usage_statistics.tt Bug 33129: Use template wrapper for breadcrumbs: Administration part 6 2023-04-14 15:39:39 -03:00
z3950servers.tt Bug 31410: Set focus for cursor to Server name when adding a new Z39.50/SRU server 2023-05-05 12:13:55 -03:00