|
@@ -89,14 +89,14 @@
|
|
|
<td class="text-center"><%= material.ex_tp !== null || material.ex_pre_tp !== null ? ctx.helper.round(ctx.helper.add(material.ex_pre_tp, material.ex_tp), 2) : null %></td>
|
|
|
</tr>
|
|
|
<tr><td>材料价差费用(含材料税)</td>
|
|
|
- <td class="text-center"><%= material.m_tax_tp !== null ? material.m_tax_tp : null %></td>
|
|
|
- <td class="text-center"><%= material.m_tax_tp !== null || material.tax_pre_tp !== null ? ctx.helper.round(ctx.helper.add(material.tax_pre_tp, material.m_tax_tp), 2) : null %></td>
|
|
|
+ <td class="text-center"><%= material.material_tax ? (material.m_tax_tp !== null ? material.m_tax_tp : null) : '-' %></td>
|
|
|
+ <td class="text-center"><%= material.material_tax ? (material.m_tax_tp !== null || material.m_tax_pre_tp !== null ? ctx.helper.round(ctx.helper.add(material.m_tax_pre_tp, material.m_tax_tp), 2) : null) : material.m_tax_pre_tp %></td>
|
|
|
<td class="text-center">-</td>
|
|
|
<td class="text-center">-</td>
|
|
|
</tr>
|
|
|
<tr id="rate_set"><td>材料价差费用(含建筑税)</td>
|
|
|
- <td class="text-center">-</td>
|
|
|
- <td class="text-center"><%= pre_tp_hs !== null ? pre_tp_hs : '-' %></td>
|
|
|
+ <td class="text-center"><%= !material.material_tax ? (material.m_tp !== null ? ctx.helper.round(ctx.helper.mul(material.m_tp, 1+material.rate/100), 2) : null) : '-' %></td>
|
|
|
+ <td class="text-center"><%= !material.material_tax ? (material.m_tp !== null || pre_tp_hs !== null ? ctx.helper.round(ctx.helper.add(pre_tp_hs, ctx.helper.round(ctx.helper.mul(material.m_tp, 1+material.rate/100), 2)), 2) : null) : pre_tp_hs !== null ? pre_tp_hs : '-' %></td>
|
|
|
<td class="text-center"><%= material.ex_tp !== null ? ctx.helper.round(ctx.helper.mul(material.ex_tp, 1+material.rate/100), 2) : null %></td>
|
|
|
<td class="text-center"><%= material.ex_tp !== null || ex_pre_tp_hs !== null ? ctx.helper.round(ctx.helper.add(ex_pre_tp_hs, ctx.helper.round(ctx.helper.mul(material.ex_tp, 1+material.rate/100), 2)), 2) : null %></td>
|
|
|
</tr>
|