From: Armaghan S. <sa...@le...> - 2008-01-05 08:40:00
|
On 1/5/08, Matthias Cramer <cr...@fr...> wrote: > Hi Luke > > Will <%yy%><%mm%> automaticaly be replaced by sql-ledger or do you have > some other magic? where do you put that ? into the templates or > somewhere in the sql-ledger config? > > I like to have invoices in the form 2008-001, 2008-002 etc. Until now I > enter the invoicenumber by hand, which is somehow anoying. > > If You or someone else would have a solution to that, that would be very > wellcome. This "magic" is built-in in sql-ledger. There are a number of tokens you can use in the defaults to generate document/customer/vendor/parts numbers. Here is a list from update_defaults procedure in SL/Form.pm # check for and replace # <%DATE%>, <%YYMMDD%>, <%YEAR%>, <%MONTH%>, <%DAY%> or variations of # <%NAME 1 1 3%>, <%BUSINESS%>, <%BUSINESS 10%>, <%CURR...%> # <%DESCRIPTION 1 1 3%>, <%ITEM 1 1 3%>, <%PARTSGROUP 1 1 3%> only for parts # <%PHONE%> for customer and vendors # <%YY%>, <%MM%>, <%DD%>, <%FDM%>, <%LDM%> -- Purpose-built SQL-Ledger Hosting http://www.ledger123.com/ -- |