taxtank-core 3.0.24 → 3.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -29328,6 +29328,9 @@ class VehicleLogbookForm extends AbstractForm {
|
|
|
29328
29328
|
break;
|
|
29329
29329
|
// Create the non-first
|
|
29330
29330
|
case !this.logbook.id && !!this.logbooks.length:
|
|
29331
|
+
if (!this.get('odometerStart').value) {
|
|
29332
|
+
this.get('odometerStart').setValue(this.logbooks.last.odometerEnd);
|
|
29333
|
+
}
|
|
29331
29334
|
this.get('odometerStart').disable();
|
|
29332
29335
|
this.get('odometerEnd').setValidators(Validators.min(this.logbooks.last.odometerEnd));
|
|
29333
29336
|
this.get('date').setValidators(dateRangeValidator(this.logbooks.last.date, new FinancialYear().endDate));
|