|
524 | 524 |
|
525 | 525 | ;; inv-1 is generated for a customer |
526 | 526 | (inv-1 (let ((inv-1 (gncInvoiceCreate (gnc-get-current-book)))) |
| 527 | + (gncInvoiceSetID inv-1 "0001") |
527 | 528 | (gncInvoiceSetOwner inv-1 owner-1) |
528 | 529 | (gncInvoiceSetNotes inv-1 "inv-1-notes") |
529 | 530 | (gncInvoiceSetBillingID inv-1 "inv-1-billing-id") |
|
542 | 543 |
|
543 | 544 | ;; inv-2 is generated from a customer's job |
544 | 545 | (inv-2 (let ((inv-2 (gncInvoiceCreate (gnc-get-current-book)))) |
| 546 | + (gncInvoiceSetID inv-2 "0002") |
545 | 547 | (gncInvoiceSetOwner inv-2 owner-2) |
546 | 548 | (gncInvoiceSetNotes inv-2 "inv-2-notes") |
547 | 549 | (gncInvoiceSetCurrency inv-2 USD) |
|
561 | 563 |
|
562 | 564 | ;; inv-3 is generated from a vendor |
563 | 565 | (inv-3 (let ((inv-3 (gncInvoiceCreate (gnc-get-current-book)))) |
| 566 | + (gncInvoiceSetID inv-3 "0003") |
564 | 567 | (gncInvoiceSetOwner inv-3 owner-3) |
565 | 568 | (gncInvoiceSetNotes inv-3 "inv-3-notes") |
566 | 569 | (gncInvoiceSetCurrency inv-3 USD) |
|
578 | 581 |
|
579 | 582 | ;; inv-4 is generated for an employee |
580 | 583 | (inv-4 (let ((inv-4 (gncInvoiceCreate (gnc-get-current-book)))) |
| 584 | + (gncInvoiceSetID inv-4 "0004") |
581 | 585 | (gncInvoiceSetOwner inv-4 owner-4) |
582 | 586 | (gncInvoiceSetNotes inv-4 "inv-4-notes") |
583 | 587 | (gncInvoiceSetCurrency inv-4 USD) |
584 | 588 | inv-4)) |
585 | 589 |
|
586 | 590 | ;; inv-5 cust-credit-note |
587 | 591 | (inv-5 (let ((inv-5 (gncInvoiceCopy inv-1))) |
| 592 | + (gncInvoiceSetID inv-5 "0005") |
588 | 593 | (gncInvoiceSetIsCreditNote inv-5 #t) |
589 | 594 | (gncInvoiceSetCurrency inv-5 USD) |
590 | 595 | inv-5)) |
591 | 596 |
|
592 | 597 | ;; inv-6 vend-credit-note |
593 | 598 | (inv-6 (let ((inv-6 (gncInvoiceCopy inv-3))) |
| 599 | + (gncInvoiceSetID inv-6 "0006") |
594 | 600 | (gncInvoiceSetIsCreditNote inv-6 #t) |
595 | 601 | (gncInvoiceSetCurrency inv-6 USD) |
596 | 602 | inv-6)) |
597 | 603 |
|
598 | 604 | ;; inv-7 emp-credit-note |
599 | 605 | (inv-7 (let ((inv-7 (gncInvoiceCopy inv-4))) |
| 606 | + (gncInvoiceSetID inv-7 "0007") |
600 | 607 | (gncInvoiceSetIsCreditNote inv-7 #t) |
601 | 608 | (gncInvoiceSetCurrency inv-7 USD) |
602 | 609 | inv-7)) |
603 | 610 |
|
604 | 611 | (inv-8 (let ((inv-8 (gncInvoiceCreate (gnc-get-current-book)))) |
| 612 | + (gncInvoiceSetID inv-8 "0008") |
605 | 613 | (gncInvoiceSetOwner inv-8 owner-1) |
606 | 614 | (gncInvoiceSetCurrency inv-8 USD) |
607 | 615 | inv-8)) |
|
0 commit comments