Invoica for Windows Presentation Foundation

 I had started to feel that Microsoft had taken Windows to its full development, and that there was nothing to look forward to.

How wrong was I? The development WPF is truly revolutionary. When you nest a window control within another and uniquely make the code that will run the application, this is that revolution. 

Having used winforms for so long I find the whole thing a bit awesome. Anyway here is that application using WPF:SalesXMLWPFSetup

Posted in Invoice, Visual Basic, Windows Presentation Foundation, WPF | Tagged , , , | 1 Comment

Invoica Version 3

This program raises invoices. If you have a look at invoicing packages through your Internet Explorer, the packages all have the same problem.

Before raising an invoice you will have to decide what taxes are due and charges that will appear on the invoice. The choice you are offered seems limited.

If you could make a template for every line on the invoice and show the taxes and charges that would apply to that item.

We have designed and built an invoicing package which will let you decide on the sub totals and hence the grand total that the invoice displays.

An example:

We have raised an invoice for item Test from the supplier called Vendor. We have used a template to decide which taxes and delivery charge will apply.

The delivery charge of £5.00 is applied to the whole order.

The ‘Purchase Tax’ is 10 percent and will be applied to the totals of the lines plus the delivery charge.

The ‘Twenty’ is 20 percent and will be applied to the totals of the lines plus the delivery charge and the Purchase Tax.

This produces a grand total of £137.00

Explanation of Application –  Invoica

The form has two sub forms: header and expenditure.

For every line of header there is at least one line of expenditure. In the case above the header name, Standard, has two subcomponents Fifteen Tax and Ten Tax.

Header Sub Form

You can have an innumerable number of headers.

Name: The description name is picked by you.

Tax on Tax: This switches the tax on tax system on or off.

If you are calculating the tax and expenditure situation where the expenditure has more than one line, you have to determine whether to accumulate the tax and exp or not.

 An Example:

 Accumulate the Tax

  • Item                        -   £30.00
  • Delivery                         £5.00
  • Fifteen Tax (15%)           £5.25
  • Ten Tax (10%)               £4.03

In the Accumulate the Tax the Fifteen Tax is levied on:

  The item cost £30.00.

  The delivery cost £5.00.

In the Accumulate the Tax the Ten Tax is levied on:

  •   The item cost £30.00.
  •   The delivery cost £5.00.
  •   The Fifteen Tax.

 Non Accumulate the Tax

  • Item                        -   £30.00
  • Delivery                         £5.00
  • Fifteen Tax (15%)           £4.50
  • Ten Tax (10%)               £3.00

 In the Non Accumulate the Fifteen Tax and the Ten Tax is only levied on:

  •   The item cost £30.00.

 Most tax systems seem to recognise the Accumulation of Tax.

 Order: This is the order in which the transaction will be processed.

Expenditure Sub Form

For each can have an innumerable number of Tax and Expenditure lines.

Select: You will choose either Currency or Percent.

Percent: You will enter the percentage amount for that tax.  

Currency: You will enter the currency amount for that tax. The currency amount will be used for each unit of measure of the invoice line.

Name: The description name is picked by you.

Order: This is the order in which the transaction will be processed.

So we have devised a way that defines the Taxes and Charges that will appear on your invoice. For each line of your invoice you can define the taxes and charges in two different ways by percentage or by currency, or you can add a charge to the whole invoice.

 Invoice

 

Invoice ID: This displays the invoice ID.

Customer Address: This displays the customer address.

Date: This displays the date.

Ship To: This displays ship to address.

Update, Add Buttons: Allows you to update or add lines.

Invoice Line View

Description: This displays the description.

Quantity: This displays the quantity.

Price: This displays the price.

UOM: This displays the unit of measure (UOM).

Extn: This displays the extension.

Update, Add Buttons: The ‘Invoice data sub form’ will be added to the form.  Allowing you to update or add lines.

Invoice Data Sub Form

Description: This displays the description.

Quantity: This displays the quantity.

Price: This displays the price.

UOM: This displays the unit of measure.

Update, Add, Delete Buttons: Allows you to update or add or delete lines.

Close: Allows you to close the sub form.

Totals and Grand Total

Totals: This displays sub totals.

Grand Total: This displays grand totals.

Tax One Off Charge

Order Charge View

Currency: This displays the ‘currency’ details.

Name: This displays the name details.

Order: This displays the header order will be executed in.

Update, Add Buttons: This will either update or add lines.

Pressing them and modify the form to show:

Currency: This displays the ‘currency’ details.

Name: This displays the name details.

Order: This displays the header order will be executed in.

Update, Add, Delete Buttons: Allows you to update or add or delete lines.

Close: Allows you to close the sub form.

 It is all explained in the Help file, please download this application: InvoicaXMLSetUp03

Posted in Invoice | Tagged , | Leave a comment

Invoica Version 2

Concept

This program raises invoices. If you have a look at invoicing packages through your Internet Explorer, the packages all have the same problem.

Before raising an invoice you will have to decide on what taxes are due and charges that will appear on the invoice. The choice you are offered seems limited. 

If you could make a template for every line on the invoice and show the taxes and charges that would apply to that item.  

We have designed and built an invoicing package which will let you decide on the sub totals and hence the grand total that the invoice displays. 

An example:

We have raised an invoice for items Test 1 and Test 2 from the supplier called Vendor. We have used a template to decide which taxes and delivery charge will apply. 

The delivery charge of £5.00 is applied to the whole order.

The ‘Fifteen Tax’ is 15 percent and will be applied to the totals of the lines plus the delivery charge.  The ‘Ten Tax’ is 10 percent and will be applied to the totals of the lines plus the delivery charge and the Fifteen Tax. This produces a grand total of £44.28.

Explanation of Application –  Invoica

The application has a customer, merchant, location, invoicing and invoicing lines tables. These are all fairly standard and are fully explained in the Help files.

Taxes and Charger can be collected in two ways:

  1. By the line of the invoice (ideal for vat or purchase tax).
  2. One off charges collected for the invoice (ideal for delivery charge).

1.Tax And Expenditure

The application is very different when it comes to how to define the template for subtotal configuration. 

Below is shown the layout for Tax and Expenditure form.

The form has two sub forms: header and expenditure.

For every line of header there is at least one line of expenditure. In the case above the header name, Standard, has two subcomponents Fifteen Tax and Ten Tax.

Header Sub Form 

You can have an innumerable number of headers.

 Name: The description name is picked by you.

 Tax on Tax: This switches the tax on tax system on or off.

 If you are calculating the tax and expenditure situation where the expenditure has more than one line, you have to determine whether to accumulate the tax and exp or not.

 An Example:

 Accumulate the Tax

  • Item                                 £30.00
  • Delivery                             £5.00
  • Fifteen Tax (15%)            £5.25
  • Ten Tax (10%)                 £4.03

In the Accumulate the Tax the Fifteen Tax is levied on:

  •   The item cost             £30.00
  •   The delivery cost         £5.00

In the Accumulate the Tax the Ten Tax is levied on:

  •   The item cost                  £30.00
  •   The delivery cost              £5.00
  •   The Fifteen Tax

Non Accumulate the Tax

  • Item                                £30.00
  • Delivery                            £5.00
  • Fifteen Tax (15%)           £4.50
  • Ten Tax (10%)                £3.00

In the Non Accumulate the Fifteen Tax and the Ten Tax is only levied on:

  •   The item cost              £30.00

Most tax systems seem to recognise the Accumulation of Tax. 

Order: This is the order in which the transaction will be processed.

Expenditure Sub Form 

For each can have an innumerable number of Tax and Expenditure lines.

 Select: You will choose either Currency or Percent.

 Percent: You will enter the percentage amount for that tax.  

 Currency: You will enter the currency amount for that tax.

 It could be said that having two methods if confusing. And this will be taken out of the next version of this application.

 Name: The description name is picked by you.

 Order: This is the order in which the transaction will be processed.

2.Tax One Off Charges

One of Charges occur only once per invoice. Ideal for packaging charges.

It is all explained in the Help file, please download this application:InvoicaXMLSetUp02

Posted in Invoice | Tagged , | Leave a comment

Invoica Version 1

Invoica Version1

This application raises invoices.

When you raise an invoice the application will allow you to add any number of sub totals, incorporating tax etc before the grand totals.

An example:

In the above example we have called the Tax and Expenditure form. We can define expenditure items that are added to every line of our invoice.

You can see that lines can either be added with the totals added as either percent or currency. It is all explained in the help files.

This is Version 1 and really we built this to find out if the concept was good. Now that it is we shall rewrite it, so look forward to Version 2.

To download version 1 InvoicaXMLSetUp01

Posted in Invoice | Leave a comment

Username and Password Version 2

Version 2 is totally rewritten from the database to every line of code!!


The data for this application would normally be stored is a secure source for instance SQL Server. For the purposes of this demonstration we have stored the data in XML database.


Password Concept


We all know that your software provider will tell you to adopt ridiculous practices to keep passwords secure. They may say:



  1. Don’t write your password down.

  2. Passwords should not use a word from a dictionary/encyclopedia.

  3. Passwords should include letters, numeric data and punctuation marks.

  4. Maybe you should capitalize some of the letters.


If you have a lot of passwords this can be difficult.


So we thought that if you could remember two pieces of data and these two pieces of data could make you passwords secure, recoverable and easy to change. This data would be:



  1. Your suggested password.

  2. A title header is from a text file.  The text from this file will be used by our software to extract a password.


With these two pieces of information we can extract a new password from the text file that you import. It will always be extracted from exactly the same position in a text file so your password is recoverable.  It will result in a new ‘post modification password’ which you will then use to gain access to numerous databases and systems.


The PasswordXML software


This will explain the basic operation of this application. (It is all fully explained in within the Help file)


When you first operate this software you will receive the following message:




This application uses an imported text file to change your suggested password to a post modification password. There is no text file so you will have to import one.  The application wants a .txt file.


The ‘OK’ button the following screen appears:




Import New Text will open the import file form. After completion the imported file will show underneath the button.


Upon closure the following screen will appear:



From the Combo Box you select ‘Live’ and the following screen appears:



Username is name given to this address.


Suggested Password is your suggestion of the password.


Post Modification Password is the suggested password after it has been though the modification process.


Selecting the Renew button and the following screen appears:



Username can be modified.


Suggested Password is a Combo Box of your suggestion password. You can add a new suggested password.


Post Modification Password The application takes the suggested password (firebox18) and will go to a position fixed on the imported file, and extracts a post modification password (opersLaneB).


Copy will copy the post modification password to the clipboard.


Add button and the following screen appears:



This form shows you the current password and the new password and gives you the choice regarding which one to accept into your database.


This makes changing your password simple. Remember you can still keep the suggested password, just import another text file (The menu on ‘Username and Password’ form  has an option to ‘Change Imported Text’) and it is done, you don’t have to think of a new password because the resulting ‘post modification password’ will be different. The password is secure and even recoverable.


It is all explained in the Help file, please download this application:PasswordXMLSetUp

Posted in Password | Tagged , , | Leave a comment

Username and Password Version 1

Password Concept

We all know that your software provider will tell you to adopt ridiculous practices to keep passwords secure. They will say:

  1.  Don’t write your password down.
  2.  Passwords should not use a word from a dictionary/encyclopedia.
  3.  Passwords should include letters, numeric data and punctuation marks.
  4.  Maybe you should capitalize some of the letters.

If you have a lot of passwords this can be difficult.

So we thought that if you could remember two pieces of data and these two pieces of data could make you passwords secure, recoverable and easy to change. This data would be:

  1. Your suggested password.
  2. A title header is from a text file.  The text from this file will be used by our software to extract a password.

With these two pieces of information we can extract a new password from the text file that you import. It will always be extracted from exactly the same position in a text file so your password is recoverable.  It will result in a new ‘post modification password’ which you will then use to gain access to numerous databases and systems.

The PasswordXML software

When you first operate this software you will receive the following message:

This application uses an imported text file to change your suggested password to a post modification password. There is no text file so you will have to import one.  The application wants a .txt file.

The ‘OK’ button the following screen appears:

 

Import New Text will open the import file form. After completion the imported file will show underneath the button.

 Upon closure the following screen will appear:

 

From the Combo Box you select ‘Live’ and the following screen appears:

 Username is name given to this address.

Suggested Password is your suggestion of the password.

Post Modification Password is the suggested password after it has been though the modification process.

Selecting ‘View’ or ‘Renew’ and the following screen appears:

 

Username can be modified.

Suggested Password is a Combo Box of your suggestion password. You can add a new suggested password.

Modify PasswordWhen this button is selected the application takes the suggested password (firebox18) and will goes to a fixed position of the imported file and extracts a post modification password (opersLaneB).

Copy will copy the post modification password to the clipboard.

Add button and the following screen appears:

 

 This form shows you the current password and the new password and gives you the choice regarding which one to accept into your database.

This makes changing your password simple. Remember you can still keep the suggested password, just import another text file (The menu on ‘Username and Password’ form  has an option to ‘Change Imported Text’) and it is done, you don’t have to think of a new password because the resulting ‘post modification password’ will be different. The password is secure and even recoverable.

 AttachedPasswordXML file

Posted in Password | Tagged , , | Leave a comment