Hi Sergi, first of all thank you very much for the code and your advice. I was working on it the whole day making an important progress. But now i'm really stuck. The story is the next one:
My plan:
1-Add 4 fields to Customer (originally 3): "Telephone"; "Invoicing Series" (select); "Shipping Company Name" (future select); "Comments" (added thanks you). [DONE]
2-Make a module for Shipping Companies.[not started yet, would appreciate a hand here if someone did something similar]
3-Load customer.InvoicingSeries when you are creating a new invoice and you select a customer that already exist (the customer data is showed automatically). If you don't select a customer, the Series should still be default one (setted throw user params) [My actual headache]
The step 3 is what i was trying to do all the day without success. I saw that in
BaseCustomerFormFilter.class.php maybe I should use "series_id" instead of "invoicing_serie". But that doesn't solve the problem, I was looking deply all the js, but there are too complex for me (especially autocomplete.js). Maybe this is simplier than i think from your side, with experience in the system.
I guess is a really good implement to have a particular Series for each customer, that loads automatically when you create a new Invoice and select that customer.
Hope you could check this out and give me your opinnion/hand :)
I send you the comparison, but I use Windows, so Beyond Compare is the program i use to do comparisons, the result isn't a diff (but similar), I couldn't adapt, if you prefer I could make a folder structure just for the files involved.
Thank you in advance! :)
PD: Sorry by my not-very-good english.
Pablo.