Skip to content

Commit

Permalink
Process Service Change method - fix Decimal usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Mapiiik committed May 13, 2024
1 parent 860204b commit 221ba9c
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/Controller/BillingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -502,17 +502,18 @@ private function processServiceChange(Billing $original_billing): Billing|false
'contract_number' => $original_billing->contract->number,
'installation_address' => $original_billing->contract->installation_address->address,
'original_billing_name' => $original_billing->name,
'original_billing_sum' => $original_billing->sum,
'original_billing_sum' => $original_billing->sum->toFloat(),
'original_billing_percentage_discount' => $original_billing->percentage_discount,
'original_billing_percentage_discount_sum' => $original_billing->percentage_discount_sum,
'original_billing_fixed_discount_sum' => $original_billing->fixed_discount_sum,
'original_billing_total_price' => $original_billing->total_price,
'original_billing_percentage_discount_sum' =>
$original_billing->percentage_discount_sum->toFloat(),
'original_billing_fixed_discount_sum' => $original_billing->fixed_discount_sum->toFloat(),
'original_billing_total_price' => $original_billing->total_price->toFloat(),
'new_billing_name' => $new_billing->name,
'new_billing_sum' => $new_billing->sum,
'new_billing_sum' => $new_billing->sum->toFloat(),
'new_billing_percentage_discount' => $new_billing->percentage_discount,
'new_billing_percentage_discount_sum' => $new_billing->percentage_discount_sum,
'new_billing_fixed_discount_sum' => $new_billing->fixed_discount_sum,
'new_billing_total_price' => $new_billing->total_price,
'new_billing_percentage_discount_sum' => $new_billing->percentage_discount_sum->toFloat(),
'new_billing_fixed_discount_sum' => $new_billing->fixed_discount_sum->toFloat(),
'new_billing_total_price' => $new_billing->total_price->toFloat(),
'new_billing_from' => h($new_billing->billing_from),
],
],
Expand Down

0 comments on commit 221ba9c

Please sign in to comment.