miércoles, 24 de febrero de 2021

Get Month from Period in iDempiere

 
-- select * from fnt_get_month_period(1000019);

create or replace function fnt_get_month_period(p_period_id numeric(10,0))
returns varchar
as $$
begin
    return
    (
        select
            upper(fnt_nombre_mes(extract(month from p.startdate)::int)) as num_mes
        from c_period p
        where p.c_period_id = p_period_id
    );
end;
$$ language plpgsql;

1 comentario:

  1. Casino Bonus Offers | Best Casino Bonuses | UK 2021
    Bet365 has become one of the 망고 도메인 leading 라이브벳 online sportsbooks with 인스타 셀럽 its sports betting and casino games. Their selection 인싸 포커 of online 22 bet casino and online sports

    ResponderEliminar