https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15184

--- Comment #10 from Jonathan Druart <jonathan.dru...@bugs.koha-community.org> 
---
This new feature is ready to be tested!

I have finally change my mind about how this feature is implemented, I hope it
will make sense to you too.

As we already have a "add to basket" popup that contain the different ways to
add orders to a basket it sounded natural to reuse it.

How does it look:
Click on the add to basket link
https://snag.gy/InG6NH.jpg

Click on "From existing orders (copy)"
https://snag.gy/1sgGw3.jpg

Perform a search
https://snag.gy/hJWbDd.jpg

You can select some orders and redo another search (See "Refine search [+]" to
expand the filters form).
If a new search is done, the selected orders will stay selected even if they
are not returned by the first request. They are put at the bottom (tfoot) of
the table.
https://snag.gy/4ojfHk.jpg

When your selection is done, go to the next screen, to set some default values
for these new orders. So far you can set a currency, fund, internal and vendor
notes, as well as the two statistic fields. We have here the same form as when
adding order from a staged file. We could add more if needed.
There are also checkboxes in front of each field to copy the value from the
existing order. If the checkbox is not ticked and that the input is empty, the
value will be emptied.
https://snag.gy/rDUH2u.jpg

When you are done, submit the form.
The next screen will display the new orders that have been created and attached
to the basket.
https://snag.gy/5MPqIH.jpg


What happened exactly?
The following value of aqorders have been set to default or null:
ordernumber (AI), received_on, datereceived, datecancellationprinted,
cancellationreason, purchaseordernumber, claims_count, claimed_date,
parent_ordernumber

placed_on and entrydate has been set to today

orderstatus has been set to 'new'
quantityreceived is 0

If items was attached to the order, new ones have been created with the exact
same values (expect for barcode that has been removed to avoid collision)

(Q) What about created_by? Should it be copied or set to the logged in user?

(Q) What about users that are on receiving? So far nothing is done (not copied)

(Q) What other fields do we want to batch edit before the duplication is done?

What is still to be done:
- Polish the interface a bit (any suggestions?)
- Add tests for the two new methods added to Koha::Acquisition::Order
(add_items and duplicate_to)

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to