Re: [Kmymoney-devel] Android Port: Question relating to Schedules

2012-07-12 Thread Eric Bonney
Found it!! Yes once again the error was of course in my code. :) This one was particularly difficult, well only because I forgot that the Schedules are stored in three different tables: 1. kmmSchedules - the basic information for the actual schedule. 2. kmmSplits - the actual detail items f

Re: [Kmymoney-devel] Android Port: Question relating to Schedules

2012-07-12 Thread Eric Bonney
Hi Alvaro, Yes I am writing the updates to the database and even ensured that the database was closed after all my operations where completed. I noticed that the sched.adjustedNextDueDate() is calling nextDueDate() which returns the actual posting date on the transaction I think. m_PostDate in th

Re: [Kmymoney-devel] Android Port: Question relating to Schedules

2012-07-12 Thread Alvaro Soliverez
Are you writing the changes after updating the schedules? I assume you do. The fields you are using seem to be the right ones. sched.adjustedNextDueDate() is a function to check for holidays, weekends, etc, and adjust the due date accordingly (ie, don't have a business schedule occur on a Sunday).

Re: [Kmymoney-devel] Android Port: Question relating to Schedules

2012-07-12 Thread Eric Bonney
So I have tried to do more research on this in the actual source code and I am still a bit confused. Inside khomeview.cpp I followed the code for the display of the Payments. Down in showPaymentEntry() I see where the method takes a MyMoneySchedule as a variable. This schedule is then used to get