前期欠收
This commit is contained in:
@@ -30,9 +30,9 @@ class PreArrearsReport(models.Model):
|
||||
query_month_start = datetime.datetime.fromisoformat(date_start).date() if date_start else this_month_first
|
||||
query_month_end = datetime.datetime.fromisoformat(date_end).date() if date_end else this_month_first
|
||||
|
||||
# 核心逻辑:due_date <= cutoff_date(查询月及之前的应收)
|
||||
# 核心逻辑:due_date < query_month_start(应收日期在查询月之前,不包含查询月)
|
||||
domain = [
|
||||
('receivable_id.due_date', '<=', cutoff_date),
|
||||
('receivable_id.due_date', '<', query_month_start),
|
||||
('receivable_id.is_invalid', '=', False),
|
||||
]
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="action_property_accounts_receivable_report" model="ir.actions.client">
|
||||
<field name="name">应收账单报表</field>
|
||||
<field name="name">当期应收</field>
|
||||
<field name="tag">receivable_report_client</field>
|
||||
<field name="context">
|
||||
{
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
<menuitem
|
||||
id="menu_property_accounts_receivable_report2"
|
||||
name="应收账单报表"
|
||||
name="当期应收"
|
||||
parent="yuthon_property_income_menu"
|
||||
action="action_property_accounts_receivable_report"
|
||||
sequence="1"
|
||||
|
||||
Reference in New Issue
Block a user