@@ -96,50 +96,9 @@
|
||||
<td colspan="4" class="section-header"><strong>变更信息</strong></td>
|
||||
</tr>
|
||||
|
||||
<!-- 合同终止专属字段 -->
|
||||
<t t-if="doc.renewal_type == 'early_checkout'">
|
||||
<tr>
|
||||
<td class="header-cell"><strong>退租日期</strong></td>
|
||||
<td><span t-esc="doc.early_quitting_date and doc.early_quitting_date.strftime('%Y-%m-%d') or ''"/></td>
|
||||
<td class="header-cell"><strong>退租原因</strong></td>
|
||||
<td>
|
||||
<t t-if="doc.early_reason == 'normal'">正常退租</t>
|
||||
<t t-elif="doc.early_reason == 'agree'">协商一致</t>
|
||||
<t t-elif="doc.early_reason == 'settle'">违约结清</t>
|
||||
<t t-elif="doc.early_reason == 'other'">其他</t>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="header-cell"><strong>原押金</strong></td>
|
||||
<td><span t-esc="'%.2f' % doc.deposit if doc.deposit else '0.00'"/></td>
|
||||
<td class="header-cell"><strong>押金处理方式</strong></td>
|
||||
<td>
|
||||
<t t-if="doc.deposit_treatment == 'refund'">全额退押</t>
|
||||
<t t-elif="doc.deposit_treatment == 'part_refund'">部分退租</t>
|
||||
<t t-elif="doc.deposit_treatment == 'no_refund'">全额没收</t>
|
||||
</td>
|
||||
</tr>
|
||||
<t t-if="doc.deposit_treatment == 'part_refund'">
|
||||
<tr>
|
||||
<td class="header-cell"><strong>退款金额</strong></td>
|
||||
<td colspan="3">
|
||||
<span t-esc="'%.2f' % doc.refund_amount if doc.refund_amount else '0.00'"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="header-cell"><strong>应收金额</strong></td>
|
||||
<td colspan="3">
|
||||
<span t-esc="'%.2f' % doc.total_receivables if doc.total_receivables else '0.00'"/>
|
||||
</td>
|
||||
</tr>
|
||||
</t>
|
||||
<t t-if="doc.early_explain">
|
||||
<tr>
|
||||
<td class="header-cell"><strong>退租说明</strong></td>
|
||||
<td colspan="3" class="text-left"><span t-esc="doc.early_explain or ''"/></td>
|
||||
</tr>
|
||||
</t>
|
||||
</t>
|
||||
<!-- 合同终止专属字段:相关字段已迁移至「租户退租表」(property.tenant.checkout),
|
||||
本模型不再持有 early_* / deposit* / receivables_ids 字段,此处不再渲染,
|
||||
历史 early_checkout 单据请到「租户退租表」打印。 -->
|
||||
|
||||
<!-- 承租方变更专属字段 -->
|
||||
<t t-if="doc.renewal_type == 'lease'">
|
||||
@@ -190,26 +149,7 @@
|
||||
</tr>
|
||||
</t>
|
||||
|
||||
<!-- 应收明细(合同终止时显示) -->
|
||||
<t t-if="doc.renewal_type == 'early_checkout' and doc.receivables_ids">
|
||||
<tr>
|
||||
<td colspan="4" class="section-header"><strong>应收明细</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="header-cell"><strong>类型</strong></td>
|
||||
<td class="header-cell"><strong>应收日期</strong></td>
|
||||
<td class="header-cell"><strong>金额</strong></td>
|
||||
<td class="header-cell"><strong>减免金额</strong></td>
|
||||
</tr>
|
||||
<t t-foreach="doc.receivables_ids" t-as="line">
|
||||
<tr>
|
||||
<td><span t-esc="line.management_type_id.name or ''"/></td>
|
||||
<td><span t-esc="line.due_date and line.due_date.strftime('%Y-%m-%d') or ''"/></td>
|
||||
<td><span t-esc="'%.2f' % line.original_amount if line.original_amount else '0.00'"/></td>
|
||||
<td><span t-esc="'%.2f' % line.reduction_amount if line.reduction_amount else '0.00'"/></td>
|
||||
</tr>
|
||||
</t>
|
||||
</t>
|
||||
<!-- 应收明细:随「合同终止」业务迁移至「租户退租表」,本模型已无 receivables_ids 字段 -->
|
||||
|
||||
<!-- 租金明细(延长租期时显示) -->
|
||||
<t t-if="doc.renewal_type == 'extend' and doc.breakdown_ids">
|
||||
|
||||
Reference in New Issue
Block a user