maping drugs
This commit is contained in:
@@ -15,6 +15,10 @@ class Drug extends Model
|
||||
'name',
|
||||
'generic_name',
|
||||
'code',
|
||||
'id_setara',
|
||||
'code_setara',
|
||||
'nama_setara',
|
||||
'multiply_jual',
|
||||
'description',
|
||||
'brand_id',
|
||||
'mims_class',
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('drugs', function (Blueprint $table) {
|
||||
$table->string('id_setara')->nullable()->after('code');
|
||||
$table->string('code_setara')->nullable()->after('id_setara');
|
||||
$table->string('nama_setara')->nullable()->after('code_setara');
|
||||
$table->integer('multiply_jual')->nullable()->after('nama_setara');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('drugs', function (Blueprint $table) {
|
||||
$table->dropColumn('id_setara');
|
||||
$table->dropColumn('nama_setara');
|
||||
$table->dropColumn('code_setara ');
|
||||
$table->dropColumn('multiply_jual');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -715,7 +715,7 @@ export default function DetailMonitoringList() {
|
||||
</Grid>
|
||||
|
||||
{/* Keterangan dan Catatan */}
|
||||
<Grid item xs={12}>
|
||||
{/* <Grid item xs={12}>
|
||||
<Grid container spacing={3}>
|
||||
<Grid item xs={12}>
|
||||
<Typography variant="body1" component="div">
|
||||
@@ -734,10 +734,10 @@ export default function DetailMonitoringList() {
|
||||
<RHFEditor id="catatan" name="catatan" placeholder="Catatan"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid> */}
|
||||
|
||||
{/* Confirmation Medical Letter */}
|
||||
<Grid item xs={12}>
|
||||
{/* Confirmation Medical Letter */}
|
||||
<Grid item xs={12}>
|
||||
<Grid container spacing={3}>
|
||||
<Grid item xs={12}>
|
||||
<Typography variant="body1" component="div">
|
||||
|
||||
Reference in New Issue
Block a user