From 8d4d7e4a1a6cf6be044ad23e930bdda7f86a890e Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Wed, 22 Oct 2025 09:05:52 +0700 Subject: update cogs fixco --- update_cogs_fixco.ktr | 513 +++++++++++++++++++++++++------------------------- 1 file changed, 257 insertions(+), 256 deletions(-) diff --git a/update_cogs_fixco.ktr b/update_cogs_fixco.ktr index 8b40b4e..f26d5e0 100644 --- a/update_cogs_fixco.ktr +++ b/update_cogs_fixco.ktr @@ -430,7 +430,7 @@ 2025/10/20 09:38:47.206 - 2025/10/20 09:38:47.206 - + H4sIAAAAAAAAAAMAAAAAAAAAAAA= N @@ -514,7 +514,169 @@ - sales order + Calculator + Calculator + + Y + + 1 + + none + + + Y + + total_cogs + MULTIPLY + qty + cogs + + BigNumber + -1 + -1 + N + + + + + + + + + + + + + + + 400 + 64 + Y + + + + Select values + SelectValues + + Y + + 1 + + none + + + + + id + + + total_cogs + + N + + + + + + + + + + + 528 + 64 + Y + + + + Stream lookup + StreamLookup + + Y + + 1 + + none + + + product cogs + N + Y + N + N + + + item_code + item_code + + + cost + cogs + 0 + BigNumber + + + + + + + + + + + + 256 + 64 + Y + + + + Update + Update + + Y + + 1 + + none + + + dw bi fixco + N + 100 + N + N + + + public + total_omzet_by_product
+ + id + id + = + + + + cogs + total_cogs + +
+ + + + + + + + + + 672 + 64 + Y + +
+ + product cogs TableInput Y @@ -525,8 +687,8 @@ dw bi fixco - select id, item_code, qty, harga, total_harga, ppn, dpp -from total_omzet_by_product where tanggal between '2025-01-01' and '2025-10-30' + select item_code, cost_with_tax, cost, tax +from product_cost where year = 2025 0 N @@ -535,14 +697,14 @@ from total_omzet_by_product where tanggal between '2025-01-01' and '2025-10-30'< N - Integer + String normal - id - 9 - 0 - Table input - id - ####0;-####0 + item_code + 2147483647 + -1 + Table input 2 + item_code + . , @@ -558,16 +720,16 @@ from total_omzet_by_product where tanggal between '2025-01-01' and '2025-10-30'< N - String + BigNumber normal - item_code - 2147483647 + cost_with_tax + -1 -1 - Table input - item_code - + Table input 2 + cost_with_tax + ######0.0###################;-######0.0################### . - , + none N @@ -583,11 +745,11 @@ from total_omzet_by_product where tanggal between '2025-01-01' and '2025-10-30'< BigNumber normal - qty + cost -1 -1 - Table input - qty + Table input 2 + cost ######0.0###################;-######0.0################### . @@ -606,11 +768,11 @@ from total_omzet_by_product where tanggal between '2025-01-01' and '2025-10-30'< BigNumber normal - harga + tax -1 -1 - Table input - harga + Table input 2 + tax ######0.0###################;-######0.0################### . @@ -626,17 +788,56 @@ from total_omzet_by_product where tanggal between '2025-01-01' and '2025-10-30'< Asia/Bangkok N + + + + + + + + + + + 256 + 160 + Y + + + + sales order + TableInput + + Y + + 1 + + none + + + dw bi fixco + select id, item_code, qty, harga, total_harga, ppn, dpp +from total_omzet_by_product +where 1=1 +and tanggal >= '2025-01-01' +and cogs <= 0 + 0 + + N + N + N + N + - BigNumber + Integer normal - total_harga - -1 - -1 + id + 9 + 0 Table input - total_harga - ######0.0###################;-######0.0################### + id + ####0;-####0 . - + , none N @@ -650,16 +851,16 @@ from total_omzet_by_product where tanggal between '2025-01-01' and '2025-10-30'< N - BigNumber + String normal - ppn - -1 + item_code + 2147483647 -1 Table input - ppn - ######0.0###################;-######0.0################### + item_code + . - + , none N @@ -675,11 +876,11 @@ from total_omzet_by_product where tanggal between '2025-01-01' and '2025-10-30'< BigNumber normal - dpp + qty -1 -1 Table input - dpp + qty ######0.0###################;-######0.0################### . @@ -695,95 +896,17 @@ from total_omzet_by_product where tanggal between '2025-01-01' and '2025-10-30'< Asia/Bangkok N - - - - - - - - - - - 128 - 64 - Y - - - - Stream lookup - StreamLookup - - Y - - 1 - - none - - - product cogs - N - Y - N - N - - - item_code - item_code - - - cost - cogs - 0 - BigNumber - - - - - - - - - - - - 256 - 64 - Y - - - - product cogs - TableInput - - Y - - 1 - - none - - - dw bi fixco - select item_code, cost_with_tax, cost, tax -from product_cost where year = 2025 - 0 - - N - N - N - N - - String + BigNumber normal - item_code - 2147483647 + harga + -1 -1 - Table input 2 - item_code - + Table input + harga + ######0.0###################;-######0.0################### . - , + none N @@ -799,11 +922,11 @@ from product_cost where year = 2025 BigNumber normal - cost_with_tax + total_harga -1 -1 - Table input 2 - cost_with_tax + Table input + total_harga ######0.0###################;-######0.0################### . @@ -822,11 +945,11 @@ from product_cost where year = 2025 BigNumber normal - cost + ppn -1 -1 - Table input 2 - cost + Table input + ppn ######0.0###################;-######0.0################### . @@ -845,11 +968,11 @@ from product_cost where year = 2025 BigNumber normal - tax + dpp -1 -1 - Table input 2 - tax + Table input + dpp ######0.0###################;-######0.0################### . @@ -875,129 +998,7 @@ from product_cost where year = 2025 - 256 - 160 - Y - - - - Calculator - Calculator - - Y - - 1 - - none - - - Y - - total_cogs - MULTIPLY - qty - cogs - - BigNumber - -1 - -1 - N - - - - - - - - - - - - - - - 400 - 64 - Y - - - - Select values - SelectValues - - Y - - 1 - - none - - - - - id - - - - total_cogs - - - N - - - - - - - - - - - 528 - 64 - Y - - - - Update - Update - - Y - - 1 - - none - - - dw bi fixco - N - 100 - N - N - - - public - total_omzet_by_product
- - id - id - = - - - - cogs - total_cogs - -
- - - - - - - - - - 672 + 128 64 Y -- cgit v1.2.3