Mpumi
2008-12-17 08:48:03 UTC
hi all,
our client has customers across the world and they prefer having the sales
invoice for their external customers with a different look, so made a copy
of the current sales invoice and made my changes but i am getting the same
old invoice though i am print the copyofsalesinvoice. would you please
explain to me the step by step process of editing the backround of the sales
invoice classes to print the new sales invoice as many as i can, i have to
make 5 invoices for 5 different countries.
so far i am trying to edit the printJournal method on custInvoiceJour table
like so:
server void printJournal(SalesFormLetter salesFormLetter = null,
RecordSortedList journalList = null,
NoYes copy = NoYes::No)
{
Args parameters = new Args();
MenuFunction salesInvoiceMenu;
MenuFunction expSalesInvoiceMenu;
;
if (salesInvoiceMenu)
{
salesInvoiceMenu = new
MenuFunction(menuitemoutputstr(SalesInvoice),MenuItemType::Output);
parameters.caller(salesFormLetter);
}
else
{
salesInvoiceMenu = new
MenuFunction(menuitemoutputstr(copyofsalesinvoice),MenuItemType::Output);
parameters.caller(salesFormLetter);
}
if (journalList)
parameters.object(journalList);
else
parameters.record(this);
salesInvoiceMenu.run(parameters);
}
but this is not working, please help!
our client has customers across the world and they prefer having the sales
invoice for their external customers with a different look, so made a copy
of the current sales invoice and made my changes but i am getting the same
old invoice though i am print the copyofsalesinvoice. would you please
explain to me the step by step process of editing the backround of the sales
invoice classes to print the new sales invoice as many as i can, i have to
make 5 invoices for 5 different countries.
so far i am trying to edit the printJournal method on custInvoiceJour table
like so:
server void printJournal(SalesFormLetter salesFormLetter = null,
RecordSortedList journalList = null,
NoYes copy = NoYes::No)
{
Args parameters = new Args();
MenuFunction salesInvoiceMenu;
MenuFunction expSalesInvoiceMenu;
;
if (salesInvoiceMenu)
{
salesInvoiceMenu = new
MenuFunction(menuitemoutputstr(SalesInvoice),MenuItemType::Output);
parameters.caller(salesFormLetter);
}
else
{
salesInvoiceMenu = new
MenuFunction(menuitemoutputstr(copyofsalesinvoice),MenuItemType::Output);
parameters.caller(salesFormLetter);
}
if (journalList)
parameters.object(journalList);
else
parameters.record(this);
salesInvoiceMenu.run(parameters);
}
but this is not working, please help!