WebErpMesv2
WebErpMesv2 copied to clipboard
[STOCK] Add Stocks scraps notion
The difficulty in stock is to follow the rest of the raw material after having taken x piece in a slice we put the rest of the material back into stock. There we would like to know all the properties of the remaining pieces with its location and ideally a photo. The properties of a piece are the type of material, length, width, thickness, direction of graining if any, block or lot number. An associated photo for business is more practical
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class UpdateStockMovesTable extends Migration
{
public function up()
{
Schema::table('stock_moves', function (Blueprint $table) {
$table->decimal('x_size', 20, 8)->nullable()->after('bad_qty');
$table->decimal('y_size', 20, 8)->nullable()->after('x_size');
$table->decimal('z_size', 20, 8)->nullable()->after('y_size');
$table->integer('nb_part')->default(1)->after('z_size');
$table->decimal('surface_perc', 20, 8)->nullable()->after('nb_part');
$table->string('nest_path')->nullable()->after('surface_perc');
$table->tinyInteger('status')->default(1)->after('nest_path');
$table->string(tracability')->default(1)->after('status');
});
}
public function down()
{
Schema::table('stock_moves', function (Blueprint $table) {
$table->dropColumn('x_size');
$table->dropColumn('y_size');
$table->dropColumn('z_size');
$table->dropColumn('nb_part');
$table->dropColumn('surface_perc');
$table->dropColumn('nest_path');
$table->dropColumn('status');
$table->dropColumn('tracability');
});
}
}
Minimum required:
- when creating the stock, put the dimensions in the entry
- on the production task, select the stock to use to remove the stock line
- on the production task, create the dimensions generated by the operation
For picture : https://github.com/SMEWebify/WebErpMesv2/issues/400