0.00.0100005050NY50000YN1000100-2025/07/04 09:06:25.348-2025/07/04 09:06:25.348Ndw bi indoteknik (localhost)localhostPOSTGRESQLNativedw_bi_indoteknik5432odooEncrypted 2be98afc82bdfd8dd9a2ca45acc83f6c3FORCE_IDENTIFIERS_TO_LOWERCASENFORCE_IDENTIFIERS_TO_UPPERCASENIS_CLUSTEREDNPORT_NUMBER5432PRESERVE_RESERVED_WORD_CASEYQUOTE_ALL_FIELDSNSUPPORTS_BOOLEAN_DATA_TYPEYSUPPORTS_TIMESTAMP_DATA_TYPENUSE_POOLINGNerp indoteknik production (localhost)10.148.0.3POSTGRESQLNativeerp_indoteknik5432pdiEncrypted 2be989bb20084ca95810197629d9ea18eFORCE_IDENTIFIERS_TO_LOWERCASENFORCE_IDENTIFIERS_TO_UPPERCASENIS_CLUSTEREDNPORT_NUMBER5432PRESERVE_RESERVED_WORD_CASEYQUOTE_ALL_FIELDSNSUPPORTS_BOOLEAN_DATA_TYPEYSUPPORTS_TIMESTAMP_DATA_TYPENUSE_POOLINGNTable inputFilter rowsYFilter rowsSelect valuesYSelect valuesparam product idYSelect valuesSelect values 2Yparam product idget last sales within 6 month before last in till nowYSelect values 2Sort rowsYget last sales within 6 month before last in till nowSort rows 2YSort rowsMerge joinYSort rows 2Merge joinYMerge joinFilter rows 2YFilter rows 2Write to log 2YFilter rows 2DeleteYFilter rowsDelete 2YTable inputTableInputY1nonedw bi indoteknik (localhost)select product_id, last_in, last_in as last_in2, qty
from list_new_deadstock0NNNNIntegernormalproduct_id90Table inputproduct_id####0;-####0.,noneNY0NNNen_USAsia/BangkokNTimestampnormallast_in6-1Table inputlast_in.,noneNY0NNNen_USAsia/BangkokNTimestampnormallast_in26-1Table inputlast_in2.,noneNY0NNNen_USAsia/BangkokNBigNumbernormalqty-1-1Table inputqty######0.0###################;-######0.0###################.noneNY0NNNen_USAsia/BangkokN16096YFilter rowsFilterRowsY1noneDelete 2Select valuesNqty<=constantBigNumber0.0-1-1N######0.0###################;-######0.0###################32096YSelect valuesSelectValuesN1noneproduct_idlast_inlast_in2qtyN320208YSelect values 2SelectValuesY1noneproduct_idlast_inlast_in2qtyN320304Yparam product idSelectValuesY1noneproduct_idlast_inN464208Yget last sales within 6 month before last in till nowTableInputY1noneerp indoteknik production (localhost)select sm.product_id, sm.create_date as last_sales
from stock_move sm
join stock_location sl on sl.id = sm.location_dest_id
where 1=1
and sl.name in ('Customers', 'Production')
and sm.state = 'done'
and sm.product_id = ?
and sm.create_date >= (?::timestamp - '180 days'::interval) --and sm.create_date <= ?0param product idYYNNIntegernormalproduct_id90Table input 2product_id####0;-####0.,noneNY0NNNen_USAsia/BangkokNTimestampnormallast_sales6-1Table input 2last_sales.,noneNY0NNNen_USAsia/BangkokN73696YSort rowsSortRowsY1none%%java.io.tmpdir%%out1000000NNproduct_idYNN0N528304YSort rows 2SortRowsY1none%%java.io.tmpdir%%out1000000NNproduct_idYNN0N736208YMerge joinMergeJoinY1noneLEFT OUTERSort rowsSort rows 2product_idproduct_id736304YFilter rows 2FilterRowsY1noneDeleteWrite to log 2Nproduct_id_1IS NULL864304YWrite to log 2WriteToLogY1nonelog_level_basicYN0864416YDeleteDeleteY1nonedw bi indoteknik (localhost)100public
list_new_deadstock
product_idproduct_id=1008304YDelete 2DeleteY1nonedw bi indoteknik (localhost)100public