mardi 24 février 2015

How to build an invoice system in php

I'm new here and my friend suggested this place to be of help for me, as I'm pretty much a novice in programming.


I was asked by my classmate to help him in making an invoice system for his thesis. He already has something tangible to start with.


Here's the HTML code:



<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>Invoice</title>

<link rel="stylesheet" href="style.css">

<link rel="license" href="http://ift.tt/1BpvZPB">

<script src="script.js"></script>

</head>

<body>

<header>

<h1>Invoice</h1>

</header>

<article>

<h1>Recipient</h1>

<address contenteditable>

<p>Some Company<br>c/o Some Guy</p>

</address>

<table class="meta">

<tr>

<th><span>Invoice No.</span></th>

<td><span contenteditable></span></td>

</tr>

<tr>

<th><span>Reference No.</span></th>

<td><span contenteditable></span></td>

</tr>

<tr>

<th><span>Date</span></th>

<td><span contenteditable></span></td>

</tr>
<tr>

<th><span>Total</span></th>

<td><span id="prefix">PHP</span><span></span></td>

</tr>

</table>

<table class="inventory">

<thead>

<tr>

<th><span>S/N</span></th>

<th><span>Description</span></th>

<th><span>Rank</span></th>

<th><span>Crew Name</span></th>
<th><span>V/Code</span></th>


<th><span>PR No.</span></th>
<th><span>A/Code</span></th>


<th><span>Amount</span></th>

</tr>

</thead>

<tbody>

<tr>

<td><a class="cut">-</a><span contenteditable></span></td>

<td><span contenteditable></span></td>

<td><span contenteditable></span></td>

<td><span contenteditable></span></td>

<td><span contenteditable></span></td>

<td><span data-prefix>PHP</span><span contenteditable></span></td>

<td><span contenteditable></span></td>

<td><span data-prefix>PHP</span><span></span></td>

</tr>

</tbody>

</table>

<a class="add">+</a>

<table class="balance">

<tr>

<th><span>Total</span></th>

<td><span data-prefix>PHP</span><span></span></td>

</tr>

</table>

</article>

<aside>

<h1><span contenteditable>Additional Notes</span></h1>

<div contenteditable>

<p>A finance charge of 1.5% will be made on unpaid balances after 30 days.</p>

</div>

</aside>

</body>

</html>


The rest of the codes are found in my LiveWeave: LiveWeave


I was also given a chart of accounts for the corresponding fees. I wanna know how to enter different fees but the same account code (for example, basic medical fee is of account code 714104 worth 2150 then medical service fee has the same account code of 714104 but is only 5% of the 2150)


Thanks for bearing with me and thanks for the help


Aucun commentaire:

Enregistrer un commentaire