Hey Guys,
I have an AIF web service which is going to be how we are generating and delivering our External Customer Account Statments (CustAccountStatementExt). I have a class called RMPDocuGet() which handles Invoices and Statements.
My question is how can I generate the CustAccountStatementExt via X++ code using the correct criteria? Currently it works fine and i can generate statements via the web service for any one of the customers but it's EVERYTHING. I'd like to set the following up
To Date = 09/23/2015
Only Open = True
Balance other than zero = true
Show Credit Limit = true
Here is the code I'm using to generate the statement now:
public static void RMPPrintStatement(Common _record, Filename filename)
{
args args = new args();
CustTable custTable = _record;
SRSPrintDestinationSettings printSettings;
CustAccountStatementExtController controller = new CustAccountStatementExtController();
str pdfPath = filename;
int pausePrint;
args.record(_record);
// Name the Report
controller.parmReportName( ssrsReportStr( CustAccountStatementExt, Report ));
// Get print settings from contract
printSettings = controller.parmReportContract().parmPrintSettings();
// Set print medium
printSettings.printMediumType(SRSPrintMediumType::File);
printSettings.fileFormat(SRSReportFileFormat::PDF);
printSettings.overwriteFile(true);
printSettings.fileName(pdfPath);
controller.RMPparmLockDestinationProperties(true);
// Suppress the parameter dialog
controller.parmShowDialog(false);
controller.parmArgs(args);
// Start operation
controller.startOperation();
}
Any help would be appreciated.
*This post is locked for comments