KS
12/29/2005 10:47:00 AM
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
>