View | Details | Raw Unified | Return to bug 33783
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt (-3 / +4 lines)
Lines 1135-1146 Link Here
1135
                if(invoiceincgst == "1") {
1135
                if(invoiceincgst == "1") {
1136
                    rrp_txt = Number(row.rrp_tax_included).format_price()+'<span class="hint"> '+ADJ_TAX_INC.format(active_currency)+"</span>";
1136
                    rrp_txt = Number(row.rrp_tax_included).format_price()+'<span class="hint"> '+ADJ_TAX_INC.format(active_currency)+"</span>";
1137
                    ecost_txt = Number(row.ecost_tax_included).format_price()+'<span class="hint"> '+TAX_INC+"</span>";
1137
                    ecost_txt = Number(row.ecost_tax_included).format_price()+'<span class="hint"> '+TAX_INC+"</span>";
1138
                    $("#unitprice").val(row.unit_price_tax_included);
1138
                    var init_unitprice = row.unit_price_tax_included > 0 ? row.unit_price_tax_included : row.ecost_tax_included
1139
                    $("#unitprice").val(init_unitprice);
1139
                    $("#unitprice_hint").html(TAX_INC);
1140
                    $("#unitprice_hint").html(TAX_INC);
1140
                } else {
1141
                } else {
1141
                    rrp_txt = Number(row.rrp_tax_excluded).format_price()+'<span class="hint"> '+ADJ_TAX_EXC.format(active_currency)+"</span>";
1142
                    rrp_txt = Number(row.rrp_tax_excluded).format_price()+'<span class="hint"> '+ADJ_TAX_EXC.format(active_currency)+"</span>";
1142
                    ecost_txt = Number(row.ecost_tax_excluded).format_price()+'<span class="hint"> '+TAX_EXC+"</span>";
1143
                    ecost_txt = Number(row.ecost_tax_excluded).format_price()+'<span class="hint"> '+TAX_EXC+"</span>";
1143
                    $("#unitprice").val(row.unit_price_tax_excluded);
1144
                    var init_unitprice = row.unit_price_tax_excluded > 0 ? row.unit_price_tax_excluded : row.ecost_tax_excluded
1145
                    $("#unitprice").val(init_unitprice);
1144
                    $("#unitprice_hint").html(TAX_EXC);
1146
                    $("#unitprice_hint").html(TAX_EXC);
1145
                }
1147
                }
1146
                $("#rrp").html(rrp_txt);
1148
                $("#rrp").html(rrp_txt);
1147
- 

Return to bug 33783