summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-09-25 17:10:40 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-09-25 17:10:40 +0700
commit2b6d84bdf139f8f99ac554dc7b00db2d2df2c079 (patch)
tree83929dec0e13e050c9329526ca4e0ef74994b480
parent3005e40f7d1675403f0ce32807022e297786c1a8 (diff)
add interval
-rw-r--r--import_account_move.ktr2
-rw-r--r--import_account_move_line.ktr2
2 files changed, 2 insertions, 2 deletions
diff --git a/import_account_move.ktr b/import_account_move.ktr
index ebb2fe6..040990d 100644
--- a/import_account_move.ktr
+++ b/import_account_move.ktr
@@ -556,7 +556,7 @@
<schema_name/>
</partitioning>
<connection>erp indoteknik production (localhost)</connection>
- <sql>select * from account_move</sql>
+ <sql>select * from account_move where write_date >= (now() - '5 days'::interval)</sql>
<limit>0</limit>
<lookup/>
<execute_each_row>N</execute_each_row>
diff --git a/import_account_move_line.ktr b/import_account_move_line.ktr
index c5df6d2..6dd6931 100644
--- a/import_account_move_line.ktr
+++ b/import_account_move_line.ktr
@@ -505,7 +505,7 @@
<schema_name/>
</partitioning>
<connection>erp indoteknik local</connection>
- <sql>select * from account_move_line</sql>
+ <sql>select * from account_move_line where write_date >= (now() - '5 days'::interval)</sql>
<limit>0</limit>
<lookup/>
<execute_each_row>N</execute_each_row>