to add new Commission functionality

attardcattardc Member Posts: 97
I am trying to add some additional functionality to an invoice. I have an agent's commission, which I'd like to implement similar to a normal discount.

i have added commission account fields to the general posting setup, as well as to the invoice lines and sales invoice lines.

Anyone has any idea which codeunit is used to post the discounts to the G/L, or any additional information which might help?

thanks in advance!

Comments

  • tinoruijstinoruijs Member Posts: 1,226
    Have you considered using the normal discount and maybe only adjust some captions in forms and reports? Or create new forms and reports for agents?
    You could make a difference between 'normal' customers and 'agents' by using different posting groups.

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • attardcattardc Member Posts: 97
    Client still uses the traditional discounts ... commission will be calculated as a percentage of the total cos less normal discounts. I have managed to calculate the commission, and its being posted to the sales invoice lines. I just need to post a double entry in the G/L account
  • tinoruijstinoruijs Member Posts: 1,226
    Codeunit 80 looks up the account in the posting setup and codeunit 12 is being used to post to the G/L. If you use code coverage when posting an invoice with discount, you'll see which code is being used to post it.
    But I don't know if you really want to change these codeunits.. :-k
    It will not be a easy job.

    Maybe it's better to use the general journal after you posted the invoice. You could create a function to create and post the general journal line automatic. And call this function after posting the invoice.

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • rajeshasarrajeshasar Member Posts: 7
    Hi,

    Did you manage to solve the commission functionality or posting of commission to G/L Entries ?

    I am facing the same situation now, any help would be appreciated.

    Topic Linked : viewtopic.php?f=23&t=32066


    Thanks in Advance
    ******************

    There is a very thin line between "you know" and "you don't"
    Cheers!
Sign In or Register to comment.