Bugzilla – Attachment 151789 Details for
Bug 33783
Populate actual cost with estimated cost if actual cost not set when receiving (bug 8179 follow-up)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33783: Make sure the value is populated on load time
Bug-33783-Make-sure-the-value-is-populated-on-load.patch (text/plain), 2.00 KB, created by
Tomás Cohen Arazi (tcohen)
on 2023-05-29 19:18:27 UTC
(
hide
)
Description:
Bug 33783: Make sure the value is populated on load time
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2023-05-29 19:18:27 UTC
Size:
2.00 KB
patch
obsolete
>From b3df32fcff6b1fb56dbd05c684e6918cbd3a8a86 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 29 May 2023 16:14:56 -0300 >Subject: [PATCH] Bug 33783: Make sure the value is populated on load time > >The original patch makes the form set the right values in the order row >(before storing it) but misses to load the right value on page load, >which is still a regression. This patch solves that. > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt | 4 ++-- > 1 file changed, 2 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 5c39f380d34..3100d18d9f3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >@@ -1161,12 +1161,12 @@ > if(invoiceincgst == "1") { > rrp_txt = Number(row.rrp_tax_included).format_price()+'<span class="hint"> '+ADJ_TAX_INC.format(active_currency)+"</span>"; > ecost_txt = Number(row.ecost_tax_included).format_price()+'<span class="hint"> '+TAX_INC+"</span>"; >- $("#unitprice").val(row.unit_price_tax_included); >+ $("#unitprice").val(Number(row.ecost_tax_included).format_price()); > $("#unitprice_hint").html(TAX_INC); > } else { > rrp_txt = Number(row.rrp_tax_excluded).format_price()+'<span class="hint"> '+ADJ_TAX_EXC.format(active_currency)+"</span>"; > ecost_txt = Number(row.ecost_tax_excluded).format_price()+'<span class="hint"> '+TAX_EXC+"</span>"; >- $("#unitprice").val(row.unit_price_tax_excluded); >+ $("#unitprice").val(Number(row.ecost_tax_excluded).format_price()); > $("#unitprice_hint").html(TAX_EXC); > } > $("#rrp").html(rrp_txt); >-- >2.40.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 33783
:
151469
|
151758
|
151761
|
151789
|
151794
|
151795
|
151817