Fixed bug in deliveries. Extended test fixtures.
This commit is contained in:
parent
46d0a9c485
commit
0a87294ed4
9 changed files with 28 additions and 8 deletions
2
test/fixtures/article_categories.yml
vendored
2
test/fixtures/article_categories.yml
vendored
|
|
@ -14,3 +14,5 @@ fruits:
|
|||
description: fruits and only fruits
|
||||
vegi:
|
||||
name: Vegetables
|
||||
other:
|
||||
name: Other stuff
|
||||
|
|
|
|||
9
test/fixtures/article_prices.yml
vendored
9
test/fixtures/article_prices.yml
vendored
|
|
@ -36,4 +36,11 @@ potatoe1:
|
|||
article: potatoe
|
||||
price: 1.33
|
||||
tax: 7.0
|
||||
unit_quantity: 25
|
||||
unit_quantity: 25
|
||||
|
||||
applejuice1:
|
||||
article: applejuice
|
||||
price: 1.15
|
||||
tax: 7.0
|
||||
unit_quantity: 1
|
||||
deposit: 0.15
|
||||
|
|
|
|||
13
test/fixtures/articles.yml
vendored
13
test/fixtures/articles.yml
vendored
|
|
@ -20,7 +20,7 @@
|
|||
# order_number :string(255)
|
||||
# created_at :datetime
|
||||
# updated_at :datetime
|
||||
# quantity :decimal(, ) default(0.0)
|
||||
# quantity :integer default(0)
|
||||
# deleted_at :datetime
|
||||
# type :string(255)
|
||||
#
|
||||
|
|
@ -38,6 +38,7 @@ banana:
|
|||
tax: 7.0
|
||||
unit_quantity: 18
|
||||
order_number: 123456
|
||||
|
||||
kiwi:
|
||||
supplier: terra
|
||||
name: Kiwi
|
||||
|
|
@ -49,6 +50,7 @@ kiwi:
|
|||
tax: 7.0
|
||||
unit_quantity: 10
|
||||
order_number: 123457
|
||||
|
||||
potatoe:
|
||||
supplier: terra
|
||||
name: Potatoe
|
||||
|
|
@ -60,3 +62,12 @@ potatoe:
|
|||
tax: 7.0
|
||||
unit_quantity: 25
|
||||
order_number: 123458
|
||||
|
||||
applejuice:
|
||||
type: StockArticle
|
||||
supplier: terra
|
||||
name: Apple-juice
|
||||
article_category: other
|
||||
unit: 1L
|
||||
price: 1.33
|
||||
tax: 7.0
|
||||
|
|
|
|||
2
test/fixtures/stock_changes.yml
vendored
2
test/fixtures/stock_changes.yml
vendored
|
|
@ -7,7 +7,7 @@
|
|||
# delivery_id :integer
|
||||
# order_id :integer
|
||||
# stock_article_id :integer
|
||||
# quantity :decimal(, ) default(0.0)
|
||||
# quantity :integer default(0)
|
||||
# created_at :datetime
|
||||
#
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue