From 984ff84af0f042afafc0bfeee76f381d4558d9c6 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Thu, 16 Nov 2023 17:15:42 +0700 Subject: one time import account move --- import_account_move.ktr | 4 ++-- import_account_move_line.ktr | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/import_account_move.ktr b/import_account_move.ktr index b7155fb..a9b4ffe 100644 --- a/import_account_move.ktr +++ b/import_account_move.ktr @@ -1010,8 +1010,8 @@ erp indoteknik production (localhost) select am.* from account_move am -where am.move_type = 'out_invoice' -and am.write_date >= (now() - '5 days'::interval) +where (am.move_type = 'out_invoice' or journal_id = 3) +--and am.write_date >= (now() - '5 days'::interval) 0 N diff --git a/import_account_move_line.ktr b/import_account_move_line.ktr index 71fd501..04082d0 100644 --- a/import_account_move_line.ktr +++ b/import_account_move_line.ktr @@ -891,8 +891,8 @@ erp indoteknik production (localhost) 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) +where (am.move_type = 'out_invoice' or am.journal_id = 3) +--and aml.write_date >= (now() - '5 days'::interval) 0 N -- cgit v1.2.3