Bugzilla – Attachment 151629 Details for
Bug 33784
Save clicks on single order receive
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33784: Don't display the multi receive form for single receive
Bug-33784-Dont-display-the-multi-receive-form-for-.patch (text/plain), 2.50 KB, created by
Jonathan Druart
on 2023-05-24 13:40:48 UTC
(
hide
)
Description:
Bug 33784: Don't display the multi receive form for single receive
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-05-24 13:40:48 UTC
Size:
2.50 KB
patch
obsolete
>From 025c56ed9bfaf6b2e0ad85dddebd92d99c51f518 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 23 May 2023 10:02:39 +0200 >Subject: [PATCH] Bug 33784: Don't display the multi receive form for single > receive > >With bug 8179, a new step was added when receiving a single item. >This extra step is not useful and adds clicks for the staff member who is receiving orders. > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > .../prog/en/modules/acqui/orderreceive.tt | 12 ++++++++++-- > 1 file changed, 10 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >index a2281a6fa53..7bbffea00be 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >@@ -621,10 +621,15 @@ > "searchable": false, > "orderable": false, > "render": function(data, type, row, meta) { >- return '<a class="btn btn-default btn-xs" data-toggle="modal" href="#order_edit" data-row="'+meta.row+'" class="order_edit_toggle" role="button"><i class="fa fa-pencil" aria-hidden="true"></i> '+EDIT+'</a>'; >+ return '<a class="btn btn-default btn-xs order_edit_toggle" data-toggle="modal" href="#order_edit" data-row="'+meta.row+'" role="button"><i class="fa fa-pencil" aria-hidden="true"></i> '+EDIT+'</a>'; > } > } >- ] >+ ], >+ [% IF multiple_orders.split(',').size == 1 %] >+ "drawCallback": function( settings ) { >+ $(this).find("tbody tr td:last-child a.order_edit_toggle").click(); >+ }, >+ [% END %] > }; > var orders_table = $("#multiple_orders").kohaTable(options); > var api = orders_table.api(); >@@ -1293,6 +1298,9 @@ > var saved_rows = save_row(); > if(Object.keys(saved_rows).length) $('.save').prop('disabled', false); > $("#order_edit").modal('hide'); >+ [% IF multiple_orders.split(',').size == 1 %] >+ $(".save").click(); >+ [% END %] > }) > > $("#order_edit").on("show.bs.modal", function (event) { >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33784
:
151552
|
151626
|
151627
|
151628
| 151629 |
151630