Hi guys, i want to share Maxof and Minof X++ :
static void Addit_Maxof(Args _args)
{
GG_FPJVoucher _GG_FPJVoucher_AfterDP;
;
select maxof(createdDateTime) from _GG_FPJVoucher_AfterDP where _GG_FPJVoucher_AfterDP.SalesId == 'SP0-1609-0158';
info(strfmt('%1', _GG_FPJVoucher_AfterDP.createdDateTime));
}
static void Addit_Maxof(Args _args)
{
GG_FPJVoucher _GG_FPJVoucher_AfterDP;
;
select minof(createdDateTime) from _GG_FPJVoucher_AfterDP where _GG_FPJVoucher_AfterDP.SalesId == 'SP0-1609-0158';
info(strfmt('%1', _GG_FPJVoucher_AfterDP.createdDateTime));
}
static void Addit_Maxof(Args _args)
{
GG_FPJVoucher _GG_FPJVoucher_AfterDP;
;
select maxof(createdDateTime) from _GG_FPJVoucher_AfterDP where _GG_FPJVoucher_AfterDP.SalesId == 'SP0-1609-0158';
info(strfmt('%1', _GG_FPJVoucher_AfterDP.createdDateTime));
}
static void Addit_Maxof(Args _args)
{
GG_FPJVoucher _GG_FPJVoucher_AfterDP;
;
select minof(createdDateTime) from _GG_FPJVoucher_AfterDP where _GG_FPJVoucher_AfterDP.SalesId == 'SP0-1609-0158';
info(strfmt('%1', _GG_FPJVoucher_AfterDP.createdDateTime));
}
0 comments:
Post a Comment