summaryrefslogtreecommitdiff
path: root/import_account_move_line.ktr
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-10-09 15:30:59 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-10-09 15:30:59 +0700
commit239b817430af03f9840f7805232491240d40ddf0 (patch)
treee39867e42fe21d433a2ad18159beff6dc75a0813 /import_account_move_line.ktr
parent0676870c358845e2b27abb211d370777d9a6492b (diff)
add filter out_invoice
Diffstat (limited to 'import_account_move_line.ktr')
-rw-r--r--import_account_move_line.ktr5
1 files changed, 4 insertions, 1 deletions
diff --git a/import_account_move_line.ktr b/import_account_move_line.ktr
index 383d05f..71fd501 100644
--- a/import_account_move_line.ktr
+++ b/import_account_move_line.ktr
@@ -889,7 +889,10 @@
<schema_name/>
</partitioning>
<connection>erp indoteknik production (localhost)</connection>
- <sql>select * from account_move_line where write_date >= (now() - '5 days'::interval)</sql>
+ <sql>select aml.* from account_move_line aml
+join account_move am on am.id = aml.move_id
+where am.move_type = 'out_invoice'
+and aml.write_date >= (now() - '5 days'::interval)</sql>
<limit>0</limit>
<lookup/>
<execute_each_row>N</execute_each_row>