Revision d4ec5f32
Von Tamino Steinert vor 5 Monaten hinzugefügt
t/background_job/create_periodic_invoices.t | ||
---|---|---|
14 | 14 |
|
15 | 15 |
package main; |
16 | 16 |
|
17 |
use Test::More tests => 56;
|
|
17 |
use Test::More tests => 58;
|
|
18 | 18 |
|
19 | 19 |
use lib 't'; |
20 | 20 |
use strict; |
... | ... | |
114 | 114 |
create_invoices(periodic_invoices_config => { periodicity => 'q', order_value_periodicity => 'y', start_date => DateTime->from_kivitendo('01.01.2013') }); |
115 | 115 |
are_invoices 'p=q ovp=y',[ '01.01.2013', 83.33 ], [ '01.04.2013', 83.33 ], [ '01.07.2013', 83.33 ], [ '01.10.2013', 83.34 ], [ '01.01.2014', 83.33 ]; |
116 | 116 |
|
117 |
create_invoices(periodic_invoices_config => { periodicity => 'q', order_value_periodicity => 'y', start_date => DateTime->from_kivitendo('31.01.2013') }); |
|
118 |
are_invoices 'p=q ovp=y',[ '31.01.2013', 83.33 ], [ '30.04.2013', 83.33 ], [ '31.07.2013', 83.33 ], [ '31.10.2013', 83.34 ], [ '31.01.2014', 83.33 ]; |
|
119 |
|
|
117 | 120 |
create_invoices(periodic_invoices_config => { periodicity => 'b', order_value_periodicity => 'y', start_date => DateTime->from_kivitendo('01.01.2013') }); |
118 | 121 |
are_invoices 'p=b ovp=y',[ '01.01.2013', 166.67 ], [ '01.07.2013', 166.66 ], [ '01.01.2014', 166.67 ]; |
119 | 122 |
|
Auch abrufbar als: Unified diff
t/b/create_periodic_invoices: Monatsgrenze testen