-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
84 lines (75 loc) · 3.71 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html>
<head>
<link rel='stylesheet' href='./style.css'>
<meta name='viewport' content='width=device-width, initial-scale=1' >
</head>
<body>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-YBPVSP93EV"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-YBPVSP93EV');
</script>
<div class='input-container'>
<label for='csv-upload'>Please upload the Upwork CSV</label>
<input type='file' id='csv-upload' />
<span class='warn' id='csv-upload-error'></span>
</div>
<div class='hidden payments-information' id='render-if-uploaded'>
<form id='options'>
<div>
<div class='input-container'>
<label for='conversion-rate'>Conversion rate from USD to local currency</label>
<input name='conversion-rate' id='conversion-rate' type='number' step='0.01' min='0'/>
</div>
<div class='input-container'>
<label for='local-currency'>Local currency symbol</label>
<input name='local-currency' id='local-currency'/>
</div>
<h2>Tax deductions</h2>
<div id='tax-deduction-fields'>
</div>
<!-- <div class='input-container'>
<label for='tax-deduction'>Tax deduction (percent)</label>
<div>
<input name='tax-deduction' id='tax-deduction' type='number' step='1' min='0' max='100'/>
<span>%</span>
</div>
</div> -->
</div>
<button>Update</button>
</form>
<div class='tables'>
<table id='payments-table'>
</table>
<table id='clients-table'>
</table>
</div>
</div>
<footer>
<details class='how-to-use'>
<summary>How to use</summary>
First, download a CSV of your transactions by going to <b>Upwork > Reports > Transactions History</b>,
selecting a time range and clicking the 'Download CSV' button.
<img src='./images/download-csv-button.PNG' />
Next, upload the CSV in the upload field at the top of the page, and you will see information about your payments.
You can set a conversion rate from USD to your local currency, and set the currency symbol. Additionally you can
set a tax deduction percentage that will calculate the amount to be taxed for each client.
After making chnages to the options, click the 'Update' button and the table will be updated with the new
calculations
</details>
<a href='https://github.com/JorensM/upwork-csv'>Github Repo</a>
<details class='privacy-policy'>
<summary>Privacy Notice</summary>
No personally identifiable infomation is being collected. All data is stored
locally in your browser. The only data that is being collected is your page visit,
with no other information associated with it.
</details>
</footer>
<script lang="javascript" src="./lib/xlsx.full.min.js"></script>
<script src='./main.js'></script>
</body>
</html>