Dear Experts,
In Sales & Marketing> Posted Invoices there is only default print out.
Is there any way that i can have 2 different design for the same invoice???
Like if we click print on posted Invoice there is only one print design which is by default design. But i want another Design for the same invoice. So basically there will be 2 different print designs for the same invoice that i want to print.
Kinldy let me know if it's possible.
Thanks & Regards,
Fahd
0
Answers
or you want them every time?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
I just need 2 different design because we have 2 companies. Sometimes we want the print with company 1's header details and sometimes with company 2's header design and we will always take the prints from posted invoice. Every thing will be the same the only thing will be changed is the header details of that invoice.
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
In navision we have only one company.
So we need different format for the design but that should be pirnted out from posted invoice only.
By default if i click on print in Sales invoice it's taking the report (206). By using the same report i save as 50012.
But in the header details i have changed some details. now i want system to give me both these reports when click on print button or if there is other button which could named as print 2, means either to print in 206 or 50012.
why you need two report ?
you design two header and take option type variable . now you can manage which header you want to show and hide in report by managing option variable in request form.
if you have only two format then you can also use Boolean type var
standardformat var Boolean type
on one header
CurrReport.SHOWOUTPUT(standardformat);
on other
CurrReport.SHOWOUTPUT(not standardformat);
So In the Sales Invoice Header Table There is a function called "PrintRecords" So I added a maching function with a new name "PrintInternetRecords".
I Added the 2nd invoice type to the Report Selections Table.
Original Code: to print Standard Invoice Copied Code to the new function to call the other report ON the Print button of the posted invoice I changed the code ONPUSH.
It checks the type of order it is and prints the desired invoice report. The above code could be on seperate buttons if you wish instead of one.
this is the long drawn out way - so if you just need a header change then that's the way to go
http://www.BiloBeauty.com
http://www.autismspeaks.org
Thank uuuu!!!
It worked, thanks for such a great support !!
http://www.BiloBeauty.com
http://www.autismspeaks.org
With the above mentioned coding i was fine with 2 different printout.this morning i tried the same way for the 3rd invoice print out.
I desinged the 3rd report and i did for sales invoice table.
But now, I went to Purchase order i click on print button of Purcahse order it gave me this error.
"THE SALES - INVOICE REPORT does not have a data item that uses the table (Table 38 Purchase Order)specified in the function settable view".
My question is i made changes in Sales Invoice table then how come it is effecting the Purchase order table.
Why it is mentioning the SALES-INVOICE REPORT. is there any kind of filter in Codeunit 229 or what.
Kindly let me know ASAP.
Thanks.
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Thanks for the reply i guess this might be the problem!!.
Could you kindly further guide me that how can i check this where can i check this??
Thanks & Regards,
Fahd Liaqat
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
REPORT.RUNMODAL(ReportSelection."Report ID",TRUE,FALSE,PurchHeader)
UNTIL ReportSelection.NEXT = 0;
Clearly it showing that you are passing PurchHeader
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
I am getting the error when i click on Print Button of the Purchase order.
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
I want the the default Purchase order Print out (Report 405) from purchase order.
that's what i want. i need the purchase order print out from purchase order it self but it's not showing me.
it's detecting sales invoice from some where instead of printing purchase order.
It gave me the error as already stated above.
just above the code where you are getting error message..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
ReportSelection.SETFILTER("Report ID",'<>0');
ReportSelection.FIND('-');
that's just above of that And it is showing in codeunit (229) in Debugger.
This way the user can select which Invoice Lay-out he would like to print.
Which function is that in CU229?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
I found one filter under the Trigger PrintPurchHeader(PurchHeader)
ReportSelection.SETRANGE(Usage,ReportSelection.Usage::"S.INVOICE")
so i changed it to ReportSelection.SETRANGE(Usage,ReportSelection.Usage::"P.Order")
now it's working fine.
i don't know how it changed itself. :shock:
But it's fine now just asking if i have made this step correctly??
Kindly let me know and thanks for a great help !
And you are Welcome
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav