Skip to content

Commit f2c1eed

Browse files
committed
walkthrough: planning and forecasting
1 parent 0793a88 commit f2c1eed

File tree

9 files changed

+689
-244
lines changed

9 files changed

+689
-244
lines changed
Binary file not shown.

notebooks/walkthrough/01-user-setup.ipynb

Lines changed: 104 additions & 104 deletions
Large diffs are not rendered by default.

notebooks/walkthrough/02-projects-setup.ipynb

Lines changed: 64 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
"id": "8b6db6f4-224e-4be7-b6f4-3d6a14487ce9",
163163
"metadata": {},
164164
"source": [
165-
"**Example Contract**"
165+
"**Example Contracts**"
166166
]
167167
},
168168
{
@@ -183,7 +183,29 @@
183183
" billing_cycle=tuttle.time.Cycle.monthly,\n",
184184
" signature_date=datetime.date(2022, 1, 1),\n",
185185
" start_date=datetime.date(2022, 1, 1),\n",
186-
" end_date=datetime.date(2022, 3, 31),\n",
186+
" end_date=datetime.date(2022, 12, 31),\n",
187+
")"
188+
]
189+
},
190+
{
191+
"cell_type": "code",
192+
"execution_count": 8,
193+
"id": "510db71f-8518-45b7-a314-84168e14a01e",
194+
"metadata": {},
195+
"outputs": [],
196+
"source": [
197+
"heating_engineering_contract = Contract(\n",
198+
" title=\"Heating Repair Contract\",\n",
199+
" client=sam,\n",
200+
" rate=100.00,\n",
201+
" currency=\"EUR\",\n",
202+
" unit=tuttle.time.TimeUnit.hour,\n",
203+
" units_per_workday=8, \n",
204+
" term_of_payment=30,\n",
205+
" billing_cycle=tuttle.time.Cycle.monthly,\n",
206+
" signature_date=datetime.date(2022, 1, 1),\n",
207+
" start_date=datetime.date(2022, 1, 1),\n",
208+
" end_date=datetime.date(2022, 12, 31),\n",
187209
")"
188210
]
189211
},
@@ -197,7 +219,7 @@
197219
},
198220
{
199221
"cell_type": "code",
200-
"execution_count": 8,
222+
"execution_count": 9,
201223
"id": "c5bba6a0-c3df-4740-8dd3-bd53f1753f04",
202224
"metadata": {},
203225
"outputs": [
@@ -319,7 +341,7 @@
319341
"13 billing_cycle None"
320342
]
321343
},
322-
"execution_count": 8,
344+
"execution_count": 9,
323345
"metadata": {},
324346
"output_type": "execute_result"
325347
}
@@ -382,7 +404,7 @@
382404
},
383405
{
384406
"cell_type": "code",
385-
"execution_count": 9,
407+
"execution_count": 10,
386408
"id": "65cff4cb-4482-40af-af2d-e28311be5f72",
387409
"metadata": {},
388410
"outputs": [],
@@ -394,7 +416,7 @@
394416
},
395417
{
396418
"cell_type": "code",
397-
"execution_count": 10,
419+
"execution_count": 11,
398420
"id": "902982bc-97e3-4421-a686-b0e363f7afbd",
399421
"metadata": {},
400422
"outputs": [],
@@ -404,20 +426,46 @@
404426
" tag=\"#HeatingRepair\",\n",
405427
" contract=heating_repair_contract,\n",
406428
" start_date=datetime.date(2022, 1, 1),\n",
407-
" end_date=datetime.date(2022, 3, 31),\n",
429+
" end_date=datetime.date(2022, 12, 31),\n",
408430
")"
409431
]
410432
},
411433
{
412434
"cell_type": "code",
413-
"execution_count": 11,
435+
"execution_count": 12,
414436
"id": "62572ada-5bdc-43bc-8afd-aeef1c8ef050",
415437
"metadata": {},
416438
"outputs": [],
417439
"source": [
418440
"app.store(heating_repair)"
419441
]
420442
},
443+
{
444+
"cell_type": "code",
445+
"execution_count": 13,
446+
"id": "e2425d73-35ce-4fcc-91e7-c8813f3c923e",
447+
"metadata": {},
448+
"outputs": [],
449+
"source": [
450+
"heating_engineering = Project(\n",
451+
" title=\"Heating Engineering\",\n",
452+
" tag=\"#HeatingEngineering\",\n",
453+
" contract=heating_repair_contract,\n",
454+
" start_date=datetime.date(2022, 1, 1),\n",
455+
" end_date=datetime.date(2022, 12, 31),\n",
456+
")"
457+
]
458+
},
459+
{
460+
"cell_type": "code",
461+
"execution_count": 14,
462+
"id": "1d4bead2-b42e-4034-a1d8-993ba9d302cb",
463+
"metadata": {},
464+
"outputs": [],
465+
"source": [
466+
"app.store(heating_engineering)"
467+
]
468+
},
421469
{
422470
"cell_type": "markdown",
423471
"id": "b835b468-91ad-4eb6-896a-53cff5dba918",
@@ -441,6 +489,14 @@
441489
"metadata": {},
442490
"outputs": [],
443491
"source": []
492+
},
493+
{
494+
"cell_type": "markdown",
495+
"id": "eaa1897f-921a-4eb8-bfe6-17e44eab2967",
496+
"metadata": {},
497+
"source": [
498+
"----"
499+
]
444500
}
445501
],
446502
"metadata": {

notebooks/walkthrough/03-timetracking-invoicing.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
},
118118
{
119119
"cell_type": "code",
120-
"execution_count": 5,
120+
"execution_count": 30,
121121
"id": "fc231461-47f4-4603-8d81-0ff0d5345576",
122122
"metadata": {},
123123
"outputs": [
@@ -143,7 +143,9 @@
143143
{
144144
"cell_type": "markdown",
145145
"id": "eaa9ca7f-6d28-4798-8030-2c0909e01cfd",
146-
"metadata": {},
146+
"metadata": {
147+
"tags": []
148+
},
147149
"source": [
148150
"### A) Time Tracking via Cloud Calendar"
149151
]

0 commit comments

Comments
 (0)