Skip to main content
Solved

VOUCHER_TYPE DESC


Forum|alt.badge.img+1
  • Do Gooder (Customer)

Hello all,

Can anyone help me with the table/field name where I can find the descriptions to the voucher_types captured on gen_led_voucher_row_tab table. 

 

Thanks.

Best answer by AkilaR

Hi @Babs ,

I believe below will be a reasonably faster query than above.

select a.company, a.voucher_type, VOUCHER_TYPE_API.Get_Description(company,voucher_type) VOUCHER_DESC
from gen_led_voucher_row_tab a
group by a.company, a.voucher_type

Regards,

Akila

View original

AkilaR
Hero (Partner)
Forum|alt.badge.img+11
  • Hero (Partner)
  • April 18, 2024

Hi @Babs ,

If this is for a query you can use VOUCHER_TYPE_API.Get_Description(company,voucher_type) method to get the description for voucher type.

Regards,

Akila


Forum|alt.badge.img+1
  • Do Gooder (Customer)
  • April 18, 2024

HI @AkilaR 

Thanks for your quick response.

I don’t have access to IFS database so can’t confirm this myself.

Can you help confirm if this query will return the company, voucher_types and their descriptions:
 

SELECT DISTINCT 

GEN_LED_VOUCHER_ROW_TAB.COMPANY, 

GEN_LED_VOUCHER_ROW_TAB.VOUCHER_TYPE,

ifsapp.VOUCHER_TYPE_API.Get_Description(GEN_LED_VOUCHER_ROW_TAB.voucher_type) AS VOUCHER_DESC

FROM ifsapp.GEN_LED_VOUCHER_ROW_TAB GEN_LED_VOUCHER_ROW_TAB

 


AkilaR
Hero (Partner)
Forum|alt.badge.img+11
  • Hero (Partner)
  • April 18, 2024

Hi @Babs ,

I believe below will be a reasonably faster query than above.

select a.company, a.voucher_type, VOUCHER_TYPE_API.Get_Description(company,voucher_type) VOUCHER_DESC
from gen_led_voucher_row_tab a
group by a.company, a.voucher_type

Regards,

Akila


Reply


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