Преглед изворни кода

Align LoanFacility field name to AAA documents

master
sp пре 4 година
родитељ
комит
ee5415ef71
2 измењених фајлова са 8 додато и 8 уклоњено
  1. +1
    -1
      pay-in-decode.go
  2. +7
    -7
      payIn-AAA.go

+ 1
- 1
pay-in-decode.go Прегледај датотеку

pi := loan.PayIn{} pi := loan.PayIn{}
pi.Id = 0 pi.Id = 0
pi.Ts = row.Period pi.Ts = row.Period
pi.Amount = row.LoanAmount
pi.Amount = row.LoanFacility
pi.Lender = loan.Lender_AAA pi.Lender = loan.Lender_AAA
pi.Settlement = row.Settlement pi.Settlement = row.Settlement
pi.Balance = row.Balance pi.Balance = row.Balance

+ 7
- 7
payIn-AAA.go Прегледај датотеку

*/ */


type PayInAAARow struct { type PayInAAARow struct {
Period time.Time
LoanNumber string
Settlement time.Time
LoanAmount float64
Balance float64
InTrail float64
Period time.Time
LoanNumber string
Settlement time.Time
LoanFacility float64
Balance float64
InTrail float64
} }


func (m *AiDecodeIncome) decodeAAAPdf(raw string) (e error) { func (m *AiDecodeIncome) decodeAAAPdf(raw string) (e error) {
if len(el) >= 5 { if len(el) >= 5 {
m.LoanNumber = el[0] m.LoanNumber = el[0]
m.Settlement, _ = time.Parse("02-Jan-06", el[1]) m.Settlement, _ = time.Parse("02-Jan-06", el[1])
m.LoanAmount = m.currencyToFloat64(el[2])
m.LoanFacility = m.currencyToFloat64(el[2])
m.Balance = m.currencyToFloat64(el[3]) m.Balance = m.currencyToFloat64(el[3])
m.InTrail = m.currencyToFloat64(el[len(el)-1]) //last element m.InTrail = m.currencyToFloat64(el[len(el)-1]) //last element
valid = true valid = true

Loading…
Откажи
Сачувај