From 9903796b7e1471f6285c9884fadfda9becc890e6 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Mon, 7 Jul 2025 13:47:48 +0700 Subject: bf deadstock data --- update_list_deadstock_opening.ktr | 94 +++++++++++++++++++-------------------- 1 file changed, 47 insertions(+), 47 deletions(-) (limited to 'update_list_deadstock_opening.ktr') diff --git a/update_list_deadstock_opening.ktr b/update_list_deadstock_opening.ktr index 55f9883..4c8125f 100644 --- a/update_list_deadstock_opening.ktr +++ b/update_list_deadstock_opening.ktr @@ -593,10 +593,10 @@ Y - new_total_value - MULTIPLY + new_qty_available + SUBTRACT qty - value + qty_outgoing None -1 @@ -608,10 +608,10 @@ - new_qty_available - SUBTRACT - qty - qty_outgoing + new_total_value + MULTIPLY + new_qty_available + value None -1 @@ -694,6 +694,46 @@ Y + + If field value is null 2 + IfNull + + Y + + 1 + + none + + + 0 + + Y + N + N + + + + + new_qty_available + 0 + + N + + + + + + + + + + + + 656 + 304 + Y + + Merge join MergeJoin @@ -1206,46 +1246,6 @@ order by sq.product_id Y - - If field value is null 2 - IfNull - - Y - - 1 - - none - - - 0 - - Y - N - N - - - - - new_qty_available - 0 - - N - - - - - - - - - - - - 656 - 304 - Y - - -- cgit v1.2.3