Lauri Ojansivu
1abb202030
Tests: a Shop invoice line is a Product, an unknown kind is refused, and every list of the line kinds names Product.
...
tests/billingLineKinds.test.cjs:
- Product is a kind with a label, and isInvoiceLineKind takes it;
- negative: an unknown kind ('gift', a wrong case, empty, not a string) is
refused, the schema lists exactly the library's kinds, and the Shop's
invoice refuses a line of a kind billing does not know;
- a shop invoice line is a product with its card, quantity and unit price,
and the lines add up to the net with VAT taken out;
- the e-invoice writes a product as pieces (H87) at its unit price, one unit
(C62) when there is no whole unit price, and a fee as before;
- a source scan of models, server, client, imports and config: every place
that names the fee and the expense kinds together - as strings, label keys
or style classes - names product too, so a new output that forgets it
fails;
- the label is translated in every language, with no placeholder.
tests/billingAccess.test.cjs holds the schema's kinds to the library's list,
and the Shop mocha test expects its invoice line as a product of 3 at 5 EUR.
Thanks to xet7 !
2026-11-22 21:18:58 +02:00
..
2026-09-30 11:08:10 +03:00
2026-10-14 14:00:21 +03:00
2026-10-07 16:15:44 +03:00
2026-09-30 11:12:25 +03:00
2026-11-22 20:28:30 +02:00
2026-11-21 18:17:53 +02:00
2026-08-22 23:50:26 +03:00
2026-10-14 09:28:45 +03:00
2026-06-20 17:45:43 +03:00
2026-10-10 14:24:44 +03:00
2026-06-20 14:40:13 +03:00
2026-09-26 01:27:36 +03:00
2026-10-14 18:53:37 +03:00
2026-06-20 17:45:43 +03:00
2026-09-29 16:40:48 +03:00
2026-10-14 13:13:55 +03:00
2026-06-20 19:16:35 +03:00
2026-07-13 19:08:29 +03:00
2026-08-07 18:20:23 +03:00
2026-10-14 13:39:18 +03:00
2026-07-24 03:23:37 +03:00
2026-09-28 17:40:49 +03:00
2026-10-10 11:44:19 +03:00
2026-09-29 17:59:21 +03:00
2026-08-08 03:46:39 +03:00
2026-07-05 16:48:58 +03:00
2026-05-13 22:32:38 +03:00
2026-06-20 17:44:51 +03:00
2026-10-14 23:08:22 +03:00
2026-10-27 14:52:06 +02:00
2026-11-21 18:17:53 +02:00
2026-10-03 09:44:45 +03:00
2026-11-22 18:49:51 +02:00
2026-09-28 12:55:11 +03:00
2026-06-20 14:40:13 +03:00
2026-10-14 13:11:23 +03:00
2026-10-03 08:52:16 +03:00
2026-10-03 10:20:29 +03:00
2026-10-16 15:23:16 +03:00
2026-10-10 15:26:46 +03:00
2026-11-21 18:17:53 +02:00
2026-06-20 19:54:30 +03:00
2026-06-15 20:08:42 +03:00
2026-10-11 13:12:21 +03:00
2026-10-01 19:18:58 +03:00
2026-08-04 00:24:05 +03:00
2026-10-16 13:03:34 +03:00
2026-10-14 07:35:20 +03:00
2026-09-28 14:06:15 +03:00
2026-10-13 18:27:25 +03:00
2026-10-14 07:35:20 +03:00
2026-10-08 12:08:29 +03:00
2026-10-13 18:27:25 +03:00
2026-10-13 18:27:25 +03:00
2026-11-22 19:04:17 +02:00
2026-06-22 15:46:43 +03:00
2026-07-05 16:48:58 +03:00
2026-10-27 16:28:12 +02:00
2026-10-14 08:20:49 +03:00
2026-07-05 16:48:58 +03:00
2026-06-20 14:40:13 +03:00
2026-07-14 17:01:35 +03:00
2026-10-15 01:27:26 +03:00
2026-07-14 14:03:32 +03:00
2026-11-22 16:48:15 +02:00
2026-11-22 20:34:47 +02:00
2026-05-27 20:51:44 +03:00
2026-10-14 09:28:45 +03:00
2026-10-02 15:26:22 +03:00
2026-09-28 17:23:15 +03:00
2026-10-15 00:46:39 +03:00
2026-06-20 19:20:22 +03:00
2026-11-21 18:17:53 +02:00
2026-10-14 09:28:45 +03:00
2026-10-08 11:53:06 +03:00
2026-10-02 19:34:47 +03:00
2026-10-08 12:35:58 +03:00
2026-10-14 22:56:34 +03:00
2026-09-28 04:55:55 +03:00
2026-10-10 15:28:26 +03:00
2026-09-28 05:07:25 +03:00
2026-07-26 03:18:31 +03:00
2026-10-14 14:59:25 +03:00
2026-11-22 19:04:17 +02:00
2026-07-05 16:48:58 +03:00
2026-06-15 12:54:59 +03:00
2026-06-20 19:16:35 +03:00
2026-06-20 19:17:00 +03:00
2026-10-14 11:03:53 +03:00
2026-10-03 14:26:15 +03:00
2026-10-03 10:26:48 +03:00
2026-09-28 23:43:32 +03:00
2026-10-08 12:06:49 +03:00
2026-09-30 10:20:20 +03:00
2026-10-02 20:53:38 +03:00
2026-10-02 19:43:30 +03:00
2026-10-14 21:45:54 +03:00
2026-10-08 12:36:57 +03:00
2026-05-07 15:57:42 +03:00
2026-11-21 18:17:53 +02:00
2026-11-22 18:39:49 +02:00
2026-10-14 09:28:45 +03:00
2026-11-22 21:18:58 +02:00
2026-09-28 13:49:39 +03:00
2026-10-14 17:02:20 +03:00
2026-09-30 11:03:37 +03:00
2026-09-30 12:17:20 +03:00
2026-09-30 12:17:20 +03:00
2026-10-02 16:52:15 +03:00
2026-10-10 11:44:19 +03:00
2026-10-03 00:08:13 +03:00
2026-10-10 11:44:19 +03:00
2026-10-02 17:53:05 +03:00
2026-09-28 05:32:01 +03:00
2026-09-30 12:17:20 +03:00
2026-11-21 18:17:53 +02:00
2026-10-10 15:25:16 +03:00
2026-11-21 18:17:53 +02:00
2026-09-30 12:17:20 +03:00
2026-06-20 17:45:43 +03:00
2026-10-14 14:00:21 +03:00
2026-09-28 04:37:02 +03:00
2026-09-29 16:51:47 +03:00
2026-09-28 16:21:11 +03:00
2026-06-20 17:47:56 +03:00
2026-09-30 02:41:45 +03:00
2025-11-02 09:11:50 +02:00
2026-09-10 20:04:07 +03:00
2026-06-20 19:54:30 +03:00
2026-10-02 15:09:58 +03:00
2026-11-22 20:34:47 +02:00
2026-10-14 15:44:01 +03:00