summaryrefslogtreecommitdiff
path: root/insert_update_pricelist1.ktr
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2024-02-12 18:56:04 +0700
committerstephanchrst <stephanchrst@gmail.com>2024-02-12 18:56:04 +0700
commit801cf21cec82b9b7efdacfd75192b661b36e4690 (patch)
treedb39129d659d1b95a018fa363684082f92e8bec8 /insert_update_pricelist1.ktr
parent225a7da63ad1aed4ab11410f0a70a822253896c3 (diff)
update compute price
Diffstat (limited to 'insert_update_pricelist1.ktr')
-rw-r--r--insert_update_pricelist1.ktr34
1 files changed, 23 insertions, 11 deletions
diff --git a/insert_update_pricelist1.ktr b/insert_update_pricelist1.ktr
index 40778b0..ddcc7e4 100644
--- a/insert_update_pricelist1.ktr
+++ b/insert_update_pricelist1.ktr
@@ -443,8 +443,8 @@
<access>Native</access>
<database>dw_bi_indoteknik</database>
<port>5432</port>
- <username>odoo</username>
- <password>Encrypted 2be98afc82bdfd8dd9a2ca45acc83f6c3</password>
+ <username>metabase</username>
+ <password>Encrypted 2be98dfba28d7bf86853c9f58cfc4f889</password>
<servername/>
<data_tablespace/>
<index_tablespace/>
@@ -494,8 +494,8 @@
<access>Native</access>
<database>erp_indoteknik</database>
<port>5432</port>
- <username>odoo</username>
- <password>Encrypted 2be98afc82bdfd8dd9a2ca45acc83f6c3</password>
+ <username>metabase</username>
+ <password>Encrypted 2be98dfba28d7bf86853c9f58cfc4f889</password>
<servername/>
<data_tablespace/>
<index_tablespace/>
@@ -779,9 +779,21 @@
<compare>
<condition>
<negated>N</negated>
- <leftvalue>disc_tier1</leftvalue>
- <function>&lt;></function>
- <rightvalue>price_discount</rightvalue>
+ <conditions>
+ <condition>
+ <negated>N</negated>
+ <leftvalue>disc_tier1</leftvalue>
+ <function>&lt;></function>
+ <rightvalue>price_discount</rightvalue>
+ </condition>
+ <condition>
+ <negated>N</negated>
+ <operator>OR</operator>
+ <leftvalue>price_tier1</leftvalue>
+ <function>&lt;></function>
+ <rightvalue>computed_price</rightvalue>
+ </condition>
+ </conditions>
</condition>
</compare>
<attributes/>
@@ -1817,7 +1829,7 @@ order by product_id</sql>
<lenient_string_to_number>N</lenient_string_to_number>
</value-meta>
<value-meta>
- <type>Timestamp</type>
+ <type>Date</type>
<storagetype>normal</storagetype>
<name>date_start</name>
<length>6</length>
@@ -1840,7 +1852,7 @@ order by product_id</sql>
<lenient_string_to_number>N</lenient_string_to_number>
</value-meta>
<value-meta>
- <type>Timestamp</type>
+ <type>Date</type>
<storagetype>normal</storagetype>
<name>date_end</name>
<length>6</length>
@@ -1955,7 +1967,7 @@ order by product_id</sql>
<lenient_string_to_number>N</lenient_string_to_number>
</value-meta>
<value-meta>
- <type>Timestamp</type>
+ <type>Date</type>
<storagetype>normal</storagetype>
<name>create_date</name>
<length>6</length>
@@ -2001,7 +2013,7 @@ order by product_id</sql>
<lenient_string_to_number>N</lenient_string_to_number>
</value-meta>
<value-meta>
- <type>Timestamp</type>
+ <type>Date</type>
<storagetype>normal</storagetype>
<name>write_date</name>
<length>6</length>