diff --git a/app/database/migrations/2015_10_01_024551_add_accessory_consumable_price_info.php b/app/database/migrations/2015_10_01_024551_add_accessory_consumable_price_info.php new file mode 100644 index 0000000000..21bbefc6ac --- /dev/null +++ b/app/database/migrations/2015_10_01_024551_add_accessory_consumable_price_info.php @@ -0,0 +1,48 @@ +date('purchase_date')->nullable(); + $table->decimal('purchase_cost', 13, 4)->nullable(); + $table->string('order_number'); + }); + + Schema::table('consumables', function ($table) { + $table->date('purchase_date')->nullable(); + $table->decimal('purchase_cost', 13, 4)->nullable(); + $table->string('order_number'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('accessories', function ($table) { + $table->dropColumn('purchase_date'); + $table->dropColumn('purchase_cost'); + $table->dropColumn('order_number'); + }); + + Schema::table('consumables', function ($table) { + $table->dropColumn('purchase_date'); + $table->dropColumn('purchase_cost'); + $table->dropColumn('order_number'); + }); + } + +} diff --git a/app/views/backend/accessories/edit.blade.php b/app/views/backend/accessories/edit.blade.php index c2880ae31e..bcbc20133a 100755 --- a/app/views/backend/accessories/edit.blade.php +++ b/app/views/backend/accessories/edit.blade.php @@ -58,6 +58,27 @@ {{ $errors->first('category_id', ' :message') }} + + +