Fix last operation
This commit is contained in:
parent
b328b37a78
commit
019758405e
@ -72,7 +72,7 @@ class Vehicle {
|
|||||||
|
|
||||||
v.ownershipPeriods = report.RequestResult.ownershipPeriods.ownershipPeriod.map(p => {
|
v.ownershipPeriods = report.RequestResult.ownershipPeriods.ownershipPeriod.map(p => {
|
||||||
let period = {
|
let period = {
|
||||||
lastOperation: Constants[p.lastOperation] ?? p.lastOperation,
|
lastOperation: Constants.typeOperation[p.lastOperation] ?? p.lastOperation,
|
||||||
ownerType: p.simplePersonType.toLowerCase() == 'legal' ? 'legal' : 'individual',
|
ownerType: p.simplePersonType.toLowerCase() == 'legal' ? 'legal' : 'individual',
|
||||||
from: Date.parse(p.from),
|
from: Date.parse(p.from),
|
||||||
to: 0
|
to: 0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user