<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    public function up(): void
    {
        Schema::table('orders_header', function (Blueprint $table) {
            $table->decimal('amount_paid', 15, 2)->nullable()->after('grand_total');
            $table->decimal('change_amount', 15, 2)->nullable()->after('amount_paid');
        });
    }

    public function down(): void
    {
        Schema::table('orders_header', function (Blueprint $table) {
            $table->dropColumn(['amount_paid', 'change_amount']);
        });
    }
};
