Improve method get health care sheet v3
This commit is contained in:
		
							parent
							
								
									7f3d6ef598
								
							
						
					
					
						commit
						d2074d4e21
					
				|  | @ -1126,12 +1126,9 @@ class HealthCareSheetController extends Controller | ||||||
| 
 | 
 | ||||||
|     private function formatExamAndPrescriptionAmounts($e, $sheet): void |     private function formatExamAndPrescriptionAmounts($e, $sheet): void | ||||||
|     { |     { | ||||||
|         $e->unit_price_non_formatted = $e->unit_price; |         $e->unit_price_formatted = isset($e->unit_price) ? $this->toMoneyWithCurrencyCode($e->unit_price, $sheet->currency_code) : null; | ||||||
|         $e->insured_paid_amount_non_formatted = $e->insured_paid_amount; |         $e->insured_paid_amount_formatted = isset($e->insured_paid_amount) ? $this->toMoneyWithCurrencyCode($e->insured_paid_amount, $sheet->currency_code) : null; | ||||||
|         $e->insurer_paid_amount_non_formatted = $e->insurer_paid_amount; |         $e->insurer_paid_amount_formatted = isset($e->insurer_paid_amount) ? $this->toMoneyWithCurrencyCode($e->insurer_paid_amount, $sheet->currency_code) : null; | ||||||
|         $e->unit_price = isset($e->unit_price) ? $this->toMoneyWithCurrencyCode($e->unit_price, $sheet->currency_code) : null; |  | ||||||
|         $e->insured_paid_amount = isset($e->insured_paid_amount) ? $this->toMoneyWithCurrencyCode($e->insured_paid_amount, $sheet->currency_code) : null; |  | ||||||
|         $e->insurer_paid_amount = isset($e->insurer_paid_amount) ? $this->toMoneyWithCurrencyCode($e->insurer_paid_amount, $sheet->currency_code) : null; |  | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /** |     /** | ||||||
|  | @ -1704,12 +1701,10 @@ class HealthCareSheetController extends Controller | ||||||
|         $sheet->patient_situation = trans('states.' . $sheet->patient_situation); |         $sheet->patient_situation = trans('states.' . $sheet->patient_situation); | ||||||
|         $sheet->care_condition = trans('states.' . $sheet->care_condition); |         $sheet->care_condition = trans('states.' . $sheet->care_condition); | ||||||
|         foreach ($sheet->performances as $p) { |         foreach ($sheet->performances as $p) { | ||||||
|             $p->amount_non_formatted = $p->amount; |             $p->amount_formatted = $this->toMoneyWithCurrencyCode($p->amount, $sheet->currency_code); | ||||||
|             $p->amount = $this->toMoneyWithCurrencyCode($p->amount, $sheet->currency_code); |             $p->moderator_ticket_formatted = $this->toMoneyWithCurrencyCode($p->moderator_ticket, $sheet->currency_code); | ||||||
|             $p->moderator_ticket = $this->toMoneyWithCurrencyCode($p->moderator_ticket, $sheet->currency_code); |             $p->insurance_amount_formatted = $this->toMoneyWithCurrencyCode($p->insurance_amount, $sheet->currency_code); | ||||||
|             $p->insurance_amount = $this->toMoneyWithCurrencyCode($p->insurance_amount, $sheet->currency_code); |             $p->home_visit_fees_formatted = isset($p->home_visit_fees) ? $this->toMoneyWithCurrencyCode($p->home_visit_fees, $sheet->currency_code) : null; | ||||||
|             $p->home_visit_fees_non_formatted = $p->home_visit_fees; |  | ||||||
|             $p->home_visit_fees = isset($p->home_visit_fees) ? $this->toMoneyWithCurrencyCode($p->home_visit_fees, $sheet->currency_code) : null; |  | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         foreach ($sheet->exams as $e) { |         foreach ($sheet->exams as $e) { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue