chore: update automated cash entry execution time to 12:00 PM WIB (05:00 AM UTC)
This commit is contained in:
parent
bd8af2382a
commit
70b06f02d7
@ -4,7 +4,7 @@ Account Shared Bank Cash Auto Entry
|
||||
This module automatically creates and posts cash centralization entries between branch companies and the parent company based on the net cash movement of the previous day.
|
||||
|
||||
Key Features:
|
||||
* Run automatically every day at 10:00 AM WIB (03:00 AM UTC).
|
||||
* Run automatically every day at 12:00 PM WIB (05:00 AM UTC).
|
||||
* Calculates net cash balance of the default cash account (111103) from the previous day.
|
||||
* Accounts for vendor payments (from the vendor_payment_misc_auto_entry module) and other cash movements.
|
||||
* Automatically converts currencies if the parent and branch company currencies are different.
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
'name': 'Account Shared Bank Cash Auto Entry',
|
||||
'version': '1.0',
|
||||
'category': 'Accounting',
|
||||
'summary': 'Automatically generate cash centralization journal entries next day at 10:00 AM WIB',
|
||||
'summary': 'Automatically generate cash centralization journal entries next day at 12:00 PM WIB',
|
||||
'author': 'Suherdy Yacob',
|
||||
'depends': ['account_shared_bank_cash'],
|
||||
'data': [
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
<field name="code">model._cron_create_cash_intercompany_entries()</field>
|
||||
<field name="interval_number">1</field>
|
||||
<field name="interval_type">days</field>
|
||||
<field name="nextcall" eval="(datetime.now() + timedelta(days=1)).strftime('%Y-%m-%d 03:00:00')"/>
|
||||
<field name="nextcall" eval="(datetime.now() + timedelta(days=1)).strftime('%Y-%m-%d 05:00:00')"/>
|
||||
<field name="active" eval="True"/>
|
||||
<field name="user_id" ref="base.user_root"/>
|
||||
</record>
|
||||
|
||||
@ -14,7 +14,7 @@ class AccountJournal(models.Model):
|
||||
@api.model
|
||||
def _cron_create_cash_intercompany_entries(self, target_date=None, journal_ids=None):
|
||||
"""Cron action to automatically generate cash centralization entries.
|
||||
Runs daily at 10:00 AM WIB (03:00 AM UTC) to process the previous day's net cash movements.
|
||||
Runs daily at 12:00 PM WIB (05:00 AM UTC) to process the previous day's net cash movements.
|
||||
"""
|
||||
# Determine the target date (previous day in WIB by default)
|
||||
if not target_date:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user