Discussion:
PO posting / proforma report
(too old to reply)
Henry Tang
2012-02-01 07:51:50 UTC
Permalink
Hi,
I am writing report using AOT. Here comes with a problem:

What I want:
When printing the PO, if the checkbox "Posting" is clicked I would
like to show users the final PO Report.
When printing the PO, if the checkbox "Posting" is NOT clicked I would
like to show users the proforma PO.

I have checked that there is a function in the table called
"isProforma" but it doesnt work. Either checked or not checked the
"Posting" checkbox it will not jump into the loop.

After go inside the function content it makes me more suspected as it
only has below code:

public boolean isProforma()
{
return !this.PurchaseOrderId;
}

Anyone can suggest me how to prepare 2 PO reports during A/P PO
printing?
Thank you very much!
Rudi Hansen
2012-02-02 09:45:55 UTC
Permalink
Post by Henry Tang
Anyone can suggest me how to prepare 2 PO reports during A/P PO
printing?
Thank you very much!
Look in the report SalesInvoice, the method invoiceTxt does what you need.
Its under SalesInvoice/Designs/Standard/Generated
Design/PageHeader:invoice/Methods.

Is basically uses the method custInvoiceJour.isProforma() to check if
the invoice is a Proforma invoice.

I hope this helps you.

Loading...