summaryrefslogtreecommitdiff
path: root/delete_useless_data_account_move.ktr
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2025-10-22 13:34:10 +0700
committerstephanchrst <stephanchrst@gmail.com>2025-10-22 13:34:10 +0700
commitb76065d255794323fb2f02afe723f63c0d57c7ad (patch)
tree079e8b67f694e505cbf80c854039181d41bcbb6d /delete_useless_data_account_move.ktr
parentaf33dac188fe74e189246c0c9d1c0c9df93b3bc2 (diff)
delete useless data and update diff data
Diffstat (limited to 'delete_useless_data_account_move.ktr')
-rw-r--r--delete_useless_data_account_move.ktr70
1 files changed, 50 insertions, 20 deletions
diff --git a/delete_useless_data_account_move.ktr b/delete_useless_data_account_move.ktr
index 54725ad..667f311 100644
--- a/delete_useless_data_account_move.ktr
+++ b/delete_useless_data_account_move.ktr
@@ -436,14 +436,14 @@
<notepads>
</notepads>
<connection>
- <name>dw bi indoteknik</name>
+ <name>dw bi indoteknik (localhost)</name>
<server>localhost</server>
<type>POSTGRESQL</type>
<access>Native</access>
<database>dw_bi_indoteknik</database>
- <port>5703</port>
- <username>metabase</username>
- <password>Encrypted 2be98dfba28d7bf86853c9f58cfc4f889</password>
+ <port>5432</port>
+ <username>odoo</username>
+ <password>Encrypted 2be98afc82bdfd8dd9a2ca45acc83f6c3</password>
<servername/>
<data_tablespace/>
<index_tablespace/>
@@ -462,7 +462,7 @@
</attribute>
<attribute>
<code>PORT_NUMBER</code>
- <attribute>5703</attribute>
+ <attribute>5432</attribute>
</attribute>
<attribute>
<code>PRESERVE_RESERVED_WORD_CASE</code>
@@ -478,7 +478,7 @@
</attribute>
<attribute>
<code>SUPPORTS_TIMESTAMP_DATA_TYPE</code>
- <attribute>Y</attribute>
+ <attribute>N</attribute>
</attribute>
<attribute>
<code>USE_POOLING</code>
@@ -487,14 +487,14 @@
</attributes>
</connection>
<connection>
- <name>erp indoteknik production</name>
- <server>localhost</server>
+ <name>erp indoteknik production (localhost)</name>
+ <server>10.148.0.3</server>
<type>POSTGRESQL</type>
<access>Native</access>
<database>erp_indoteknik</database>
- <port>5901</port>
- <username>odoo</username>
- <password>Encrypted 2be98afc82bdfd8dd9a2ca45acc83f6c3</password>
+ <port>5432</port>
+ <username>pdi</username>
+ <password>Encrypted 2be989bb20084ca95810197629d9ea18e</password>
<servername/>
<data_tablespace/>
<index_tablespace/>
@@ -513,7 +513,7 @@
</attribute>
<attribute>
<code>PORT_NUMBER</code>
- <attribute>5901</attribute>
+ <attribute>5432</attribute>
</attribute>
<attribute>
<code>PRESERVE_RESERVED_WORD_CASE</code>
@@ -529,7 +529,7 @@
</attribute>
<attribute>
<code>SUPPORTS_TIMESTAMP_DATA_TYPE</code>
- <attribute>Y</attribute>
+ <attribute>N</attribute>
</attribute>
<attribute>
<code>USE_POOLING</code>
@@ -585,7 +585,7 @@
<method>none</method>
<schema_name/>
</partitioning>
- <connection>dw bi indoteknik</connection>
+ <connection>dw bi indoteknik (localhost)</connection>
<commit>100</commit>
<lookup>
<schema>public</schema>
@@ -799,15 +799,42 @@
<method>none</method>
<schema_name/>
</partitioning>
- <connection>dw bi indoteknik</connection>
- <sql>select id from account_move order by id</sql>
+ <connection>dw bi indoteknik (localhost)</connection>
+ <sql>select id from account_move
+where 1=1
+and to_char(write_date, 'YYYY') = get_now_year()
+order by id</sql>
<limit>0</limit>
<lookup/>
<execute_each_row>N</execute_each_row>
<variables_active>N</variables_active>
<lazy_conversion_active>N</lazy_conversion_active>
<cached_row_meta_active>N</cached_row_meta_active>
- <row-meta/>
+ <row-meta>
+ <value-meta>
+ <type>Integer</type>
+ <storagetype>normal</storagetype>
+ <name>id</name>
+ <length>9</length>
+ <precision>0</precision>
+ <origin>data warehouse</origin>
+ <comments>id</comments>
+ <conversion_Mask>####0;-####0</conversion_Mask>
+ <decimal_symbol>.</decimal_symbol>
+ <grouping_symbol>,</grouping_symbol>
+ <currency_symbol/>
+ <trim_type>none</trim_type>
+ <case_insensitive>N</case_insensitive>
+ <collator_disabled>Y</collator_disabled>
+ <collator_strength>0</collator_strength>
+ <sort_descending>N</sort_descending>
+ <output_padding>N</output_padding>
+ <date_format_lenient>N</date_format_lenient>
+ <date_format_locale>en_US</date_format_locale>
+ <date_format_timezone>Asia/Bangkok</date_format_timezone>
+ <lenient_string_to_number>N</lenient_string_to_number>
+ </value-meta>
+ </row-meta>
<attributes/>
<cluster_schema/>
<remotesteps>
@@ -833,8 +860,11 @@
<method>none</method>
<schema_name/>
</partitioning>
- <connection>erp indoteknik production</connection>
- <sql>select id from account_move order by id</sql>
+ <connection>erp indoteknik production (localhost)</connection>
+ <sql>select id from account_move
+where 1=1
+and to_char(write_date, 'YYYY') = get_now_year()
+order by id</sql>
<limit>0</limit>
<lookup/>
<execute_each_row>N</execute_each_row>
@@ -848,7 +878,7 @@
<name>id</name>
<length>9</length>
<precision>0</precision>
- <origin>Table input</origin>
+ <origin>production</origin>
<comments>id</comments>
<conversion_Mask>####0;-####0</conversion_Mask>
<decimal_symbol>.</decimal_symbol>