Hallo Tobi,
erst einmal vielen Dank für deine Hilfe.
Ich habe jedoch das Problem, dass es dieser Bericht über mehrere Lager funktionieren muss.
Also zeige mir aus allen RMA Lagern die unterschrittenen Bestände an.
Mit dem Abfrage-Editor habe ich folgendes Script erstellt:
SELECT
obj_main.isys_obj__id AS 'id',
j9.isys_cmdb_status__title AS 'LC__UNIVERSAL__CMDB_STATUS###1',
obj_main.isys_obj__title AS 'LC__UNIVERSAL__TITLE###1',
j5.isys_model_manufacturer__title AS 'LC__CATG__STORAGE_MANUFACTURER###2',
j8.isys_model_title__title AS 'LC__CMDB__CATG__MODEL###2',
j6.isys_catg_model_list__serial AS 'LC__CMDB__CATG__SERIAL###2',
j3.isys_catg_location_list__parentid AS 'isys_cmdb_dao_category_g_location::dynamic_property_callback_location_path::isys_catg_location_list__parentid::LC__CMDB__CATG__LOCATION_PATH'
FROM isys_obj AS obj_main
INNER JOIN isys_cmdb_status AS obj_main_status ON obj_main_status.isys_cmdb_status__id = obj_main.isys_obj__isys_cmdb_status__id
LEFT JOIN isys_cmdb_status AS j9 ON j9.isys_cmdb_status__id = obj_main.isys_obj__isys_cmdb_status__id
LEFT JOIN isys_catg_location_list AS j3 ON obj_main.isys_obj__id = j3.isys_catg_location_list__isys_obj__id
LEFT JOIN isys_obj AS j4 ON j3.isys_catg_location_list__parentid = j4.isys_obj__id
LEFT JOIN isys_catg_model_list AS j6 ON j6.isys_catg_model_list__isys_obj__id = obj_main.isys_obj__id
LEFT JOIN isys_model_manufacturer AS j5 ON j5.isys_model_manufacturer__id = j6.isys_catg_model_list__isys_model_manufacturer__id
LEFT JOIN isys_model_title AS j8 ON j8.isys_model_title__id = j6.isys_catg_model_list__isys_model_title__id
LEFT JOIN isys_obj_type AS j10 ON j10.isys_obj_type__id = obj_main.isys_obj__isys_obj_type__id
WHERE TRUE
AND ( (j10.isys_obj_type__id != '60' ) AND (j10.isys_obj_type__id != '60' ) ) AND ( (j10.isys_obj_type__id = '10' ) OR (j10.isys_obj_type__id = '22' ) ) AND ( (j4.isys_obj__id = '7454' ) ) OR ( (j4.isys_obj__id = '7460' ) OR (j4.isys_obj__id = '7462' ) OR (j4.isys_obj__id = '7464' ) OR (j4.isys_obj__id = '7466' ) OR (j4.isys_obj__id = '7468' ) ) ORDER BY j9.isys_cmdb_status__title ASC ;
Wie kann ich dein Beispiel am besten integrieren?
LG
Chris