Changeset - 56114cc66ef7
[Not reviewed]
0 3 0
Brett Smith - 4 years ago 2020-07-21 17:20:58
brettcsmith@brettcsmith.org
accrual: Support limited punctuation in payment-method.
3 files changed with 11 insertions and 4 deletions:
0 comments (0 inline, 0 general)
conservancy_beancount/reports/accrual.py
Show inline comments
...
 
@@ -441,9 +441,16 @@ class OutgoingReport(BaseReport):
 
        creditcard = 'Credit Card'
 
        credit_card = creditcard
 
        debitcard = 'Debit Card'
 
        debit_card = debitcard
 
        echeck = 'E-Check'
 
        e_check = echeck
 
        paypal = 'PayPal'
 
        pay_pal = paypal
 
        vendorportal = 'Vendor Portal'
 
        vendor_portal = vendorportal
 
        wire = 'Wire'
 
        fxwire = wire
 
        fx_wire = fxwire
 
        uswire = wire
 
        us_wire = uswire
 

	
...
 
@@ -497,3 +504,3 @@ class OutgoingReport(BaseReport):
 
        try:
 
            method_enum = self.PaymentMethods[method_key]
 
            method_enum = self.PaymentMethods[re.sub(r'[- ]', '_', method_key)]
 
        except KeyError:
setup.py
Show inline comments
...
 
@@ -7,3 +7,3 @@ setup(
 
    description="Plugin, library, and reports for reading Conservancy's books",
 
    version='1.5.12',
 
    version='1.5.13',
 
    author='Software Freedom Conservancy',
tests/books/accruals.beancount
Show inline comments
...
 
@@ -78,3 +78,3 @@
 
  project: "Conservancy"
 
  payment-method: "USD USWire"
 
  payment-method: "USD US Wire"
 
  Liabilities:Payable:Accounts  -200 USD
...
 
@@ -165,3 +165,3 @@
 
  Liabilities:Payable:Accounts  -1,000 EUR {1.100 USD}
 
  payment-method: "eur fxwire"
 
  payment-method: "eur fx-wire"
 
  Expenses:FilingFees  1,000 EUR {1.100 USD}
0 comments (0 inline, 0 general)