« Return to Thread: autoincrementing invoices numbers

Re: autoincrementing invoices numbers

by cotanda :: Rate this Message:

Reply to Author | View in Thread

Hi!
I've done what you said (changing the code on
perp_ar/inc/class.ReceivableInvoice.inc.php) so now, when you put a %3 as
format for an invoice number you get the global number, instead of the "by
client". I think it works fine.
Now the question is... how I do to send the diff?? (I mean where do I send
it??)
^^


On Thu, 23 Apr 2009 08:08:53 -0600, Nathan Gray <nathan@...>
wrote:

> On 23-Apr-09, at 4:08 AM, <cotanda@...>  
> <cotanda@...> wrote:
>
>> Hi!
>> I want to do a very simple thing (or I think so). I want to give an
>> specific format on our reference to receivable account's invoices  
>> (09/0001)
>> and that pERP autoincrements it autocaticaly but I don't realy know  
>> how to
>> do it. Is it posible to do?? How??
>> Thanks a lot for your help!!!! ^^
>
> It depends on your definition of "auto-increments".
>
> Try:
> date(y)/%2$04d
> That will auto-increment the last part for each client, but without  
> the client number (%1$d) in there, you will get duplicate numbers.
>
> A system-wide auto-increment could be implemented as %3.
> The place to do so is in perp_ar/inc/class.ReceivableInvoice.inc.php,  
> function suggest_invoice_number().  You can look at PayableInvoice for  
> examples.  If you decide to add it, please send the diff.
>
> Nathan Gray
> nathan at goarctic dot com
>

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Perp-developers mailing list
Perp-developers@...
https://lists.sourceforge.net/lists/listinfo/perp-developers

 « Return to Thread: autoincrementing invoices numbers