<% if (!material.material_tax && !old_had_tax) { %>
                        
                            
                                
                                    |  | 信息价 | 价格指数 | 
|---|
                                    | 本期金额 | 截止本期金额 | 本期金额 | 截止本期金额 | 
|---|
                                    | 材料价差费用 | <%= material.m_tp !== null ? ctx.helper.round(material.m_tp, material.decimal.tp) : null %> | <%= material.m_tp !== null || material.pre_tp !== null ? ctx.helper.add(material.pre_tp, ctx.helper.round(material.m_tp, material.decimal.tp)) : null %> | <%= material.ex_tp !== null ? ctx.helper.round(material.ex_tp, material.decimal.tp) : null %> | <%= material.ex_tp !== null || material.ex_pre_tp !== null ? ctx.helper.add(material.ex_pre_tp, ctx.helper.round(material.ex_tp, material.decimal.tp)) : null %> | 
                                    | 材料价差费用(含建筑税) | <%= material.m_tp !== null ? ctx.helper.round(ctx.helper.mul(material.m_tp, 1+material.rate/100), material.decimal.tp) : null %> | <%= material.m_tp !== null || pre_tp_hs !== null ? ctx.helper.add(pre_tp_hs, ctx.helper.round(ctx.helper.mul(material.m_tp, 1+material.rate/100), material.decimal.tp)) : null %> | <%= material.ex_tp !== null ? ctx.helper.round(ctx.helper.mul(material.ex_tp, 1+material.exponent_rate/100), material.decimal.tp) : null %> | <%= material.ex_tp !== null || ex_pre_tp_hs !== null ? ctx.helper.add(ex_pre_tp_hs, ctx.helper.round(ctx.helper.mul(material.ex_tp, 1+material.exponent_rate/100), material.decimal.tp)) : null %> | 
                                
                             
                         
                    <% } else { %>
                        
                            
                                
                                    |  | 信息价 | 价格指数 | 
|---|
                                    | 本期金额 | 截止本期金额 | 本期金额 | 截止本期金额 | 
|---|
                                    | 材料价差费用 | <%= material.m_tp !== null ? ctx.helper.round(material.m_tp, material.decimal.tp) : null %> | <%= material.m_tp !== null || material.pre_tp !== null ? ctx.helper.add(material.pre_tp, ctx.helper.round(material.m_tp, material.decimal.tp)) : null %> | <%= material.ex_tp !== null ? ctx.helper.round(material.ex_tp, material.decimal.tp) : null %> | <%= material.ex_tp !== null || material.ex_pre_tp !== null ? ctx.helper.add(material.ex_pre_tp, ctx.helper.round(material.ex_tp, material.decimal.tp)) : null %> | 
                                    
                                        
                                        
                                        
                                        
                                    
                                    | 材料价差费用(含建筑税) | <%= !material.material_tax ? (material.m_tp !== null ? ctx.helper.round(ctx.helper.mul(material.m_tp, 1+material.rate/100), material.decimal.tp) : null) : '-' %> | <%= !material.material_tax ? (material.m_tp !== null || pre_tp_hs !== null ? ctx.helper.add(pre_tp_hs, ctx.helper.round(ctx.helper.mul(material.m_tp, 1+material.rate/100), material.decimal.tp)) : null) : pre_tp_hs !== null ? pre_tp_hs : '-' %> | <%= material.ex_tp !== null ? ctx.helper.round(ctx.helper.mul(material.ex_tp, 1+material.exponent_rate/100), material.decimal.tp) : null %> | <%= material.ex_tp !== null || ex_pre_tp_hs !== null ? ctx.helper.add(ex_pre_tp_hs, ctx.helper.round(ctx.helper.mul(material.ex_tp, 1+material.exponent_rate/100), material.decimal.tp)) : null %> | 
                                
                             
                         
                    <% } %>