feat(电子发票): 补齐2019版发票编辑与同步
build.yaml / build (push) Successful in 44s

This commit is contained in:
xiaoqidun committed 2026-10-16 22:03:16 +08:00
1 parent 2904a0d914
commit 3709a62c24
3 files changed
+294 -6

No files matched your search

+5
View File
@@ -1088,6 +1088,11 @@ func invoiceBindingCoverage(before, after Invoice, bindings []InvoiceBinding) er
if a.Name != b.Name || a.Namespace != b.Namespace || a.Context != b.Context || a.Unit != b.Unit {
return fmt.Errorf("bound invoice fact identity changed")
}
if mapped, ok := invoiceEDRMFactBinding(before, a); ok {
if next, valid := invoiceEDRMFactBinding(after, b); valid && mapped.Field == next.Field && mapped.Item == next.Item {
bound[fieldKey{mapped.Field, mapped.Item}] = true
}
}
}
}
for key, value := range old {