Tests: Add CreditNoteTest

This commit is contained in:
2024-03-30 12:42:22 +01:00
parent bce709efe4
commit 80e91ad776
5 changed files with 74 additions and 15 deletions

View File

@ -51,3 +51,17 @@ INSERT INTO delivery_part (year, did, dpnr, sortid, attrid, cultid, weight, kmw,
(2020, 11, 2, 'ZW', NULL, NULL, 3862, 17.2, 'KAB', 'WLNO', 15224, TRUE, FALSE, FALSE, NULL, NULL, NULL),
(2020, 12, 1, 'BP', NULL, NULL, 2410, 18.0, 'KAB', 'WLNO', 15224, TRUE, FALSE, FALSE, NULL, NULL, NULL),
(2020, 12, 2, 'BP', NULL, NULL, 2313, 18.1, 'KAB', 'WLNO', 15224, TRUE, FALSE, FALSE, NULL, NULL, NULL);
INSERT INTO delivery_part_bucket (year, did, dpnr, bktnr, discr, value) VALUES
(2020, 1, 1, 0, '_', 3219),
(2020, 3, 1, 0, '_', 2561),
(2020, 3, 2, 0, '_', 3129),
(2020, 3, 3, 0, '_', 1280),
(2020, 5, 1, 0, '_', 3192),
(2020, 5, 2, 0, '_', 2190);
INSERT INTO payment_variant (year, avnr, name, date, transfer_date, test_variant, calc_time, comment, data) VALUES
(2020, 1, 'Probevariante', '2021-01-15', '2021-01-15', TRUE, NULL, NULL, '{}');
INSERT INTO payment_member (year, avnr, mgnr, net_amount) VALUES
(2020, 1, 101, 10000000);