diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-11-01 08:58:34 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-11-01 08:58:34 +0100 |
| commit | 9b8664daf17dac9efb1f4add9d00c562e4ddbf40 (patch) | |
| tree | 6c3396be134996ee3ce75b0ff9a2eca09452104d /tests/test_helper.cpp | |
| parent | 60488d722bf29f3ff0ce3e08b90f30523a8d7b6d (diff) | |
fix tests
Diffstat (limited to 'tests/test_helper.cpp')
| -rw-r--r-- | tests/test_helper.cpp | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/tests/test_helper.cpp b/tests/test_helper.cpp index 980fe8c..c99bdd0 100644 --- a/tests/test_helper.cpp +++ b/tests/test_helper.cpp @@ -48,41 +48,6 @@ static contact _create_nl_consumer() return pw; } - -static billing_item _create_bi1() -{ - billing_item item = administration::billing_item_create_empty(); - item.amount = 1; - item.amount_is_percentage = 0; - strops::copy(item.description, "Shampoo", MAX_LEN_LONG_DESC); - item.net_per_item = 10.00f; - item.discount = 2.0f; - item.discount_is_percentage = 0; - - tax_rate rate; - administration::tax_rate_get_by_internal_code(&rate, "NL/21"); - strops::copy(item.tax_internal_code, rate.internal_code, MAX_LEN_SHORT_DESC); - - return item; -} - -static billing_item _create_bi2() -{ - billing_item item = administration::billing_item_create_empty(); - item.amount = 2; - item.amount_is_percentage = 0; - strops::copy(item.description, "Soap", MAX_LEN_LONG_DESC); - item.net_per_item = 5.00f; - item.discount = 5.0f; - item.discount_is_percentage = 1; - - tax_rate rate; - administration::tax_rate_get_by_internal_code(&rate, "NL/21"); - strops::copy(item.tax_internal_code, rate.internal_code, MAX_LEN_SHORT_DESC); - - return item; -} - static billing_item _create_bi3() { billing_item item = administration::billing_item_create_empty(); |
