Added code to EnterTime.py to accept arguments. This can be used at the command line and allows shortcuts collect the data and pass those in to the script.

This commit is contained in:
2026-05-24 11:01:05 -05:00
parent 602ecffa23
commit cf88d603e9
5 changed files with 119 additions and 17 deletions
+35
View File
@@ -0,0 +1,35 @@
{
"Year": 2026,
"Entries": [
{
"ID": "20260509161557",
"Date": "2026-05-09",
"Duration": 1.0,
"ClientID": "CLT-001",
"ProjectID": "",
"Description": "Test time entry",
"Invoiced": false,
"InvoiceNumber": ""
},
{
"ID": "20260523222322",
"Date": "2026-05-23",
"Duration": 100.0,
"ClientID": "CLT-001",
"ProjectID": "PRJ-001",
"Description": "Test Work Description",
"Invoiced": false,
"InvoiceNumber": ""
},
{
"ID": "20260524104443",
"Date": "2026-05-24",
"Duration": 30.5,
"ClientID": "CLT-001",
"ProjectID": "",
"Description": "this is another test with variables",
"Invoiced": false,
"InvoiceNumber": ""
}
]
}
+34
View File
@@ -0,0 +1,34 @@
{
"Clients": [
{
"ClientID": "CLT-001",
"Name": "Test Client",
"Active": true,
"BillingAddress": {
"Street1": "",
"Street2": "",
"City": "",
"State": "",
"PostalCode": "",
"Country": ""
},
"BillingEmail": "",
"DefaultRate": 65.0
},
{
"ClientID": "CLT-002",
"Name": "Test Client 2",
"Active": true,
"BillingAddress": {
"Street1": "",
"Street2": "",
"City": "",
"State": "",
"PostalCode": "",
"Country": ""
},
"BillingEmail": "",
"DefaultRate": 65.0
}
]
}
+18
View File
@@ -0,0 +1,18 @@
{
"Projects": [
{
"ProjectID": "PRJ-001",
"ClientID": "CLT-001",
"Name": "Zefiro Methane",
"BillingRate": 90.0,
"Active": true
},
{
"ProjectID": "PRJ-002",
"ClientID": "CLT-001",
"Name": "Bessemer Electric",
"BillingRate": 0.0,
"Active": true
}
]
}