How Doc_Cash.java gets executed?

gaurav
2006-08-05
2013-05-02
  • gaurav

    gaurav - 2006-08-05

    Hi All
    I created few lines in Cash Journal and was running the same from Eclipse in debug mode. I created breakpoints in Doc_Cash.java and Docline_cash.java to check how and when they get executed. On Comleting and posting Cash Journal, i found that cursor does not go into these files and the sode written in these files are not executed.
    Please help and tell me how and when these files get executed and which function of which class calls them?
    And my second query is that...how posting is done in compiere? I mean which file is used for accounts posting? and how it searches for Application server in code,while posting.

    Thanks

    Gaurav
    www.ViennaSolutions.com

     
    • Colin Rooney

      Colin Rooney - 2006-08-05

      I think Doc_Cash is what happens when the document is processed by the Accounting Processor (if for example you were to pess the "not posted" button ...
      Look at MCash & MCashLine that might be what you are after

      colin

       
    • gaurav

      gaurav - 2006-08-07

      Hi Colin
      Thanks for the reply :)
      I have already seen MCash and MCashLine but i just wanted to know when Doc_Cash comes in to picture and when it gets executed and which file gets executed while posting?
      Please tell me

      Thaks again

      Gaurav

       
      • Colin Rooney

        Colin Rooney - 2006-08-07

        Like I said, it (Doc_cash) looks like it is run by the Accounting processor!  But you won't see that in your trace because it's run by the server not the client - which is what you are running from Eclipse.
        I'm not sure but perhaps when you select the "Not Posted" button it runs the postings in the client ... but it most probably will just submit the document to the background process immediately.

        re: i just wanted to know when Doc_Cash...which file gets executed while posting
        then you need to start looking at the accounting processor which runs on the server... I think you are correct in that Doc_Cash & DocLine_Cash are repsonsible for cashbook postings. But to run a trace in them you would need to run the server itself in eclispe .. not something I have done but perhaps soemone else can help ...  I half remember an article on the the red1.org site on that subject it might be worth seaching through it!?

        good luck

        colin

         
    • karsten-thiemann

      Hi Gaurav,

      I guess you need to debug the application server remotely. Please see http://red1.org/compiere/RemoteDebug.zip for details. It worked fine for me.

      Karsten

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks