summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2024-05-13 17:35:44 +0700
committerstephanchrst <stephanchrst@gmail.com>2024-05-13 17:35:44 +0700
commit48d9f4c2b6b8e9b60334e1b9f49e27fc9545a0de (patch)
treeed7468004240a5baa1711f17a4443580e2c484d8
parentbadbbd519c83f68a57c65b210000fdc35a00889f (diff)
change import account move onetime
-rw-r--r--import_account_move_line_onetime.ktr2
-rw-r--r--import_account_move_onetime.ktr2
2 files changed, 2 insertions, 2 deletions
diff --git a/import_account_move_line_onetime.ktr b/import_account_move_line_onetime.ktr
index e8af008..3c2471d 100644
--- a/import_account_move_line_onetime.ktr
+++ b/import_account_move_line_onetime.ktr
@@ -892,7 +892,7 @@
<connection>erp indoteknik production (localhost)</connection>
<sql>select aml.* from account_move_line aml
join account_move am on am.id = aml.move_id
-where 1=1
+where to_char(am.date, 'YYYY') = '2024'
--and (am.move_type = 'out_invoice' or am.journal_id = 3)
--and aml.write_date >= (now() - '5 days'::interval)</sql>
<limit>0</limit>
diff --git a/import_account_move_onetime.ktr b/import_account_move_onetime.ktr
index 86a13ab..dcb4a73 100644
--- a/import_account_move_onetime.ktr
+++ b/import_account_move_onetime.ktr
@@ -1021,7 +1021,7 @@
</partitioning>
<connection>erp indoteknik production (localhost)</connection>
<sql>select am.* from account_move am
-where 1=1
+where to_char(am.date, 'YYYY') = '2024'
--and (am.move_type = 'out_invoice' or journal_id = 3)
--and am.write_date >= (now() - '5 days'::interval)</sql>
<limit>0</limit>