Add ledger, address/contact sort, and tighter schema-graph layout.
Replace manifestarticle.transactedamount with an append-only ledger, add sort on entity address/contact, and allow same-rank FKs with crossing-aware exits in the graph.
This commit is contained in:
@@ -33,7 +33,6 @@ SELECT
|
||||
a.sku,
|
||||
ma.amount,
|
||||
ma.net,
|
||||
ma.transactedamount AS transactedAmount,
|
||||
ma.rebate,
|
||||
t.rate AS tax,
|
||||
ma.comment
|
||||
@@ -79,7 +78,6 @@ INSERT INTO manifestarticle (
|
||||
article_id,
|
||||
amount,
|
||||
net,
|
||||
transactedamount,
|
||||
comment,
|
||||
rebate,
|
||||
tax_id
|
||||
@@ -90,7 +88,6 @@ VALUES (
|
||||
@articleId,
|
||||
@amount,
|
||||
@net,
|
||||
@transactedAmount,
|
||||
@comment,
|
||||
@rebate,
|
||||
@taxId
|
||||
|
||||
Reference in New Issue
Block a user