maping drugs
This commit is contained in:
@@ -15,6 +15,10 @@ class Drug extends Model
|
|||||||
'name',
|
'name',
|
||||||
'generic_name',
|
'generic_name',
|
||||||
'code',
|
'code',
|
||||||
|
'id_setara',
|
||||||
|
'code_setara',
|
||||||
|
'nama_setara',
|
||||||
|
'multiply_jual',
|
||||||
'description',
|
'description',
|
||||||
'brand_id',
|
'brand_id',
|
||||||
'mims_class',
|
'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>
|
</Grid>
|
||||||
|
|
||||||
{/* Keterangan dan Catatan */}
|
{/* Keterangan dan Catatan */}
|
||||||
<Grid item xs={12}>
|
{/* <Grid item xs={12}>
|
||||||
<Grid container spacing={3}>
|
<Grid container spacing={3}>
|
||||||
<Grid item xs={12}>
|
<Grid item xs={12}>
|
||||||
<Typography variant="body1" component="div">
|
<Typography variant="body1" component="div">
|
||||||
@@ -734,10 +734,10 @@ export default function DetailMonitoringList() {
|
|||||||
<RHFEditor id="catatan" name="catatan" placeholder="Catatan"/>
|
<RHFEditor id="catatan" name="catatan" placeholder="Catatan"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid> */}
|
||||||
|
|
||||||
{/* Confirmation Medical Letter */}
|
{/* Confirmation Medical Letter */}
|
||||||
<Grid item xs={12}>
|
<Grid item xs={12}>
|
||||||
<Grid container spacing={3}>
|
<Grid container spacing={3}>
|
||||||
<Grid item xs={12}>
|
<Grid item xs={12}>
|
||||||
<Typography variant="body1" component="div">
|
<Typography variant="body1" component="div">
|
||||||
|
|||||||
Reference in New Issue
Block a user