mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-05 13:10:57 +00:00
Simple tests for price breaks
This commit is contained in:
47
InvenTree/company/fixtures/price_breaks.yaml
Normal file
47
InvenTree/company/fixtures/price_breaks.yaml
Normal file
@ -0,0 +1,47 @@
|
||||
# Price breaks for supplier parts
|
||||
|
||||
# Price breaks for ACME0001
|
||||
|
||||
- model: company.supplierpricebreak
|
||||
fields:
|
||||
part: 1
|
||||
quantity: 1
|
||||
cost: 10
|
||||
|
||||
- model: company.supplierpricebreak
|
||||
fields:
|
||||
part: 1
|
||||
quantity: 5
|
||||
cost: 7.50
|
||||
|
||||
- model: company.supplierpricebreak
|
||||
fields:
|
||||
part: 1
|
||||
quantity: 25
|
||||
cost: 3.50
|
||||
|
||||
# Price breaks for ACME0002
|
||||
- model: company.supplierpricebreak
|
||||
fields:
|
||||
part: 2
|
||||
quantity: 5
|
||||
cost: 7.00
|
||||
|
||||
- model: company.supplierpricebreak
|
||||
fields:
|
||||
part: 2
|
||||
quantity: 50
|
||||
cost: 1.25
|
||||
|
||||
# Price breaks for ZERGLPHS
|
||||
- model: company.supplierpricebreak
|
||||
fields:
|
||||
part: 3
|
||||
quantity: 5
|
||||
cost: 8
|
||||
|
||||
- model: company.supplierpricebreak
|
||||
fields:
|
||||
part: 3
|
||||
quantity: 100
|
||||
cost: 1.25
|
@ -21,4 +21,11 @@
|
||||
fields:
|
||||
part: 1
|
||||
supplier: 3
|
||||
SKU: 'ZERGLPHS'
|
||||
SKU: 'ZERGLPHS'
|
||||
|
||||
- model: company.supplierpart
|
||||
pk: 4
|
||||
fields:
|
||||
part: 2
|
||||
supplier: 2
|
||||
SKU: 'ZERGM312'
|
||||
|
Reference in New Issue
Block a user