[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Phpcompta-contrib] True periods
From: |
Skipper |
Subject: |
Re: [Phpcompta-contrib] True periods |
Date: |
Thu, 15 Apr 2010 01:07:19 +0200 |
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.
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.
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
On Wed, 14 Apr 2010 18:42:48 +0200
Dany DeBontridder <address@hidden> 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 <address@hidden> 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
> > address@hidden
> > http://lists.nongnu.org/mailman/listinfo/phpcompta-contrib
> >
> >
- [Phpcompta-contrib] True periods, Skipper, 2010/04/14
- Re: [Phpcompta-contrib] True periods, Dany DeBontridder, 2010/04/14
- Re: [Phpcompta-contrib] True periods,
Skipper <=
- Re: [Phpcompta-contrib] True periods, Dany DeBontridder, 2010/04/15
- Re: [Phpcompta-contrib] True periods, Skipper, 2010/04/15
- Re: [Phpcompta-contrib] True periods, Dany DeBontridder, 2010/04/15
- Re: [Phpcompta-contrib] True periods, Dany DeBontridder, 2010/04/15
- Re: [Phpcompta-contrib] True periods, Dany DeBontridder, 2010/04/16
- Re: [Phpcompta-contrib] True periods, Skipper, 2010/04/18
- Re: [Phpcompta-contrib] True periods, Alain Vaugham, 2010/04/15