[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.axapta.programming

how to Ledger Journal Engine ?

massoud

12/27/2005 3:45:00 PM

Dear friend,

How come I can initialize LedgerJournalEngine to use it for Discount
calculation. I know there is some Class and forms which use it, but they are
so unclear and hard to find the entry point.
Is anybody know that?

Thanks Advanced

1 Answer

KS

12/29/2005 10:47:00 AM

0

I think you are on the wrong path with regards to using ledgerjournalengine
for achieving this, but I assume since you are mentioning
'ledgerjournalengine' the discount you want to calculate is the
cashdiscount?. If thats the case perhaps the static method, 'cashdiscamount'
on the table 'custparameters will be of use for you. You can see an example
on how this method is initialized if you go to the class 'SalesTotals',
method 'cashDiscAmount'


CustParameters::cashDiscAmount(this.CashDiscCode(), this.currencyCode(),
this.totalAmount(), this.totalAmount() - this.totalTaxAmount());


"massoud" wrote:

> Dear friend,
>
> How come I can initialize LedgerJournalEngine to use it for Discount
> calculation. I know there is some Class and forms which use it, but they are
> so unclear and hard to find the entry point.
> Is anybody know that?
>
> Thanks Advanced
>