I have a QRP form (using Gupta Report Builder V. 1.5.1). This QRP is an Invoice form for our ERP system. When an Invoice total is negative, we call this a Credit Memo, and we dynamically change the form title between "INVOICE" and "CREDIT MEMO" with formula:
Code: Select all
StrIFF(INVOICE_TOTAL ,'CREDIT MEMO' , 'INVOICE', 'INVOICE' )
This worked well up until now, when we discovered that it doesn't work well with multi-page "credit memos". It shows title of "INVOICE" on all the pages where the total cumulative Invoice amount is positive. Once the cumulative amount is negative, then it shows "CREDIT MEMO" as the header of that page only.
I have the INVOICE_TOTAL set to Sum an Input Variable called "N_CUR_GRANDTOTAL" at every Page Break.
I tried other breaks, like at every CO_ID (customer ID), etc... and tried checking and unchecking the "pre-process" checkbox.... but none of these work.
I know it might difficult for you guys to diagnose since you are not running the ERP to see what variables are there.... but wondering if you had any suggestions for me to play with as far as setting and/or properties that might work.
In case you are wondering, I am running VISUAL MANUFACTURING (Version 6.3.8) ERP system.
Thanks for any advice....