summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>