On Thu, Apr 15, 2010 at 1:07 AM, Skipper <[email protected]> wrote: > > Excellent, thanks! > > You may remember my request for a different layout of the Grand Livre on > the forum. Well, the first part is almost ready. I have sent the "Grand > Livre par comptes" to my accountant for validation of the format, and, if he > is ok, I will finish the csv export. >
Excellent, it was often asked. Have you used fpdf or the old ros library ? > > Then, I will prepare a context-diff against build 2997 of phpcompta, I hope > this is ok for you. I needed to make some changes to existing phpcompta > files, but nothing serious, and nothing that should break things. > By the way, you can access anonymouly the svn repository, you can't write of course, but it is the release branches with bug fixes (build 3014), it will be easier to make a diff and avoid conflicts. it is svn --username toto co https://www.phpcompta.eu/svn/phpcompta/branches/rel500 So for a diff you type svn diff After your email, I created a new function Periode::last_day () exactly the same as Periode::first_day() but for the last day of a periode > > I will then write the Livre d'Achat and Livre de Vente, ordered by buyers > and sellers respectively, but with a similar layout. > > Keeping my fingers crossed ... > Skipper > > So do I :-) Cheers D.. > > On Wed, 14 Apr 2010 18:42:48 +0200 > Dany DeBontridder <[email protected]> wrote: > > > Yes you use > > > > Periode::get_limit($p_exercice) > > > > > http://www.phpcompta.be/doc/classPeriode.html#ec87d060d342925c34ec5c14850f55dc > > > > example > > > > $cn=new Database(dossier::id()); > > $periode=new Periode($cn); > > $a=$periode->get_limit(2009); > > // $a is an array > > $first_day=$a[0]->first_day(); > > $last_periode=$a[1]->get_date_limit(); > > > > //Date > > echo "first day of the exercice is ".$first_periode; > > echo "last day of the exercice is ".$last_periode['p_end'] > > > > > > regards, > > > > D.. > > > > On Wed, Apr 14, 2010 at 5:00 PM, Skipper <[email protected]> wrote: > > > > > Hi Dany, > > > > > > is there a way to get the real first and last period of an excercise? > There > > > is some code that reads (simplified) > > > <snip> > > > $year=$User->get_exercice(); > > > $date_from->value="01.01.".$year; > > > </snip> > > > > > > But this is obviously wrong for excerises that do not correspond with > > > calendar years. > > > > > > Any hint? > > > > > > Thanks, > > > Skipper > > > > > > > > > _______________________________________________ > > > Phpcompta-contrib mailing list > > > [email protected] > > > http://lists.nongnu.org/mailman/listinfo/phpcompta-contrib > > > > > > > > > _______________________________________________ > Phpcompta-contrib mailing list > [email protected] > http://lists.nongnu.org/mailman/listinfo/phpcompta-contrib > >
_______________________________________________ Phpcompta-contrib mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/phpcompta-contrib
