=================================================================== RCS file: /cvs/pta/pta_import.1,v retrieving revision 1.14 retrieving revision 1.17 diff -u -p -r1.14 -r1.17 --- pta/pta_import.1 2020/12/11 20:00:27 1.14 +++ pta/pta_import.1 2021/06/04 03:09:50 1.17 @@ -1,4 +1,4 @@ -.\" $Id: pta_import.1,v 1.14 2020/12/11 20:00:27 freda Exp $ +.\" $Id: pta_import.1,v 1.17 2021/06/04 03:09:50 freda Exp $ .\" .\" Copyright (c) 2020 Freda Bundchen .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: December 11 2020 $ +.Dd $Mdocdate: June 4 2021 $ .Dt PTA_IMPORT 1 .Os .Sh NAME @@ -70,6 +70,7 @@ If .Ar debit_column is omitted, amounts preceded by a minus sign or enclosed in parentheses are booked to the debit side. +This rule is required in every configuration file. .It Ic COSTCENTER Ar costcenter_column The column number in the CSV file containing the cost center. Numbering starts from 1. @@ -90,10 +91,11 @@ This rule is required in every configuration file. The column numbers in the CSV file to be concatenated to form the text string for the journal entry. Numbering starts from 1. +This rule is required in every configuration file. .It Ic DELIM Ar delimiter The character used to separate fields. -This rule is required in every configuration file. Most financial institutions use commas but some use semicolons. +This rule is required in every configuration file. .It Ic HEADER Ar header Skip the first line of the CSV file if it matches the .Ar header @@ -110,17 +112,20 @@ securities is appended to the text string. Expects that every field starts and ends with the .Ar quote character. -.It Ar selector account_number booking_identifier +.It Ar selector account_number booking_identifier Op Ar subaccount Lines in the CSV file that match the .Ar selector are associated with the contra account -.Ar account_number +.Ar account_number , +the optional +.Ar subaccount , and are assigned the .Ar booking_identifier . The selector is a string consisting of regular expressions separated by delimiters defined in the .Ic DELIM rule. +These rules appear after all other rule types. .El .Sh FILES Example configuration files: @@ -162,6 +167,7 @@ to the corresponding CSV file may be seen in .Pa ./regress/import/expected/accountname.out . .Sh SEE ALSO +.Xr pta 1 , .Xr pta-accounts 5 , .Xr pta-journal 5 , .Xr pta-glossary 7