Dear Experts,
In my purchase order have a field have a boolean type field name is "Pre-Approved invoice". if PO is released and "Pre-Approved invoice" is checked then i want to show in print like as "Pre-Approved purchase order".
I write the condition in report but it is not accepting. Please help me to resolve it.
IF Status <> Status::Released THEN
txtHeader := txt002
ELSE
txtHeader := txt001;
IF Status <> Status::Released AND "Pre-Approved Invoice" = TRUE THEN BEGIN
txtHeader := txt003;
END;
*This post is locked for comments
It was a little bit confusion. Now I have applied your suggestion. And working fine.
And I am getting the actual result.
Thank you for your best support.
Please close this thread.
It is resolved.
you need to try
IF (Status = Status::Released) AND "Pre-Approved Invoice" THEN
instead of
IF (Status <> Status::Released) AND "Pre-Approved Invoice" THEN
I am not getting his clue. Please give me brief.
Did you tried what mohana has suggested.
read my above comment and try
IF (Status = Status::Released) AND "Pre-Approved Invoice" THEN BEGIN
Not working,
always working the first block code and getting correct result.
if released the "Purchase Order"
if not released then "Test Purchase Order"
The below code is not giving result printing the "Purchase Order" not printing the
"Pre-Approved Purchase Order"
IF (Status <> Status::Released) AND "Pre-Approved Invoice" THEN
txtHeader := txt003;
txtHeader := '';
IF Status <> Status::Released THEN
txtHeader := txt002
ELSE
txtHeader := txt001;
IF (Status <> Status::Released) AND "Pre-Approved Invoice" THEN
txtHeader := txt003;
For getting the output in my print report, I have write the code like
IF Status <> Status::Released THEN
txtHeader := txt002
ELSE
txtHeader := txt001;
IF (Status <> Status::Released) AND ("Pre-Approved Invoice"=TRUE) THEN
txtHeader := txt003;
By first block code, getting result but the below code is not giving the output. help me to resolve it. Is there any mistake in my code?
IF (Status <> Status::Released) AND ("Pre-Approved Invoice"=TRUE) THEN
txtHeader := txt003;
I didnt suggest you the code as per your requirement. i just suggested you the code to remove error which you are getting.
I think you should try
IF (Status = Status::Released) AND "Pre-Approved Invoice" THEN BEGIN
Dear Sir,
My requirement is if PO is released then name be "Purchase Order".
If PO is not released then name be "Test Purchase Order".
If PO is released and "Pre-Approved Invoice" field is checked in header the name be
"Pre-Approved Purchase Order".
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156