0.00.0100005050NY50000YN1000100-2025/02/28 10:00:53.419-2025/02/28 10:00:53.419H4sIAAAAAAAAAAMAAAAAAAAAAAA=Nerp 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_POOLINGNstock quantMerge joinYstock moveMerge joinYFilter rowslog same reserved with stock quantYMerge joinFilter rowsYFilter rowsSelect valuesYSelect valuesUpdate wrong qty reservedYFilter rowsFilterRowsY1noneSelect valueslog same reserved with stock quantNreserved_quantity<>qty_reserved_must368208YMerge joinMergeJoinY1noneINNERstock quantstock moveproduct_idproduct_id240208YSelect valuesSelectValuesY1noneid_stock_quantproduct_idreserved_quantityproduct_id_1qty_reserved_mustN512208YUpdate wrong qty reservedUpdateY1noneerp indoteknik production (localhost)N100NNpublic
stock_quant
id_stock_quantid=reserved_quantityqty_reserved_must704208Ylog same reserved with stock quantWriteToLogY1nonelog_level_basicYN0368336Ystock moveTableInputY1noneerp indoteknik production (localhost)select sm.product_id, sum(sml.product_uom_qty) as qty_reserved_must
from stock_move sm
join stock_move_line sml on sml.move_id = sm.id
where 1=1
and sm.state in ('assigned', 'partially_available')
and sm.location_id = 57
and sm.product_id in(
select sq.product_id
from stock_quant sq
where 1=1
and sq.location_id = 57
and sq.reserved_quantity > 0
)
group by sm.product_id
order by sm.product_id0NNNNIntegernormalproduct_id90stock moveproduct_id####0;-####0.,noneNY0NNNen_USAsia/BangkokNBigNumbernormalqty_reserved_must-1-1stock moveqty_reserved_must######0.0###################;-######0.0###################.noneNY0NNNen_USAsia/BangkokN24080Ystock quantTableInputY1noneerp indoteknik production (localhost)select sq.id as id_stock_quant, sq.product_id, sq.reserved_quantity
from stock_quant sq
where 1=1
and sq.location_id = 57
and sq.reserved_quantity > 0
order by sq.product_id0NNNNIntegernormalid_stock_quant90stock quantid_stock_quant####0;-####0.,noneNY0NNNen_USAsia/BangkokNIntegernormalproduct_id90stock quantproduct_id####0;-####0.,noneNY0NNNen_USAsia/BangkokNNumbernormalreserved_quantity-1-1stock quantreserved_quantity####0.0#########;-####0.0#########.,noneNY0NNNen_USAsia/BangkokN80208YN