|
Lines 1171-1182
Link Here
|
| 1171 |
if(invoiceincgst == "1") { |
1171 |
if(invoiceincgst == "1") { |
| 1172 |
rrp_txt = Number(row.rrp_tax_included).format_price()+'<span class="hint"> '+ADJ_TAX_INC.format(active_currency)+"</span>"; |
1172 |
rrp_txt = Number(row.rrp_tax_included).format_price()+'<span class="hint"> '+ADJ_TAX_INC.format(active_currency)+"</span>"; |
| 1173 |
ecost_txt = Number(row.ecost_tax_included).format_price()+'<span class="hint"> '+TAX_INC+"</span>"; |
1173 |
ecost_txt = Number(row.ecost_tax_included).format_price()+'<span class="hint"> '+TAX_INC+"</span>"; |
| 1174 |
$("#unitprice").val(Number(row.ecost_tax_included).format_price()); |
1174 |
$("#unitprice").val(row.unit_price_tax_included > 0 ? Number(row.unit_price_tax_included).format_price() : Number(row.ecost_tax_included).format_price()); |
| 1175 |
$("#unitprice_hint").html(TAX_INC); |
1175 |
$("#unitprice_hint").html(TAX_INC); |
| 1176 |
} else { |
1176 |
} else { |
| 1177 |
rrp_txt = Number(row.rrp_tax_excluded).format_price()+'<span class="hint"> '+ADJ_TAX_EXC.format(active_currency)+"</span>"; |
1177 |
rrp_txt = Number(row.rrp_tax_excluded).format_price()+'<span class="hint"> '+ADJ_TAX_EXC.format(active_currency)+"</span>"; |
| 1178 |
ecost_txt = Number(row.ecost_tax_excluded).format_price()+'<span class="hint"> '+TAX_EXC+"</span>"; |
1178 |
ecost_txt = Number(row.ecost_tax_excluded).format_price()+'<span class="hint"> '+TAX_EXC+"</span>"; |
| 1179 |
$("#unitprice").val(Number(row.ecost_tax_excluded).format_price()); |
1179 |
$("#unitprice").val(row.unit_price_tax_excluded > 0 ? Number(row.unit_price_tax_excluded).format_price() : Number(row.ecost_tax_excluded).format_price()); |
| 1180 |
$("#unitprice_hint").html(TAX_EXC); |
1180 |
$("#unitprice_hint").html(TAX_EXC); |
| 1181 |
} |
1181 |
} |
| 1182 |
$("#rrp").html(rrp_txt); |
1182 |
$("#rrp").html(rrp_txt); |
| 1183 |
- |
|
|