Merge branch 'master' of gitlab.com:CIEFWorldwideSdnBhd/exchange-2.0 into development

This commit is contained in:
edmondlang
2022-03-03 22:12:03 +08:00
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ class TransactionResource extends JsonResource
public function toArray($request)
{
$booking = (int)$this->type === TransactionType::BILL ? $this->owner->owner : $this->booking;
$days = Carbon::parse($this->created_at)->addDays($booking->service_id === 1 ? 1 : 2);
$days = Carbon::parse($this->created_at->format('d-m-Y'))->addDays($booking->service_id === 1 ? 2 : 3);
return [
'id' => $this->id,
@@ -10,7 +10,7 @@
<div class="col text-center">
<div class="row m-b-50">
<div class="col bg-white padding-15">
<h5 class="text-center text-success bold">Congratulation! You've earned and achievement</h5>
<h5 class="text-center text-success bold">Congratulation! You've earned an achievement</h5>
</div>
</div>
<div class="row justify-content-center">
@@ -119,7 +119,7 @@
parameters: {
amount: {
required,
minValue: minValue(this.minValue),
minValue: 0,
},
reference: {
required: requiredIf(function () { return this.parameters.transaction_type !== 0 })