|
@@ -134,7 +134,7 @@
|
|
|
<td class="text-center"><%= material.ex_tp !== null ? ctx.helper.round(material.ex_tp, material.exponent_decimal.tp) : null %></td>
|
|
<td class="text-center"><%= material.ex_tp !== null ? ctx.helper.round(material.ex_tp, material.exponent_decimal.tp) : null %></td>
|
|
|
<td class="text-center"><%= material.ex_tax_tp !== null ? ctx.helper.round(material.ex_tax_tp, material.exponent_decimal.tp) : null %></td>
|
|
<td class="text-center"><%= material.ex_tax_tp !== null ? ctx.helper.round(material.ex_tax_tp, material.exponent_decimal.tp) : null %></td>
|
|
|
<td class="text-center"><%= material.ex_tp !== null || material.ex_pre_tp !== null ? ctx.helper.add(ctx.helper.round(material.ex_tp, material.exponent_decimal.tp), material.ex_pre_tp) : null %></td>
|
|
<td class="text-center"><%= material.ex_tp !== null || material.ex_pre_tp !== null ? ctx.helper.add(ctx.helper.round(material.ex_tp, material.exponent_decimal.tp), material.ex_pre_tp) : null %></td>
|
|
|
- <td class="text-center"><%= material.ex_tax_tp !== null || ex_pre_tp_hs !== null ? ctx.helper.add(ex_pre_tp_hs, ctx.helper.round(material.ex_tax_tp, material.exponent_decimal.tp)) : null %></td>
|
|
|
|
|
|
|
+ <td class="text-center"><%= material.ex_tax_tp !== null || material.ex_tax_pre_tp !== null ? ctx.helper.add(material.ex_tax_pre_tp, ctx.helper.round(material.ex_tax_tp, material.exponent_decimal.tp)) : null %></td>
|
|
|
</tr>
|
|
</tr>
|
|
|
<% } %>
|
|
<% } %>
|
|
|
<tr id="total_set">
|
|
<tr id="total_set">
|
|
@@ -142,7 +142,7 @@
|
|
|
<td class="text-center"><%= material.ex_tp !== null ? ctx.helper.round(material.ex_tp, material.exponent_decimal.tp) : null %></td>
|
|
<td class="text-center"><%= material.ex_tp !== null ? ctx.helper.round(material.ex_tp, material.exponent_decimal.tp) : null %></td>
|
|
|
<td class="text-center"><%= material.ex_tax_tp !== null ? ctx.helper.round(material.ex_tax_tp, material.exponent_decimal.tp) : null %></td>
|
|
<td class="text-center"><%= material.ex_tax_tp !== null ? ctx.helper.round(material.ex_tax_tp, material.exponent_decimal.tp) : null %></td>
|
|
|
<td class="text-center"><%= material.ex_tp !== null || material.ex_pre_tp !== null ? ctx.helper.add(ctx.helper.round(material.ex_tp, material.exponent_decimal.tp), material.ex_pre_tp) : null %></td>
|
|
<td class="text-center"><%= material.ex_tp !== null || material.ex_pre_tp !== null ? ctx.helper.add(ctx.helper.round(material.ex_tp, material.exponent_decimal.tp), material.ex_pre_tp) : null %></td>
|
|
|
- <td class="text-center"><%= material.ex_tax_tp !== null || ex_pre_tp_hs !== null ? ctx.helper.add(ex_pre_tp_hs, ctx.helper.round(material.ex_tax_tp, material.exponent_decimal.tp)) : null %></td>
|
|
|
|
|
|
|
+ <td class="text-center"><%= material.ex_tax_tp !== null || material.ex_tax_pre_tp !== null ? ctx.helper.add(material.ex_tax_pre_tp, ctx.helper.round(material.ex_tax_tp, material.exponent_decimal.tp)) : null %></td>
|
|
|
</tr>
|
|
</tr>
|
|
|
</table>
|
|
</table>
|
|
|
</div>
|
|
</div>
|
|
@@ -210,7 +210,7 @@
|
|
|
let ex_tp = <%= material.ex_tp !== null ? material.ex_tp : 0 %>;
|
|
let ex_tp = <%= material.ex_tp !== null ? material.ex_tp : 0 %>;
|
|
|
let ex_tax_tp = <%= material.ex_tax_tp !== null ? material.ex_tax_tp : 0 %>;
|
|
let ex_tax_tp = <%= material.ex_tax_tp !== null ? material.ex_tax_tp : 0 %>;
|
|
|
const ex_pre_tp = <%= material.ex_pre_tp !== null ? material.ex_pre_tp : 0 %>;
|
|
const ex_pre_tp = <%= material.ex_pre_tp !== null ? material.ex_pre_tp : 0 %>;
|
|
|
- const ex_pre_tp_hs = <%= ex_pre_tp_hs !== null ? ex_pre_tp_hs : 0 %>;
|
|
|
|
|
|
|
+ const ex_pre_tp_hs = <%= material.ex_tax_pre_tp !== null ? material.ex_tax_pre_tp : 0 %>;
|
|
|
const materialType = JSON.parse('<%- JSON.stringify(materialType) %>');
|
|
const materialType = JSON.parse('<%- JSON.stringify(materialType) %>');
|
|
|
let ex_calc = JSON.parse('<%- JSON.stringify(ex_calc) %>');
|
|
let ex_calc = JSON.parse('<%- JSON.stringify(ex_calc) %>');
|
|
|
let ex_calcList = [];
|
|
let ex_calcList = [];
|