diff --git a/src/report/locale-specific/us/taxtxf-de_DE.scm b/src/report/locale-specific/us/taxtxf-de_DE.scm index 891d7be592..c9573b43d4 100644 --- a/src/report/locale-specific/us/taxtxf-de_DE.scm +++ b/src/report/locale-specific/us/taxtxf-de_DE.scm @@ -197,7 +197,7 @@ (define (gnc:account-get-txf-code account) (let ((code (xaccAccountGetTaxUSCode account))) - (string->symbol (if code code "N000")))) + (string->symbol (if (string-null? code) "N000" code)))) (define (gnc:get-txf-format code income?) (gnc:txf-get-format (if income? @@ -207,7 +207,7 @@ (define (gnc:account-get-txf-payer-source account) (let ((pns (xaccAccountGetTaxUSPayerNameSource account))) - (string->symbol (if pns pns "keine")))) + (string->symbol (if (string-null? pns) "keine" pns)))) ;; check for duplicate txf codes (define (txf-check-dups account) @@ -318,7 +318,7 @@ (gnc-account-get-parent account) account)) (name (xaccAccountGetName named-acct))) - (if name + (if (not (string-null? name)) name (begin (display diff --git a/src/report/locale-specific/us/taxtxf.scm b/src/report/locale-specific/us/taxtxf.scm index 808820b1c0..87aa712927 100644 --- a/src/report/locale-specific/us/taxtxf.scm +++ b/src/report/locale-specific/us/taxtxf.scm @@ -181,7 +181,7 @@ (define (gnc:account-get-txf-code account) (let ((code (xaccAccountGetTaxUSCode account))) - (string->symbol (if code code "N000")))) + (string->symbol (if (string-null? code) "N000" code)))) (define (gnc:get-txf-format code income?) (gnc:txf-get-format (if income? @@ -191,7 +191,7 @@ (define (gnc:account-get-txf-payer-source account) (let ((pns (xaccAccountGetTaxUSPayerNameSource account))) - (string->symbol (if pns pns "none")))) + (string->symbol (if (string-null? pns) "none" pns)))) ;; check for duplicate txf codes (define (txf-check-dups account) @@ -293,7 +293,7 @@ (gnc-account-get-parent account) account)) (name (xaccAccountGetName named-acct))) - (if name + (if (not (string-null? name)) name (begin (display