|
162 | 162 | "id": "8b6db6f4-224e-4be7-b6f4-3d6a14487ce9", |
163 | 163 | "metadata": {}, |
164 | 164 | "source": [ |
165 | | - "**Example Contract**" |
| 165 | + "**Example Contracts**" |
166 | 166 | ] |
167 | 167 | }, |
168 | 168 | { |
|
183 | 183 | " billing_cycle=tuttle.time.Cycle.monthly,\n", |
184 | 184 | " signature_date=datetime.date(2022, 1, 1),\n", |
185 | 185 | " 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", |
187 | 209 | ")" |
188 | 210 | ] |
189 | 211 | }, |
|
197 | 219 | }, |
198 | 220 | { |
199 | 221 | "cell_type": "code", |
200 | | - "execution_count": 8, |
| 222 | + "execution_count": 9, |
201 | 223 | "id": "c5bba6a0-c3df-4740-8dd3-bd53f1753f04", |
202 | 224 | "metadata": {}, |
203 | 225 | "outputs": [ |
|
319 | 341 | "13 billing_cycle None" |
320 | 342 | ] |
321 | 343 | }, |
322 | | - "execution_count": 8, |
| 344 | + "execution_count": 9, |
323 | 345 | "metadata": {}, |
324 | 346 | "output_type": "execute_result" |
325 | 347 | } |
|
382 | 404 | }, |
383 | 405 | { |
384 | 406 | "cell_type": "code", |
385 | | - "execution_count": 9, |
| 407 | + "execution_count": 10, |
386 | 408 | "id": "65cff4cb-4482-40af-af2d-e28311be5f72", |
387 | 409 | "metadata": {}, |
388 | 410 | "outputs": [], |
|
394 | 416 | }, |
395 | 417 | { |
396 | 418 | "cell_type": "code", |
397 | | - "execution_count": 10, |
| 419 | + "execution_count": 11, |
398 | 420 | "id": "902982bc-97e3-4421-a686-b0e363f7afbd", |
399 | 421 | "metadata": {}, |
400 | 422 | "outputs": [], |
|
404 | 426 | " tag=\"#HeatingRepair\",\n", |
405 | 427 | " contract=heating_repair_contract,\n", |
406 | 428 | " 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", |
408 | 430 | ")" |
409 | 431 | ] |
410 | 432 | }, |
411 | 433 | { |
412 | 434 | "cell_type": "code", |
413 | | - "execution_count": 11, |
| 435 | + "execution_count": 12, |
414 | 436 | "id": "62572ada-5bdc-43bc-8afd-aeef1c8ef050", |
415 | 437 | "metadata": {}, |
416 | 438 | "outputs": [], |
417 | 439 | "source": [ |
418 | 440 | "app.store(heating_repair)" |
419 | 441 | ] |
420 | 442 | }, |
| 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 | + }, |
421 | 469 | { |
422 | 470 | "cell_type": "markdown", |
423 | 471 | "id": "b835b468-91ad-4eb6-896a-53cff5dba918", |
|
441 | 489 | "metadata": {}, |
442 | 490 | "outputs": [], |
443 | 491 | "source": [] |
| 492 | + }, |
| 493 | + { |
| 494 | + "cell_type": "markdown", |
| 495 | + "id": "eaa1897f-921a-4eb8-bfe6-17e44eab2967", |
| 496 | + "metadata": {}, |
| 497 | + "source": [ |
| 498 | + "----" |
| 499 | + ] |
444 | 500 | } |
445 | 501 | ], |
446 | 502 | "metadata": { |
|
0 commit comments