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> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
de31d91638
commit
c20921ac1b
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue