2
0
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:
Oliver Walters
2019-05-21 13:53:25 +10:00
parent 6f73c379c2
commit cdcc4f9ca1
3 changed files with 90 additions and 5 deletions

View 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

View File

@ -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'