Skip to content

Commit

Permalink
Remove trucking expense from customer orders
Browse files Browse the repository at this point in the history
  • Loading branch information
OniiCoder committed Feb 15, 2024
1 parent 43bcd64 commit 423a4de
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ public function up()
$table->integer('driver_id')->nullable();
$table->boolean('made_down_payment')->default(false);
$table->boolean('payment_is_complete')->default(false);
$table->float('trucking_expense')->default(0);
$table->json('meta')->nullable();
$table->dateTime('payment_deadline')->nullable();
$table->dateTime('created_at')->nullable();
Expand Down
7 changes: 0 additions & 7 deletions resources/views/models/orders/form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,6 @@
@endforeach
</x-fab::forms.select>

<x-fab::forms.input
wire:model="model.trucking_expense"
label="Trucking Expense (NGN)"
help="This is any extra cost incurred for delivering this order. E.g. Toll Gate Fee, Breakdown repair, etc."
:disabled="$model->status != 'PENDING' ? true : false"
/>

</x-fab::layouts.panel>

<x-slot name="aside">
Expand Down
3 changes: 0 additions & 3 deletions src/Http/Livewire/OrdersForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ public function rules()
'model.volume' => 'required',
'model.unit_price' => 'required',
'model.driver_id' => 'nullable',
// 'model.made_down_payment' => 'required',
'model.payment_deadline' => 'nullable',
'model.trucking_expense' => 'nullable',
];
}

Expand All @@ -40,7 +38,6 @@ public function mount($order = null)
$this->setModel($order);
if (! $this->model->exists) {
$this->model->status = 'PENDING';
$this->model->trucking_expense = 0.00;
}
}

Expand Down

0 comments on commit 423a4de

Please sign in to comment.