Add quote and order stores plus ledger hash_version.

Mirror delivery on manifest for quote/order with customer entityId (excluding Lieferanten/POS), and support entity.list role=customer for pickers.
This commit is contained in:
seb
2026-08-06 19:58:35 +02:00
parent ae549fd022
commit b095ab6199
12 changed files with 987 additions and 45 deletions

View File

@@ -31,8 +31,8 @@
</g>
<g id="clust5" class="cluster">
<title>cluster_commerce</title>
<path fill="#ffffff" fill-opacity="0.376471" stroke="#a0aec0" d="M20,-8C20,-8 486,-8 486,-8 492,-8 498,-14 498,-20 498,-20 498,-1549.8 498,-1549.8 498,-1555.8 492,-1561.8 486,-1561.8 486,-1561.8 20,-1561.8 20,-1561.8 14,-1561.8 8,-1555.8 8,-1549.8 8,-1549.8 8,-20 8,-20 8,-14 14,-8 20,-8"/>
<text xml:space="preserve" text-anchor="middle" x="86.03" y="-1544.3" font-family="Helvetica,sans-Serif" font-size="15.00" fill="#1a365d">Pricing &amp; Documents</text>
<path fill="#ffffff" fill-opacity="0.376471" stroke="#a0aec0" d="M20,-8C20,-8 486,-8 486,-8 492,-8 498,-14 498,-20 498,-20 498,-1563.2 498,-1563.2 498,-1569.2 492,-1575.2 486,-1575.2 486,-1575.2 20,-1575.2 20,-1575.2 14,-1575.2 8,-1569.2 8,-1563.2 8,-1563.2 8,-20 8,-20 8,-14 14,-8 20,-8"/>
<text xml:space="preserve" text-anchor="middle" x="86.03" y="-1557.7" font-family="Helvetica,sans-Serif" font-size="15.00" fill="#1a365d">Pricing &amp; Documents</text>
</g>
<g id="clust6" class="cluster">
<title>cluster_units</title>
@@ -1468,35 +1468,39 @@
<!-- ledger -->
<g id="node31" class="node">
<title>ledger</title>
<polygon fill="#bee3f8" stroke="none" points="29.58,-1493.4 29.58,-1517.8 222.42,-1517.8 222.42,-1493.4 29.58,-1493.4"/>
<polygon fill="none" stroke="#a0aec0" points="29.58,-1493.4 29.58,-1517.8 222.42,-1517.8 222.42,-1493.4 29.58,-1493.4"/>
<text xml:space="preserve" text-anchor="start" x="107.99" y="-1503" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00" fill="#1a365d">ledger</text>
<polygon fill="#ebf8ff" stroke="none" points="29.58,-1466.6 29.58,-1493.4 222.42,-1493.4 222.42,-1466.6 29.58,-1466.6"/>
<polygon fill="none" stroke="#a0aec0" points="29.58,-1466.6 29.58,-1493.4 222.42,-1493.4 222.42,-1466.6 29.58,-1466.6"/>
<text xml:space="preserve" text-anchor="start" x="34.58" y="-1476.8" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="14.00" fill="#2d3748">id</text>
<text xml:space="preserve" text-anchor="start" x="187.92" y="-1478.3" font-family="Helvetica,sans-Serif" font-size="9.00" fill="#718096">INT </text>
<text xml:space="preserve" text-anchor="start" x="204.92" y="-1478.3" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="9.00" fill="#718096">PK</text>
<polygon fill="#ebf8ff" stroke="none" points="29.58,-1439.8 29.58,-1466.6 222.42,-1466.6 222.42,-1439.8 29.58,-1439.8"/>
<polygon fill="none" stroke="#a0aec0" points="29.58,-1439.8 29.58,-1466.6 222.42,-1466.6 222.42,-1439.8 29.58,-1439.8"/>
<text xml:space="preserve" text-anchor="start" x="34.58" y="-1450" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="14.00" fill="#2d3748">manifestarticle_id</text>
<text xml:space="preserve" text-anchor="start" x="188.42" y="-1451.5" font-family="Helvetica,sans-Serif" font-size="9.00" fill="#718096">INT </text>
<text xml:space="preserve" text-anchor="start" x="205.42" y="-1451.5" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="9.00" fill="#718096">FK</text>
<polygon fill="#ffffff" stroke="none" points="29.58,-1413 29.58,-1439.8 222.42,-1439.8 222.42,-1413 29.58,-1413"/>
<polygon fill="none" stroke="#a0aec0" points="29.58,-1413 29.58,-1439.8 222.42,-1439.8 222.42,-1413 29.58,-1413"/>
<text xml:space="preserve" text-anchor="start" x="34.58" y="-1420.8" font-family="Helvetica,sans-Serif" font-size="14.00" fill="#2d3748">transaction_type</text>
<text xml:space="preserve" text-anchor="start" x="145.9" y="-1422.8" font-family="Helvetica,sans-Serif" font-size="9.00" fill="#718096">NVARCHAR(100)</text>
<polygon fill="#f7fafc" stroke="none" points="29.58,-1386.2 29.58,-1413 222.42,-1413 222.42,-1386.2 29.58,-1386.2"/>
<polygon fill="none" stroke="#a0aec0" points="29.58,-1386.2 29.58,-1413 222.42,-1413 222.42,-1386.2 29.58,-1386.2"/>
<text xml:space="preserve" text-anchor="start" x="34.58" y="-1394" font-family="Helvetica,sans-Serif" font-size="14.00" fill="#2d3748">amount</text>
<text xml:space="preserve" text-anchor="start" x="188.41" y="-1396" font-family="Helvetica,sans-Serif" font-size="9.00" fill="#718096">FLOAT</text>
<polygon fill="#ffffff" stroke="none" points="29.58,-1359.4 29.58,-1386.2 222.42,-1386.2 222.42,-1359.4 29.58,-1359.4"/>
<polygon fill="none" stroke="#a0aec0" points="29.58,-1359.4 29.58,-1386.2 222.42,-1386.2 222.42,-1359.4 29.58,-1359.4"/>
<text xml:space="preserve" text-anchor="start" x="34.58" y="-1367.2" font-family="Helvetica,sans-Serif" font-size="14.00" fill="#2d3748">transaction_text</text>
<text xml:space="preserve" text-anchor="start" x="141.42" y="-1369.2" font-family="Helvetica,sans-Serif" font-size="9.00" fill="#718096">NVARCHAR(MAX)</text>
<polygon fill="#f7fafc" stroke="none" points="29.58,-1332.6 29.58,-1359.4 222.42,-1359.4 222.42,-1332.6 29.58,-1332.6"/>
<polygon fill="none" stroke="#a0aec0" points="29.58,-1332.6 29.58,-1359.4 222.42,-1359.4 222.42,-1332.6 29.58,-1332.6"/>
<text xml:space="preserve" text-anchor="start" x="34.58" y="-1340.4" font-family="Helvetica,sans-Serif" font-size="14.00" fill="#2d3748">prev_hash?</text>
<text xml:space="preserve" text-anchor="start" x="145.9" y="-1342.4" font-family="Helvetica,sans-Serif" font-size="9.00" fill="#718096">NVARCHAR(128)</text>
<polygon fill="#bee3f8" stroke="none" points="29.58,-1506.8 29.58,-1531.2 222.42,-1531.2 222.42,-1506.8 29.58,-1506.8"/>
<polygon fill="none" stroke="#a0aec0" points="29.58,-1506.8 29.58,-1531.2 222.42,-1531.2 222.42,-1506.8 29.58,-1506.8"/>
<text xml:space="preserve" text-anchor="start" x="107.99" y="-1516.4" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00" fill="#1a365d">ledger</text>
<polygon fill="#ebf8ff" stroke="none" points="29.58,-1480 29.58,-1506.8 222.42,-1506.8 222.42,-1480 29.58,-1480"/>
<polygon fill="none" stroke="#a0aec0" points="29.58,-1480 29.58,-1506.8 222.42,-1506.8 222.42,-1480 29.58,-1480"/>
<text xml:space="preserve" text-anchor="start" x="34.58" y="-1490.2" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="14.00" fill="#2d3748">id</text>
<text xml:space="preserve" text-anchor="start" x="187.92" y="-1491.7" font-family="Helvetica,sans-Serif" font-size="9.00" fill="#718096">INT </text>
<text xml:space="preserve" text-anchor="start" x="204.92" y="-1491.7" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="9.00" fill="#718096">PK</text>
<polygon fill="#ebf8ff" stroke="none" points="29.58,-1453.2 29.58,-1480 222.42,-1480 222.42,-1453.2 29.58,-1453.2"/>
<polygon fill="none" stroke="#a0aec0" points="29.58,-1453.2 29.58,-1480 222.42,-1480 222.42,-1453.2 29.58,-1453.2"/>
<text xml:space="preserve" text-anchor="start" x="34.58" y="-1463.4" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="14.00" fill="#2d3748">manifestarticle_id</text>
<text xml:space="preserve" text-anchor="start" x="188.42" y="-1464.9" font-family="Helvetica,sans-Serif" font-size="9.00" fill="#718096">INT </text>
<text xml:space="preserve" text-anchor="start" x="205.42" y="-1464.9" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="9.00" fill="#718096">FK</text>
<polygon fill="#ffffff" stroke="none" points="29.58,-1426.4 29.58,-1453.2 222.42,-1453.2 222.42,-1426.4 29.58,-1426.4"/>
<polygon fill="none" stroke="#a0aec0" points="29.58,-1426.4 29.58,-1453.2 222.42,-1453.2 222.42,-1426.4 29.58,-1426.4"/>
<text xml:space="preserve" text-anchor="start" x="34.58" y="-1434.2" font-family="Helvetica,sans-Serif" font-size="14.00" fill="#2d3748">transaction_type</text>
<text xml:space="preserve" text-anchor="start" x="145.9" y="-1436.2" font-family="Helvetica,sans-Serif" font-size="9.00" fill="#718096">NVARCHAR(100)</text>
<polygon fill="#f7fafc" stroke="none" points="29.58,-1399.6 29.58,-1426.4 222.42,-1426.4 222.42,-1399.6 29.58,-1399.6"/>
<polygon fill="none" stroke="#a0aec0" points="29.58,-1399.6 29.58,-1426.4 222.42,-1426.4 222.42,-1399.6 29.58,-1399.6"/>
<text xml:space="preserve" text-anchor="start" x="34.58" y="-1407.4" font-family="Helvetica,sans-Serif" font-size="14.00" fill="#2d3748">amount</text>
<text xml:space="preserve" text-anchor="start" x="188.41" y="-1409.4" font-family="Helvetica,sans-Serif" font-size="9.00" fill="#718096">FLOAT</text>
<polygon fill="#ffffff" stroke="none" points="29.58,-1372.8 29.58,-1399.6 222.42,-1399.6 222.42,-1372.8 29.58,-1372.8"/>
<polygon fill="none" stroke="#a0aec0" points="29.58,-1372.8 29.58,-1399.6 222.42,-1399.6 222.42,-1372.8 29.58,-1372.8"/>
<text xml:space="preserve" text-anchor="start" x="34.58" y="-1380.6" font-family="Helvetica,sans-Serif" font-size="14.00" fill="#2d3748">transaction_text</text>
<text xml:space="preserve" text-anchor="start" x="141.42" y="-1382.6" font-family="Helvetica,sans-Serif" font-size="9.00" fill="#718096">NVARCHAR(MAX)</text>
<polygon fill="#f7fafc" stroke="none" points="29.58,-1346 29.58,-1372.8 222.42,-1372.8 222.42,-1346 29.58,-1346"/>
<polygon fill="none" stroke="#a0aec0" points="29.58,-1346 29.58,-1372.8 222.42,-1372.8 222.42,-1346 29.58,-1346"/>
<text xml:space="preserve" text-anchor="start" x="34.58" y="-1353.8" font-family="Helvetica,sans-Serif" font-size="14.00" fill="#2d3748">hash_version</text>
<text xml:space="preserve" text-anchor="start" x="202.92" y="-1355.8" font-family="Helvetica,sans-Serif" font-size="9.00" fill="#718096">INT</text>
<polygon fill="#ffffff" stroke="none" points="29.58,-1319.2 29.58,-1346 222.42,-1346 222.42,-1319.2 29.58,-1319.2"/>
<polygon fill="none" stroke="#a0aec0" points="29.58,-1319.2 29.58,-1346 222.42,-1346 222.42,-1319.2 29.58,-1319.2"/>
<text xml:space="preserve" text-anchor="start" x="34.58" y="-1327" font-family="Helvetica,sans-Serif" font-size="14.00" fill="#2d3748">prev_hash?</text>
<text xml:space="preserve" text-anchor="start" x="145.9" y="-1329" font-family="Helvetica,sans-Serif" font-size="9.00" fill="#718096">NVARCHAR(128)</text>
</g>
<!-- manifestarticle -->
<g id="node32" class="node">
@@ -1547,7 +1551,7 @@
<g id="edge51" class="edge">
<title>ledger:ne&#45;&gt;manifestarticle:n</title>
<g id="a_edge51"><a xlink:title="FK_ledger_manifestarticle">
<path fill="none" stroke="#2b6cb0" stroke-width="1.4" d="M223.42,-1466.6C223.42,-1466.6 226.35,-1179.57 226.91,-1124.63"/>
<path fill="none" stroke="#2b6cb0" stroke-width="1.4" d="M223.42,-1480C223.42,-1480 226.36,-1180.72 226.91,-1124.61"/>
<polygon fill="#2b6cb0" stroke="#2b6cb0" stroke-width="1.4" points="229.36,-1124.74 226.98,-1117.72 224.46,-1124.69 229.36,-1124.74"/>
</a>
</g>

Before

Width:  |  Height:  |  Size: 186 KiB

After

Width:  |  Height:  |  Size: 186 KiB