FINTLabs/fint-betaling-backend

Classification of core documents

Opened this issue · 1 comments

We will use classification of documents for searching/filtering.

Guidlines:

  • Automatic tagging
  • No user defined tags
  • A document should have enough information to be able to produce the core meaning of the document.
  • Classification codes may be visible for end users.
  • The display name may be changed.

Classification: (Identified by model attribute):

Recipient (Claim -> Customer)
Sender (Claim -> Company)
Creater (Not created -> Model needs update)
Organisation Name (Claim -> Company -> Top Level down to «oppdragsgiver?)
Organisation Number(Claim -> Company -> Top Level org number)
School Owner (Not created -> Get from /Me API)
School (Not created -> Get from /Me API + front end choice)
Basis Group (Claim -> elev link -> for each elevforhold -> basisgruppe) potensielt et filter på school
ContactTeacherGroup (Claim -> elev link -> for each elevforhold -> kontaktlærergruppe)
TeachingGroup (Claim -> elev link -> for each elevforhold -> undervisningsgruppe)
Created (Claim -> ClaimStatus: «STORED»)
Issued (Claim -> ClaimStatus: «SENT»)
Paid (Not created -> Model needs update -> maybe ClaimStatus: «PAYED»)
Credited (Not created -> Model needs update -> )
CreditedAmount (Not created -> Model needs update -> )
Recipient Address:
City (Claim -> customer -> postadresse -> poststed)
Zip number (Claim -> customer -> postadresse -> postnummer)
Address (Claim -> customer -> postadresse -> adresselinjen)
CreatedDate (Not created -> Model needs update -> Date created)
LastModifiedDate (Not created -> Model needs update -> Date created)
InvoiceSentDate (Claim -> invoiceUri -> fakturadato)
InvoiceDueDate (Claim -> invoiceUri -> forfallsdato)
RequestedNumberOfDaysToPaymentDeadLine ( Claim -> RequestedNumberOfDaysToPaymentDeadLine )
Product Name (Claim -> InvoiceUri -> fakturalinjer -> foreachObject -> fritekst)
Product Number (Claim -> InvoiceUri -> fakturalinjer -> foreachObject -> links -> varelinje -> kode)
Number of products (Claim -> InvoiceUri -> count(fakturalinjer))
Number of items. (Claim -> InvoiceUri -> fakturalinjer -> foreachObject -> sum(antall))
Original amountDue (Claim -> invoiceURI - Sum of products «netto» times «antall» for all order lines)

Issues:

What if you don’t log in with Feide?
Add to model what system the user used to pay the invoice