Bugzilla – Attachment 151796 Details for
Bug 33863
On receive "change currency" is always checked
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33863: (bug 25655 follow-up) Check "Change currency" only if checked before
Bug-33863-bug-25655-follow-up-Check-Change-currenc.patch (text/plain), 1.58 KB, created by
Jonathan Druart
on 2023-05-30 12:41:58 UTC
(
hide
)
Description:
Bug 33863: (bug 25655 follow-up) Check "Change currency" only if checked before
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-05-30 12:41:58 UTC
Size:
1.58 KB
patch
obsolete
>From ee77babcb38aaf3fd04fc3d8a791f1464f24f66c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 30 May 2023 14:37:33 +0200 >Subject: [PATCH] Bug 33863: (bug 25655 follow-up) Check "Change currency" only > if checked before > >We should not check "Change currency" if it has not modified in the >original order. > >Test plan: >Create an order with 3+ items >Receive 1 item, don't check "change currency" >Receive an other item >=> "Change currency" is not checked >Check "Change currency", modify the currency and the price >Receive a third item >=> Change currency is checked, invoice currency and price are set >correctly to the previous values >--- > koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >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 3100d18d9f3..0a5c8267b05 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >@@ -1229,7 +1229,7 @@ > $('#modal-order-main #items-panel').removeClass('show').addClass('hide'); > } > } >- if(row.invoice_unit_price) { >+ if(row.invoice_currency && row.invoice_currency != active_currency) { > $("#select_currency").show(); > $("#unitprice").prop("readonly", true); > $("input[name='change_currency']").prop('checked', true); >-- >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 33863
:
151796
|
153043
|
153306
|
153341
|
153342
|
153343
|
153402
|
153403
|
153404