Project Invoice Report

Hi

I have a requirement to changing the design of a project invoice report on company specific .

module name : project management & accounting

Path :Project management and accounting/Common/Projects/Project contracts/Invoice journals/print/selected

visual studio projects name : ProjInvoiceReport

ssrs report : ProjInvoice

in the designs part i created another design for suppose CustomizedReport.

also I created Output menu for that but how to call that report in controller class .

deployed ,built , add to AOT successfully .

But in the controller class where I have to change the coding for that when the selected Button will clicked it only call my Customized report rather than base report .

If is there any way please mention .

Kindly help on this .

Thanks

Sumit

Hi

I am Using Ax 2012 CU7 R2

Kindly Help me .

Thanks

Sumit

ProjInvoiceController normally chooses the design in main() method according to the configuration of print management. You may want to somehow extend this logic.

Hi Martin

I am glad your valuable responds , Would u Kindly mention me where exactly in that main() I will call my Report or Output menu item .

My point is that the logic is already there.

ProjInvoiceController::main() contains, among other things, the following statement:

controller.parmReportName(
        PrintMgmtDocType::construct(PrintMgmtDocumentType::ProjectInvoice)
    .getDefaultReportFormat());

And getDefaultReportFormat() selects the design to use. For example:

if (SysCountryRegionCode::isLegalEntityInCountryRegion([#isoLT]))
{
	return ssrsReportStr(ProjInvoice, ReportLT);
}

if (SysCountryRegionCode::isLegalEntityInCountryRegion([#isoHU]))
{
	return ssrsReportStr(ProjInvoice, ReportHU);
}