update perbaikan pos, return, dan report profit nlost
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 4m17s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 15s
Build, Push and Deploy / deploy-staging (push) Successful in 41s
Build, Push and Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-05-14 22:19:01 +07:00
parent 1dfc06635d
commit 2fabdf8fc9
48 changed files with 1700 additions and 3030 deletions

View File

@@ -0,0 +1,61 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('sale_details', function (Blueprint $table) {
$table->longText('serial_numbers')->nullable();
});
Schema::table('purchase_details', function (Blueprint $table) {
$table->longText('serial_numbers')->nullable();
$table->double('price_without_tax')->nullable();
});
Schema::table('transfer_products', function (Blueprint $table) {
$table->longText('serial_numbers')->nullable();
});
Schema::table('sale_return_details', function (Blueprint $table) {
$table->longText('serial_numbers')->nullable();
});
Schema::table('purchase_return_details', function (Blueprint $table) {
$table->longText('serial_numbers')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('sale_details', function (Blueprint $table) {
$table->dropColumn('serial_numbers');
});
Schema::table('purchase_details', function (Blueprint $table) {
$table->dropColumn(['serial_numbers', 'price_without_tax']);
});
Schema::table('transfer_products', function (Blueprint $table) {
$table->dropColumn('serial_numbers');
});
Schema::table('sale_return_details', function (Blueprint $table) {
$table->dropColumn('serial_numbers');
});
Schema::table('purchase_return_details', function (Blueprint $table) {
$table->dropColumn('serial_numbers');
});
}
};