Add PFL and PFH files.

This commit is contained in:
Patrick Fic
2025-03-19 07:19:49 -07:00
parent 4f3d8cf754
commit 5ddfe4d86f
9 changed files with 228 additions and 10 deletions

View File

@@ -2,8 +2,8 @@ import { DBFFile } from "dbffile";
import log from "electron-log/main";
import _ from "lodash";
import deepLowerCaseKeys from "../../util/deepLowercaseKeys";
import { OwnerRecordInterface, DecodedAd1 } from "./decode-ad1.interface";
import errorTypeCheck from "../../util/errorTypeCheck";
import { DecodedAd1, OwnerRecordInterface } from "./decode-ad1.interface";
const DecodeAD1 = async (
extensionlessFilePath: string
@@ -14,7 +14,7 @@ const DecodeAD1 = async (
} catch (error) {
log.error("Error opening AD1 File.", errorTypeCheck(error));
dbf = await DBFFile.open(`${extensionlessFilePath}.AD1`);
log.log("Found AD1 file using regular CIECA Id.");
log.log("Trying to find AD1 file using regular CIECA Id.");
}
if (!dbf) {