0.00.0100005050NY50000YN1000100-2024/11/13 08:53:00.392-2024/11/13 08:53:00.392Nerp 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_POOLINGNmatch po somatch po so with fulfillmentYfulfillmentmatch po so with fulfillmentYmatch po so with fulfillmentFilter fulfillment is not nullYFilter fulfillment is not nullSelect valuesYFilter fulfillment is not nulllog fulfillment nullYSelect valuesInsert / updateYfulfillmentTableInputY1noneerp indoteknik production (localhost)select id as fulfillment_id, sale_order_line_id
from sales_order_fulfillment_v2
where 1=1
and write_date >= (now() - '180 days'::interval)
--and sale_order_line_id in (select id from sale_order_line sol where sol.order_id = 29290)
order by sale_order_line_id0NNNNIntegernormalfulfillment_id90fulfillmentfulfillment_id####0;-####0.,noneNY0NNNen_USAsia/BangkokNIntegernormalsale_order_line_id90fulfillmentsale_order_line_id####0;-####0.,noneNY0NNNen_USAsia/BangkokN36896Ymatch po soTableInputY1noneerp indoteknik production (localhost)select posm.sale_line_id as sale_order_line_id, po.id as purchase_order_id
from purchase_order_sales_match posm
join purchase_order po on po.id = posm.purchase_order_id
where 1=1
and po.state in ('purchase', 'done')
and posm.write_date >= (now() - '180 days'::interval)
--and posm.sale_line_id in (select id from sale_order_line sol where sol.order_id = 29290)
order by posm.sale_line_id0NNNNIntegernormalsale_order_line_id90match po sosale_order_line_id####0;-####0.,noneNY0NNNen_USAsia/BangkokNIntegernormalpurchase_order_id90match po sopurchase_order_id####0;-####0.,noneNY0NNNen_USAsia/BangkokN160192Ymatch po so with fulfillmentMergeJoinY1noneLEFT OUTERmatch po sofulfillmentsale_order_line_idsale_order_line_id368192YFilter fulfillment is not nullFilterRowsY1noneSelect valueslog fulfillment nullNfulfillment_idIS NOT NULL592192YSelect valuesSelectValuesY1nonesale_order_line_idpurchase_order_idfulfillment_idN752192Ylog fulfillment nullWriteToLogY1nonelog_level_basicYN0592304YInsert / updateInsertUpdateY1noneerp indoteknik production (localhost)100Npublic