bugs fixs
This commit is contained in:
@@ -119,7 +119,7 @@ class Appointment extends Model
|
|||||||
{
|
{
|
||||||
return Attribute::make(
|
return Attribute::make(
|
||||||
get: function() {
|
get: function() {
|
||||||
$consulPrice = ((float) $this->detail->sPaymentDetails['gross_amount'] ?? 0) - $this->nAdminFee;
|
$consulPrice = ((float) ($this->detail->sPaymentDetails['gross_amount'] ?? null) ?? 0) - $this->nAdminFee;
|
||||||
if ( $this->nIDJenisBooking == 3 ) { // Telekonsultasi Sekarang
|
if ( $this->nIDJenisBooking == 3 ) { // Telekonsultasi Sekarang
|
||||||
return $consulPrice * (100-$this->healthCare->commission->nCommissionATC) / 100;
|
return $consulPrice * (100-$this->healthCare->commission->nCommissionATC) / 100;
|
||||||
}
|
}
|
||||||
@@ -137,7 +137,7 @@ class Appointment extends Model
|
|||||||
{
|
{
|
||||||
return Attribute::make(
|
return Attribute::make(
|
||||||
get: function() {
|
get: function() {
|
||||||
$consulPrice = ((float) $this->detail->sPaymentDetails['gross_amount'] ?? 0) - $this->nAdminFee;
|
$consulPrice = ((float) ($this->detail->sPaymentDetails['gross_amount'] ?? null) ?? 0) - $this->nAdminFee;
|
||||||
if ( $this->nIDJenisBooking == 3 ) { // Telekonsultasi Sekarang
|
if ( $this->nIDJenisBooking == 3 ) { // Telekonsultasi Sekarang
|
||||||
return $consulPrice * ($this->healthCare->commission->nCommissionATC) / 100;
|
return $consulPrice * ($this->healthCare->commission->nCommissionATC) / 100;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user