mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
ignore branches
This commit is contained in:
parent
5d277a888d
commit
3ed836f19d
@ -26,12 +26,12 @@ def extract_purchase_price(apps, schema_editor):
|
||||
# Find all the StockItem objects without a purchase_price which point to a PurchaseOrder
|
||||
items = StockItem.objects.filter(purchase_price=None).exclude(purchase_order=None)
|
||||
|
||||
if items.count() > 0:
|
||||
if items.count() > 0: # pragma: no cover
|
||||
print(f"Found {items.count()} stock items with missing purchase price information")
|
||||
|
||||
update_count = 0
|
||||
|
||||
for item in items:
|
||||
for item in items: # pragma: no cover
|
||||
|
||||
part_id = item.part
|
||||
|
||||
@ -57,10 +57,10 @@ def extract_purchase_price(apps, schema_editor):
|
||||
|
||||
break
|
||||
|
||||
if update_count > 0:
|
||||
if update_count > 0: # pragma: no cover
|
||||
print(f"Updated pricing for {update_count} stock items")
|
||||
|
||||
def reverse_operation(apps, schema_editor):
|
||||
def reverse_operation(apps, schema_editor): # pragma: no cover
|
||||
"""
|
||||
DO NOTHING!
|
||||
"""
|
||||
|
@ -29,7 +29,7 @@ def delete_scheduled(apps, schema_editor):
|
||||
Task.objects.filter(func='stock.tasks.delete_old_stock_items').delete()
|
||||
|
||||
|
||||
def reverse(apps, schema_editor):
|
||||
def reverse(apps, schema_editor): # pragma: no cover
|
||||
pass
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user