Import AP Ledger Data from FOIA 26-117 #43
Labels
No labels
Analysis
bug
Charts
Data
documentation
duplicate
enhancement
Export
good first issue
help wanted
Import
invalid
question
Search
UI
User Data
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lewismoten/wcfac-general-ledger#43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Work on a method to process all files from 2014 to the present (FOIA 26-117) and determine whether existing data can be detected/avoided from being overwritten, or if it will be overwritten. Need to ensure dupe records are not created. Take all the chart of accounts lookups into consideration.
Maybe hash the check number, amount, and vendor ID? The issue is that if transactions are reclassified, the account number (dept, function, description) may change. May need some research on the best way forward. Data may be locked, in which case only Journal entries (FOIA 26-140) can apply changes after approval.
The main goal is to make this a common process that can upload a month (or a few months) of data going forward without worry of duplicating or corrupting data.
Observations:
First four rows are a header, including the report name
AP308with word-wrapping for column namesAP308,,WARREN COUNTY BOARD OF SU, A/P REGULAR,CHECK REGISTER, TIME-16:36:37,, PAGE,1,,,
,, WARREN COUNTY,,,,,,,,,
P/O,VEND., VENDOR, INVOICE, INVOICE, ACCOUNT,, NET,CHECK, CHECK,,
NO., NO., NAME, NO., DATE, NO.,ACCT PD, AMOUNT, NO., DATE, DESCRIPTION,BATCH
4001-012150-2006- - -Most valid lines start with a P/O NO. of
0000000, or a valid number. If the first value on a line is blank before the first delimiter, the line is likely a rollup of check totals, or a second header line. If the first value isAP308(often on the check total line), it is a header.Review the following CSV with a valid line of data, check total, 2 header lines, and another line of data for an example
The last line in each exported file has grand summary lines as well:
The main thing to keep in mind is to ignore lines where the first value is blank or contains anything other than digits.
See /utils/convertApRegister.js and improve where necessary.