mirror of
https://github.com/rickbarrette/redmine_qbo_lineitems.git
synced 2026-04-02 07:01:59 -04:00
Added taxable flag
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user