...
Resolved in BrightInvoiceRepository.GetByCustomerAsync asas "local appsettings config (Settings.Invoices:*) ?? company BCHEC flag". The three
UDSMARK visibility variants are independent and compose. Each active flag appendsits appends its own SQL clause; inactive flags add nothing (no runtime OR-gates).
...
The endpoint returns a JSON array of invoice objects (no wrapper). Each object contains a nested `Info` array of supplementary key/value (or title/value) entries.
...
PaidAmount source: OUTER APPLY over Sonlinc.AKOND where TARIFART='PBSI' for the
same the same INSTNR+FORBNR+UDEBNR+REGNINGNR+FIRMANR; SUM(KR*ANTAL)*-1
(PBSI rows are
negativeare negative), ISNULL(...,0). Not exposed as its own response field — only feeds
RemainingAmount and the status derivation.
...