Skip to main content
Solved

table with list of installed item by customer site and status equipement

  • October 21, 2023
  • 1 reply
  • 66 views

athobie
Sidekick (Partner)
Forum|alt.badge.img+11
  • Sidekick (Partner)
  • 185 replies

HI,

 

I would like to know the table with the data  :

1/ Installed item and customer site (as we could see in Installed item transaction or Customer center > Item Inst)

I thought it was the table Item_Inst but it seems that we don’t have the customer site in this table.

 

2/ Installed item and customer site AND status of the Inst item and the PM_person_ID

Maybe a sql is required for this second use case ? 

 

Can you help me ? 

Thanks and Regards

anthony

 


 

 

Best answer by Phil Seifert

Hi  Anthony,

That is correct because the company_id for the installed_item is stored in the ITEM table, not the ITEM_INST table which has additional information about the installed item.

You could write an SQL like the following (expand this to your needs)

select it.company_id,
       it.serial_no,
       it.item_status,
       ii.pm_sa_person_id

from item it with(nolock)
inner join item_inst ii with(nolock) on ii.item_id = it.item_id

where it.item_status = '1'
/* 1 = Installed, 3 = Inventory */
and it.serial_no = <serial_no>

In the event the same serial number is used across different products, add a filter for item.bpart_id in the WHERE clause.

 

Hopefully this helps.

View original
Did this topic help you find an answer to your question?

1 reply

Phil Seifert
Ultimate Hero (Employee)
Forum|alt.badge.img+24
  • Ultimate Hero (Employee)
  • 1317 replies
  • Answer
  • October 21, 2023

Hi  Anthony,

That is correct because the company_id for the installed_item is stored in the ITEM table, not the ITEM_INST table which has additional information about the installed item.

You could write an SQL like the following (expand this to your needs)

select it.company_id,
       it.serial_no,
       it.item_status,
       ii.pm_sa_person_id

from item it with(nolock)
inner join item_inst ii with(nolock) on ii.item_id = it.item_id

where it.item_status = '1'
/* 1 = Installed, 3 = Inventory */
and it.serial_no = <serial_no>

In the event the same serial number is used across different products, add a filter for item.bpart_id in the WHERE clause.

 

Hopefully this helps.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings