Revision bd1f6060
Von Tamino Steinert vor etwa 2 Monaten hinzugefügt
t/controllers/financial_overview/sales_orders.t | ||
---|---|---|
118 | 118 |
for qw(purchase_invoices purchase_orders requests_for_quotation sales_invoices sales_quotations); |
119 | 119 |
|
120 | 120 |
is_deeply($ctrl->data->{sales_orders}, |
121 |
{ months => [ 0, 0, 0, 0, 27.7775, 27.7775, 27.7775, 27.7775, 27.7775, 27.7775, 27.7775, 27.7775 ], quarters => [ 0, 55.555, 83.3325, 83.3325 ], year => 222.22 },
|
|
121 |
{ months => [ 0, 0, 0, 0, 27.78, 27.78, 27.78, 27.78, 27.78, 27.78, 27.78, 27.78 ], quarters => [ 0, 55.56, 83.34, 83.34 ], year => 222.24 },
|
|
122 | 122 |
"periodic conf p=m ovp=y, no invoices, data for sales_orders"); |
123 | 123 |
is_deeply($ctrl->data->{sales_orders_per_inv}, |
124 | 124 |
{ months => [ 0, 0, 333.33, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], quarters => [ 333.33, 0, 0, 0 ], year => 333.33 }, |
... | ... | |
140 | 140 |
for qw(purchase_invoices purchase_orders requests_for_quotation sales_invoices sales_quotations); |
141 | 141 |
|
142 | 142 |
is_deeply($ctrl->data->{sales_orders}, |
143 |
{ months => [ 0, 83.3325, 0, 0, 83.3325, 0, 0, 83.3325, 0, 0, 83.3325, 0 ], quarters => [ 83.3325, 83.3325, 83.3325, 83.3325 ], year => 333.33 },
|
|
143 |
{ months => [ 0, 83.34, 0, 0, 83.33, 0, 0, 83.33, 0, 0, 83.33, 0 ], quarters => [ 83.34, 83.33, 83.33, 83.33 ], year => 333.33 },
|
|
144 | 144 |
"periodic conf p=q ovp=y, no invoices, starting previous year, data for sales_orders"); |
145 | 145 |
is_deeply($ctrl->data->{sales_orders_per_inv}, |
146 | 146 |
{ months => [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], quarters => [ 0, 0, 0, 0 ], year => 0 }, |
... | ... | |
164 | 164 |
for qw(purchase_invoices purchase_orders requests_for_quotation sales_invoices sales_quotations); |
165 | 165 |
|
166 | 166 |
is_deeply($ctrl->data->{sales_orders}, |
167 |
{ months => [ 0, 83.3325, 0, 0, 83.3325, 0, 0, 83.3325, 0, 0, 0, 0 ], quarters => [ 83.3325, 83.3325, 83.3325, 0 ], year => 249.9975 },
|
|
167 |
{ months => [ 0, 83.34, 0, 0, 83.33, 0, 0, 83.33, 0, 0, 0, 0 ], quarters => [ 83.34, 83.33, 83.33, 0 ], year => 250 },
|
|
168 | 168 |
"periodic conf p=q ovp=y, no invoices, starting previous year, ending middle of year, data for sales_orders"); |
169 | 169 |
is_deeply($ctrl->data->{sales_orders_per_inv}, |
170 | 170 |
{ months => [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], quarters => [ 0, 0, 0, 0 ], year => 0 }, |
Auch abrufbar als: Unified diff
S:C:FinancialOverview: Nutze Helferfunktion zum Berechnen von Wied. Rech.