Hi guys,
I am kind of new to Axapta and I need some help from you please. I
found this email while searching for help in google.
I have this problem. I need to have 3 designs for the report. The
standard for invoicing, and one for credit notes and the other for
debit notes.
I made two copies of the standard design and named them:
SLVNotaDebito(Debit Note) and NotaCredito(Credit Note).
In the init I do this,
void init()
{
super();
paymentReference =
element.design().sectionName('Invoice').controlName('PaymentReference');
printCopyOriginal = element.args().parmEnum();
if (classidget(element.args().caller()) ==
classnum(SalesFormLetter_Invoice))
{
salesFormLetter = element.args().caller();
if(CustInvoiceJour.SalesType == 4)
element.design("NotaCredito");
}
else{
if(CustInvoiceTrans.LineAmount < 0){
element.design("NotaCredito");
}
else{
element.design("SLVNotaDebito");
}
}
.......
}
those are the validations i need to make the changes of designs.
However when it does the change to the SLVNotaDebito or NotaCredito
it kind of gets in a loop and after sometime I get this error:
Invoice 00001_013
Cannot create a record in Print job information (page-
level) (PrintJobPages).
The record already exists.
Please help mae! Thanks,
Jose Joaquin Peralta Abadia