vtiger Forum Index vtiger
The Honest Open Source CRM
 

AutoNumberField Invoices
Click here to go to the original topic

 
       vtiger Forum Index -> Code Contributions - 5.0.2
Previous topic :: Next topic  
Author Message
microskills



Joined: 15 Sep 2006
Posts: 4

Posted: Fri Sep 15, 2006 9:37 am    Post subject: AutoNumberField Invoices  

I'm trying to apply a patch to correct the invoice numbers on vtiger 5.0 found in this thread:

http://forums.vtiger.com/viewtopic.php?t=4212

I made some changes for reasons of compatibility, the number in the new field (table vtiger_field_seq) is incremented, the invoice is show as created on table vtiger_crmentity, but it's not inserted on table vtiger_invoices. I think that a possible cause is the id field on vtable_field_seq which, is not incremented and don't agree with the fields on table vtiger_field...

I leave here the modifications I've made to the code.

Thanks for your cooperation (and patience),

Thiago Figueiredo - Microskills
Back to top  
crouchingtiger



Joined: 06 Oct 2004
Posts: 428

Posted: Fri Sep 15, 2006 11:15 am    Post subject: Re: AutoNumberField Invoices  

Hi,

Thanks for providing us this patch. We will definitely look into this.

Thanks,
Don
Back to top  
microskills



Joined: 15 Sep 2006
Posts: 4

Posted: Fri Sep 15, 2006 2:35 pm    Post subject: Re: AutoNumberField Invoices  

I got the autonumbers working, but I don't know how to display their contents in invoice view. The changes based on the last update tables, who was pointing tio another records.

Here is the new version, only missing the displaying options (the Invoice Number instead the Invoice Id, in Invoice view, edit and generate pdf)
Back to top  
microskills



Joined: 15 Sep 2006
Posts: 4

Posted: Fri Sep 15, 2006 4:33 pm    Post subject: Re: AutoNumberField Invoices  

Here is the patch for other modules: Quotes, Sales Orders, Purchase Orders and, of course, Invoices.

The question about listing the Invoices isn't solved yet... :(
Back to top  
smurf



Joined: 05 Jun 2006
Posts: 32

Posted: Sun Sep 24, 2006 1:38 pm    Post subject: Re: AutoNumberField Invoices  

Tried to add this patch but cannot get it to work, has any one else had any problems?
No further forward on the number in invoice yet.
Back to top  
 
       vtiger Forum Index -> Code Contributions - 5.0.2
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.15 © 2001, 2002 phpBB Group