work on document form

This commit is contained in:
2025-07-11 15:41:29 +02:00
parent 86801e10c2
commit 2a7e9df334
6 changed files with 90 additions and 43 deletions

View File

@@ -212,8 +212,8 @@ public final class Document implements Mappable {
map.put(DATE, date);
map.put(STATE, state.code);
map.put(FIELD_DELIVERY, delivery);
map.put(FIELD_HEAD, markdown(head));
map.put(FIELD_FOOTER, markdown(footer));
map.put(FIELD_HEAD, Map.of(SOURCE,head,RENDERED,markdown(head)));
map.put(FIELD_FOOTER, Map.of(SOURCE,footer,RENDERED,markdown(footer)));
map.put(FIELD_CURRENCY, currency);
map.put(SENDER, sender.toMap());
map.put(FIELD_CUSTOMER, customer.toMap());