Koha/koha-tmpl/intranet-tmpl/prog/en/modules/acqui
Slava Shishkin 9110547de0
Bug 35004: Set row.quantity_received to 1 if row.quantity_received is empty and we're in 'cataloguing' mode
Before the code changes only field value was set to 1,
but "row.quantity_received" still had an undefined value.
After correction row.quantity_received set to 1 if it is empty,
but only when effective_create_items == 'cataloguing',
and after that its value assigned to the form field.

To test:
1. Add a new basket.
2. Create an order line
3. Receive shipment and create an invoice
4. Start receiving your order:
    Verify:
    - Quantity ordered: X
    - Quantity received: 1 (pre-filled, don't touch or change it)
5. Click "Confirm"
6. Observe the Receive error popup: "Order ZZZ: No quantity to receive
   set. No items will be created."
7. Verify that "Order receive" was not happen (received orders remains
   empty)
8. Apply the patch and make sure your order is received correctly after
   step 5.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-11-03 12:04:43 -03:00
..
csv
acqui-home.tt Bug 6419: Add StaffAuthoritiesHome block to additional contents 2023-10-18 15:41:29 -03:00
addorder.tt
addorderiso2709.tt Bug 22712: Make 'Show inactive funds' button on addorderiso2907.pl work for item budgets 2023-10-30 09:02:18 -03:00
ajax.tt
basket.tt Bug 33664: (follow-up) Move check for 'received' to include Modify link 2023-11-01 17:23:13 -03:00
basketgroup.tt
basketheader.tt
booksellers.tt
cancelorder.tt
duplicate_orders.tt
edi_ean.tt
edifactmsgs.tt
edimsg.tt
histsearch.tt
invoice-files.tt
invoice.tt
invoices.tt
lateorders.tt Bug 12732: (follow-up) Use data-order instead of data-sort 2023-10-20 11:03:03 -03:00
moddeliverydate.tt
modordernotes.tt
neworderempty.tt Bug 34824: Added missing colon to 'Title' 2023-10-20 17:38:30 -03:00
neworderempty_duplicate.tt
newordersubscription.tt
newordersuggestion.tt
ordered.tt Bug 31631: Optionally use tax-exclusive values for calculating fund values 2023-10-18 15:41:35 -03:00
orderreceive.tt Bug 35004: Set row.quantity_received to 1 if row.quantity_received is empty and we're in 'cataloguing' mode 2023-11-03 12:04:43 -03:00
parcel.tt Bug 34834: Add translation context for "Order" 2023-11-01 17:23:20 -03:00
parcels.tt
showorder.tt
spent.tt Bug 31631: Optionally use tax-exclusive values for calculating fund values 2023-10-18 15:41:35 -03:00
supplier.tt Bug 34831: Add input types "tel", "email" and "url" to vendor edit form 2023-10-20 11:43:04 -03:00
transferorder.tt
uncertainprice.tt
vendor_issues.tt
z3950_search.tt Bug 34834: Add translation context for "Order" 2023-11-01 17:23:20 -03:00