bug-recutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-recutils] How should I declare a currency or money field that has v


From: recutils
Subject: [bug-recutils] How should I declare a currency or money field that has values like: "$150" or "($45.12)" ?
Date: Sat, 10 Aug 2019 08:06:44 -0500

I tried declaring 'Amount' as 'real' but it errs out on 'recfix -sort'.
How should I declare a currency or money field that has values like: "$150" or 
"($45.12)" ?

Example header:

    %rec: Uwcu_checking
    %type: Posted_Date date
    # %type: Amount real
    %sort: Posted_Date

Example records:

    AccountNumber: 123456789
    AccountType: CK
    Posted_Date: 12/13/2018
    Amount: ($179.99)
    Description: ACH:PAYPAL -INST XFER
    Category: Shopping

    AccountNumber: 123456789
    AccountType: CK
    Posted_Date: 12/5/2018
    Amount: ($21.73)
    Description: ACH:TARGET DEBIT CRD -ACH TRAN
    Category: Groceries

    AccountNumber: 123456789
    AccountType: CK
    Posted_Date: 12/5/2018
    Amount: $925.00
    Description: ACH:UW CREDIT UNION -P2P
    Category: Transfer

--
thanks,
Tom
Milwaukee WI, USA



reply via email to

[Prev in Thread] Current Thread [Next in Thread]