summaryrefslogtreecommitdiff
path: root/tests/test_helper.cpp
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2025-10-19 14:45:43 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2025-10-19 14:45:43 +0200
commitf16a2f0e266b20b6bc4f964b8ff5dc53924fc2d9 (patch)
tree0a04467c72c9a08fe5ca5d5b0c8615af4b5714f1 /tests/test_helper.cpp
parent60dfc4cab91b0076901cac81ba6cb1f2d198b06c (diff)
change inv ui for new tax rates
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;
}