Added taxable flag

This commit is contained in:
ricky committed 2026-03-17 12:25:58 -04:00
1 parent f81fe0ef87
commit 24e3e4ba82
5 files changed
+20 -1

No files matched your search

+2 -1
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