api discount and change tax

This commit is contained in:
Thein Lin Kyaw
2023-10-17 16:52:12 +06:30
parent 81eb30c03a
commit 3441811bb0
27 changed files with 1225 additions and 1067 deletions

View File

@@ -0,0 +1,6 @@
class AddReferenceToParentItemToSaleItems < ActiveRecord::Migration[5.1]
def change
add_column :sale_items, :parent_id, :string, limit: 16, default: nil, after: :sale_item_id
add_index :sale_items, :parent_id
end
end

View File

@@ -0,0 +1,6 @@
class AddDiscountToSaleItems < ActiveRecord::Migration[5.1]
def change
add_column :sale_items, :discount_type, :string, after: :price
add_column :sale_items, :discount, :decimal, precision: 10, scale: 2, after: :price
end
end