#655 Error exporting aging to csv

1.3
closed-accepted
None
5
2012-10-03
2012-08-19
No

Discussion

  • Nick Prater

    Nick Prater - 2012-09-26

    This mailing list thread relates to the same problem in CSV.pm:
    http://sourceforge.net/mailarchive/message.php?msg_id=29804251

    The below patch fixes this bug, enabling Debtor Aging to be exported as CSV in ledgersmb 1.3.22. I'll also try to attach it as a file.

    --- CSV.pm 2012-09-26 14:58:23.441083457 +0100
    +++ CSV.original.pm 2012-06-17 11:13:17.000000000 +0100
    @@ -70,15 +70,12 @@ sub preprocess {
    # Scalars or GMP objects (which are SCALAR refs) --CT
    if ($type eq 'SCALAR' or $type eq 'Math::BigInt::GMP') {
    $vars = $$rawvars;
    - return unless defined $vars;
    } else {
    $vars = $rawvars;
    }
    $vars =~ s/(^ +| +$)//g;
    $vars =~ s/"/""/g;
    $vars = qq|"$vars"| if $vars =~ /[^0-9.+-]/;
    - } elsif ( $type eq 'CODE' ) { # a code reference makes no sense
    - return undef;
    } else { # hashes and objects
    for ( keys %{$rawvars} ) {
    $vars->{$_} = preprocess( $rawvars->{$_} );

     
  • Havard Sorli

    Havard Sorli - 2012-10-03
    • milestone: --> 1.3
    • assigned_to: nobody --> hasorli
    • status: open --> closed-accepted
     
  • Havard Sorli

    Havard Sorli - 2012-10-03

    Fixed with patch from nick_prater - Revision: 5131

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks