summaryrefslogtreecommitdiff
path: root/tests/test_helper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_helper.cpp')
-rw-r--r--tests/test_helper.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/test_helper.cpp b/tests/test_helper.cpp
index 167cb15..85d228a 100644
--- a/tests/test_helper.cpp
+++ b/tests/test_helper.cpp
@@ -62,7 +62,7 @@ static billing_item _create_bi1(invoice *inv)
char* _country_codes[2] = {inv->supplier.address.country_code, inv->customer.address.country_code};
u32 tax_rate_count = administration::tax_rate_get_by_country(buffer, 2, _country_codes);
tax_rate rand_rate = buffer[tax_rate_count-1];
- strops::copy(item.tax_rate_id, rand_rate.id, MAX_LEN_ID);
+ strops::copy(item.tax_internal_code, rand_rate.id, MAX_LEN_ID);
return item;
}
@@ -81,7 +81,7 @@ static billing_item _create_bi2(invoice *inv)
char* _country_codes[2] = {inv->supplier.address.country_code, inv->customer.address.country_code};
u32 tax_rate_count = administration::tax_rate_get_by_country(buffer, 2, _country_codes);
tax_rate rand_rate = buffer[tax_rate_count-1];
- strops::copy(item.tax_rate_id, rand_rate.id, MAX_LEN_ID);
+ strops::copy(item.tax_internal_code, rand_rate.id, MAX_LEN_ID);
return item;
}
@@ -100,7 +100,7 @@ static billing_item _create_bi3(invoice *inv)
char* _country_codes[2] = {inv->supplier.address.country_code, inv->customer.address.country_code};
u32 tax_rate_count = administration::tax_rate_get_by_country(buffer, 2, _country_codes);
tax_rate rand_rate = buffer[tax_rate_count-1];
- strops::copy(item.tax_rate_id, rand_rate.id, MAX_LEN_ID);
+ strops::copy(item.tax_internal_code, rand_rate.id, MAX_LEN_ID);
return item;
}
@@ -119,7 +119,7 @@ static billing_item _create_bi4(invoice *inv)
char* _country_codes[2] = {inv->supplier.address.country_code, inv->customer.address.country_code};
u32 tax_rate_count = administration::tax_rate_get_by_country(buffer, 2, _country_codes);
tax_rate rand_rate = buffer[tax_rate_count-1];
- strops::copy(item.tax_rate_id, rand_rate.id, MAX_LEN_ID);
+ strops::copy(item.tax_internal_code, rand_rate.id, MAX_LEN_ID);
return item;
}
@@ -138,7 +138,7 @@ static billing_item _create_bi5(invoice *inv)
char* _country_codes[2] = {inv->supplier.address.country_code, inv->customer.address.country_code};
u32 tax_rate_count = administration::tax_rate_get_by_country(buffer, 2, _country_codes);
tax_rate rand_rate = buffer[tax_rate_count-1];
- strops::copy(item.tax_rate_id, rand_rate.id, MAX_LEN_ID);
+ strops::copy(item.tax_internal_code, rand_rate.id, MAX_LEN_ID);
return item;
}
@@ -157,7 +157,7 @@ static billing_item _create_bi6(invoice *inv)
char* _country_codes[2] = {inv->supplier.address.country_code, inv->customer.address.country_code};
u32 tax_rate_count = administration::tax_rate_get_by_country(buffer, 2, _country_codes);
tax_rate rand_rate = buffer[tax_rate_count-1];
- strops::copy(item.tax_rate_id, rand_rate.id, MAX_LEN_ID);
+ strops::copy(item.tax_internal_code, rand_rate.id, MAX_LEN_ID);
return item;
}
@@ -172,8 +172,8 @@ static billing_item _create_bi(float amount, float npi, char* taxrate)
item.discount = 0.0f;
item.discount_is_percentage = 0;
tax_rate rate;
- administration::tax_rate_get_by_shorthandle(&rate, taxrate);
- strops::copy(item.tax_rate_id, rate.id, MAX_LEN_ID);
+ //administration::tax_rate_get_by_shorthandle(&rate, taxrate);
+ strops::copy(item.tax_internal_code, rate.id, MAX_LEN_ID);
return item;
}