Added taxable flag

This commit is contained in:
2026-03-17 12:25:58 -04:00
parent f81fe0ef87
commit 24e3e4ba82
5 changed files with 20 additions and 1 deletions

View File

@@ -66,6 +66,7 @@ class ItemsController < ApplicationController
def new
@item = Item.new
@item.taxable.nil? ? true : @item.taxable
end
def show
@@ -95,7 +96,7 @@ class ItemsController < ApplicationController
end
def item_params
params.require(:item).permit(:name, :description, :sku, :unit_price, :active, :account_id, :type)
params.require(:item).permit(:name, :description, :sku, :unit_price, :active, :account_id, :type, :taxable)
end
private