1. General Information
Yasuhiro is a tool to geneate invoices. The name Yasuhiro means "abundant honesty".
2. Functionality
Yasuhiro can generate invoices supporting up to 9 columns and so many rows as you wish / you need. Customer data and also article data can be overtaken through the clipboard. The invoices will be generated from a template and the generated invoice is in an HTML format. This program is particullaly suitable for small business and independient workers, e.g. freelancers, who are not writing a big amount of invoices but are looking for a half automatized way of generating invoices. Yasuhiro is written in Java and run just "out of the box" on each computer with a Java Virtual Machine (JVM). Because of his configuration file it is possible to use Yasuhiro in a right wide manner. In addition because of the use of an open standard as HTML is, your invoices are safe; you can save and read them on whatever system you want.
1 of 7
Red No. 4 - Customer number: This field is for an identification of a given customer. Red No. 5 - VAT: The "value added tax" in percent. If different articles have different VAT (as e.g. the case is in Germany) then you have to adjust the value in the respective column (refer to red no. 16); in this case you must have the VAT column added in the configuration file (property COLUMNS, value "8").
Red No. 6 - Cash discount: Here you can select a cash discount. This discount will be written in the invoice if it is a line "CASH_DISC_LINE" defined in the configuration file.
Red No. 7 - Copy data from Clipboard: If you click on this button the (customer) data in the clipboard will be overtaken. Up to 6 fields may be overtaken: 1. 2. 3. 4. 5. 6. Customer number Customer name Address 1 Address 2 VAT Cash discount
As separator character it can be an "End of Line", a "Tab", a "pipe", a semicolon or a colon, in this sequence. That means if you expect to copy data containing a semicolon or a colon you have to separate the fields with one of the first 3 characters. Note: Data from a standard table calculation program are separated with a "tab".
2 of 7
If you have less than 6 fields, then just the "most common" fields will be overtaken, as described hereunder: 5 fields: Customer no, (ID), Customer name, Address 1, Address 2, cash disc. 4 fields: Customer no, (ID), Customer name, Address 1, Address 2 3 fields: Customer name, Address 1, Address 2 2 fields: Customer name, Address 1 1 field: Customer name
Red No. 8 - Add Item: Add a new row to the table of articles.
Red No. 9 - Add article from Clipboard: If you click on this button, then data of an article will be added from the clipboard to the last row. Up to 5 data may be overtaken: 1. 2. 3. 4. 5. Article no. (ID) Description Price Discount VAT
As separator character it can be an "End of Line", a "Tab", a "pipe", a semicolon or a colon, in this sequence. That means if you expect to copy data containing a semicolon or a colon you have to separate the fields with one of the first 3 characters. Note: Data from a standard table calculation program are separated with a "tab". If you have less than 5 fields, then just the "most common" fields will be overtaken, as described hereunder: 4 fields: Article no, (ID), Description, Price, discount 3 fields: Article no, (ID), Description, Price 2 fields: Article no, (ID), Description 1 field: only the article no, (ID)
Red No. 10 - Total: Calculates and prints (on the screen) the total amount of the invoice until the last row.
Red No. 11 - Select template: Here you can select another template as the template defined in the configuration file (for example if you have a special design for some customers).
Red No. 12 - Conversion between date: Yasuhiro can use a date format instead of a number as invoice ID. This date may be written in a hexadecimal format too; thus if you want to know the date of a invoice with a hexadecimal ID you can use this part of Yasuhiro.
Red No. 13 - Show invoice after generation: If you select this box then the invoice will be shown after the calculation starting a program which is defined in the configuation file, property "START".
Red No. 14 - Save Invoice: The invoice wil be generated. If red no. 13 was selected, then the invoice will be shown too. If the configuration property "CONTROL_LIST" has the value "Yes", then it will be added a new line in the control file "yasuhiro_control.csv" containing the payment time (a date). The list has only three fields: Payment date; Invoice ID; Total amount.
3 of 7
Formatting of the configuration files: Please pay attention to the properties of the configuration files. The following applies: The strings before settings should stay the same, any changes -even 2 spaces or a tab- results in losing the property! # Is for comment lines. Also after a property is all behind # a comment. If you define the same setting in multiple lines the latest will be used. If settings are missing, that leads only to an abort of the program if there are no defaults for this setting. You can use ":" or "=" separating the value from the property, as you like, that is up to you.
Some lines are optional: 1. DELIVERY_LINE: This line prints a delivery art for the customer. E.g. "The goods will be delivered the [7] directly to your company." 2. CASH_DISC_LINE: This line points out how is the cash discount handled. E.g."If you pay before the [14] you have to pay only [$] EUR." 3. CASH_DISC: The value of a cash discount. At the present it is not implemented to use more than one cash discount for different periods of time. And if CASH_DISC_LINE exists it must exist CASH_DISC too. 4. VAT_LINE: This line prints the VAT value of the invoice amount. E.g. "The VAT amount in this invoice is of [$] EUR." 5. VAT: The normal value of the Value Added Tax. And if VAT_LINE exists it must exist VAT too.
4 of 7
6. PAYMENT_TIME: That is the date until when the invoice have to be payd. Default are 14 days. 7. PERIOD: Here you can define how much digits you use after the decimal period, it may be 0, 1, 2, 3, 4 or 5. Default is 2. 8. START: Here you can define a program to be started with the new invoice, from this program the invoice can be printed or changed, as you want. Examples of such programs are "Firefox" or "SeaMonkey". Please notice that you have to write the full path to the program (exe-file). 9. COLUMNS: Here you can define which column may be shown in the table, default are all columns. They are 9 columns. The columns are 1. Item 2. No 3. Art.No. 4. Description 5. Quantity 6. Discount 7. Unit Price 8. VAT 9. Amount You can also write "1;2;3;4;..." or "123456789" or "1 - 2 - 3..." or "8,7,6,5,...", at any case the columns will be printed/shown in the order written here (that means, you cannot change the order of the columns by writting the numbers in another order). 10. CONTROL_LIST: Define if a list of invoices maybe generated for posterior control, default is "no". This list has just 3 fields and is a comma separated file. The fields are: 1. Date 2. Invoice ID 3. Amount
5 of 7
It is possible to have the same value written more than just one time, e.g. the date, just write the string on all places you want to have it. Also it is possible to omite a value in the invoice, e.g. you just delete the string for the VAT line and you will not get a "VAT-line" in your invoice. I recommend to design your invoice first using a simple HTML editor and then replacing the data you need with the strings, saving the template then (and not vice versa, building a invoice around the strings). Remember to use an ASCII editor in order to edit the template for Yasuhiro!
6 of 7
8. Contact
Let us know if something does not work as you expect if you have any problems running Yasuhiro, or if you just want to tell us something. We are looking forward for your feed back!
Learning materials
<EOF>
7 of 7