I am not sure of how to modify that report but another one you could base it on is inventtrans, just filter issue status 'Deducted' and reference 'Sales order' then have one field in your report that uses InventTransReference.LineAmount (the object is already existing in the report). 
 
Just make a copy of the standard inventrans and extend with the info fields you want (adding extra methods for extra info you need to inventtransrefernce classes is fairly straight forward I feel, I am not a true programmer but I managed it). 
 
If you get the hang of it and also know the inventrans 'statuses' well you can use this base report for a lot of things (because it is basically the lowest detail level in the system for inventory) I have made a report with a ton of information that the user just prints to ASCII file and from there imports it into excel, after that using excel pivot table and the like the user can get a load of nice reports and analysis that would take a skilled programmer donkey years to do all of them (never mind the performance issues) and its interactive as well.
 
All in all basically a very simple BI tool and esp useful for those user who have good excel skills (of course if your customer has Business Analysis module then use that but again if they are used to excel they can just take the raw data and come up with whatever analysis and reports they want and not have to bother you about any cube and the like)
 
I highly recommend you give it a try if your database is not huge, my customer was so impressed he could not thank me enough and now they are using this approach for backorders and sales projections, sales invoice and AR aging (of course not all using inventtrans!)  :)
 
Hope that helps
James
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 08 November 2004 22:48
To: [EMAIL PROTECTED]
Subject: [Axapta-Knowledge-Village] Adding Conditions to the Range of a Query


Hi All,

Ho do I modify the SalesNotInvoiced report to only print lines for items
with delivered quantity that has not been invoiced? I thought it could be
done by modifying the range of a query but have not been successful ib
getting it donne.

The field I want to test is RemainSalesFinancial which is in the embedded
data source SalesLine and I only want OrderLine records where
RemainSalesFinancial > 0. The first data source is the SalesTable. I
thought it could be done by modifying the prompt method but could not get
past the syntax, etc. The code in the prompt method is shown below and the
statement I added is the 3rd queryBuild.

Any help, comments, suggestions, etc will be greatly appreciated.

boolean prompt()
{
    Query       queryBuild;
    boolean     ret;
    ;

    ret = super();

    queryBuild = this.query();


queryBuild.dataSourceTable(tableNum(SalesLine)).addRange(fieldnum(SalesLine,

salesStatus)).value(enum2value(SalesStatus::Backorder));

queryBuild.dataSourceTable(tableNum(SalesLine)).addRange(fieldnum(SalesLine,

salesStatus)).value(enum2value(SalesStatus::Delivered));

queryBuild.dataSourceTable(tableNum(SalesLine)).addRange(fieldnum(SalesLine,

remainSalesFinancial)).value(RemainSalesFinancial>0);

    this.query(queryBuild);

    return ret;
}

Thanks,
Bob










Bob Brinker
Oakdene Group, Inc.
2625 Butterfield Rd. (Suite 212E)
Oak Brook, IL 60523-1261
(630)368-1046 x/230
(630)368-1050 (Fax)
[EMAIL PROTECTED]



Sharing the knowledge on Axapta.




Sharing the knowledge on Axapta.


Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to