FIX: billing csv generation
This commit is contained in:
parent
f9b28752fa
commit
04341b00bf
|
@ -105,12 +105,12 @@ pub fn generate_billing_csv(settings: &State<Settings>, event_id: uuid::Uuid) ->
|
||||||
|
|
||||||
let instances = get_instances(settings, event_id)?;
|
let instances = get_instances(settings, event_id)?;
|
||||||
|
|
||||||
let mut sum_total = BigDecimal::from_u8(0).unwrap();
|
|
||||||
let mut sum_lump_sum = BigDecimal::from(0);
|
|
||||||
let mut sum_money_for_time = BigDecimal::from(0);
|
|
||||||
|
|
||||||
for instance in instances {
|
for instance in instances {
|
||||||
res.push_str(&format!("Einheit:,{}\n", sanitize(instance.name)));
|
let mut sum_total = BigDecimal::from_u8(0).unwrap();
|
||||||
|
let mut sum_lump_sum = BigDecimal::from(0);
|
||||||
|
let mut sum_money_for_time = BigDecimal::from(0);
|
||||||
|
|
||||||
|
res.push_str(&format!("\nEinheit:,{}\n", sanitize(instance.name)));
|
||||||
if let Some(billing_rate_id) = instance.billing_rate_id {
|
if let Some(billing_rate_id) = instance.billing_rate_id {
|
||||||
let billing_rate = get_billing_rate(settings, billing_rate_id)?;
|
let billing_rate = get_billing_rate(settings, billing_rate_id)?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue