Closed Invoice Reprint - C

rmdasari

Member
Hi :

We had customized "soivrpa10.p" and taking the output to a file and sending across to a 3rd party to print the invoices on pre-printed stationery.

We wanted to customize it now to drop printing zero invoices. How do I achieve this ?

Any help in this regard is greatly appreciated.


Regards,

Murthy
 
There are two ways of doing it;
A) Run the invoice once without display , use the line total value if non zero then print it

B) Use our MSSDocgen (www.mss-ie.com) application and get rid of pre printed stationary and zero invoices.
 

sanjus

Member
Since it's Closed invoice re-print - that means the invoices are already in the invoice history file - in the pgm - after for the for each ih_hist loop, do a find ar_mstr where ar_nbr = ih_inv_nbr and ar_type = "I" - if ar_amt = 0 then next.

This 2 line condition will help you skip zero amount invoices from being printed.

Hope this helps,
-sanju
 
Top