View | Details | Raw Unified | Return to bug 20169
Collapse All | Expand All

(-)a/t/db_dependent/Accounts.t (-2 / +2 lines)
Lines 395-401 subtest "More Koha::Account::pay tests" => sub { Link Here
395
        is( $stat->type, 'payment', "Correct statistic type" );
395
        is( $stat->type, 'payment', "Correct statistic type" );
396
        is( $stat->branch, $branch, "Correct branch logged to statistics" );
396
        is( $stat->branch, $branch, "Correct branch logged to statistics" );
397
        is( $stat->borrowernumber, $borrowernumber, "Correct borrowernumber logged to statistics" );
397
        is( $stat->borrowernumber, $borrowernumber, "Correct borrowernumber logged to statistics" );
398
        is( $stat->value, "$amount" . "\.0000", "Correct amount logged to statistics" );
398
        is( 0 + $stat->value, $amount, "Correct amount logged to statistics" );
399
    }
399
    }
400
};
400
};
401
401
Lines 449-455 subtest "Even more Koha::Account::pay tests" => sub { Link Here
449
        is( $stat->type, 'payment', "Correct statistic type" );
449
        is( $stat->type, 'payment', "Correct statistic type" );
450
        is( $stat->branch, $branch, "Correct branch logged to statistics" );
450
        is( $stat->branch, $branch, "Correct branch logged to statistics" );
451
        is( $stat->borrowernumber, $borrowernumber, "Correct borrowernumber logged to statistics" );
451
        is( $stat->borrowernumber, $borrowernumber, "Correct borrowernumber logged to statistics" );
452
        is( $stat->value, "$partialamount" . "\.0000", "Correct amount logged to statistics" );
452
        is( 0 + $stat->value, $partialamount, "Correct amount logged to statistics" );
453
    }
453
    }
454
};
454
};
455
455
(-)a/t/db_dependent/Bookseller.t (-3 / +2 lines)
Lines 67-73 my $sample_supplier1 = { Link Here
67
    listincgst    => 1,
67
    listincgst    => 1,
68
    invoiceincgst => 1,
68
    invoiceincgst => 1,
69
    tax_rate       => '1.0000',
69
    tax_rate       => '1.0000',
70
    discount      => '1.0000',
70
    discount      => 1.0000,
71
    notes         => 'notes1',
71
    notes         => 'notes1',
72
    deliverytime  => undef
72
    deliverytime  => undef
73
};
73
};
Lines 87-93 my $sample_supplier2 = { Link Here
87
    listincgst    => 1,
87
    listincgst    => 1,
88
    invoiceincgst => 1,
88
    invoiceincgst => 1,
89
    tax_rate       => '2.0000',
89
    tax_rate       => '2.0000',
90
    discount      => '2.0000',
90
    discount      => 2.0000,
91
    notes         => 'notes2',
91
    notes         => 'notes2',
92
    deliverytime  => 2
92
    deliverytime  => 2
93
};
93
};
94
- 

Return to bug 20169