Write billing CSV amounts in cents and VAT rates in per mille
The invoicing import reads whole numbers: amounts are now whole cents (400,00 € is 40000) and the VAT rate is in tenths of a percent (10 % is 100, 25,5 % is 255). The column headings say so. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -105,14 +105,14 @@ it('downloads a created billing material as a CSV file for Excel', function () {
|
||||
->and($rows)->toHaveCount(4)
|
||||
->and($rows[1])->toBe([
|
||||
'1', 'Asiakas Oy', 'Yritys', '0737546-2', '', 'Talous', "PL 10\n40100 Jyväskylä", '003707375462', 'E204503', 'PO-1',
|
||||
$first->number, 'Esite', 'Tunnit', 'Taitto', '2,5', '2,5', 'h', '80,50', '25,5', '201,25', '51,32', '252,57',
|
||||
$first->number, 'Esite', 'Tunnit', 'Taitto', '2,5', '2,5', 'h', '8050', '255', '20125', '5132', '25257',
|
||||
])
|
||||
->and($rows[2][12])->toBe('Kulu')
|
||||
->and($rows[2][13])->toEndWith(': Paperi')
|
||||
->and(array_slice($rows[2], 15))->toBe(['1', 'kpl', '10,00', '25,5', '10,00', '2,55', '12,55'])
|
||||
->and(array_slice($rows[2], 15))->toBe(['1', 'kpl', '1000', '255', '1000', '255', '1255'])
|
||||
->and(array_slice($rows[3], 0, 6))->toBe(['2', 'Kalle Kuluttaja', 'Kuluttaja', '', '131052-308T', ''])
|
||||
->and($rows[3][11])->toBe("'=HYPERLINK(\"x\")")
|
||||
->and($rows[3][19])->toBe('80,50');
|
||||
->and($rows[3][19])->toBe('8050');
|
||||
});
|
||||
|
||||
it('uses the billing unit reference when the jobs have none and offers the file on the pages', function () {
|
||||
|
||||
Reference in New Issue
Block a user