i
This commit is contained in:
parent
511d4dbcee
commit
cc315129b9
@ -125,10 +125,10 @@ class PricingService:
|
||||
return row
|
||||
|
||||
# Apply pricing rules
|
||||
if tcg_low < 0.35 and tcg_market_price < 1:
|
||||
new_price = 0.35
|
||||
if tcg_low < 0.28 and tcg_market_price < 1:
|
||||
new_price = 0.28
|
||||
elif tcg_low < 5 or tcg_low_shipping < 5:
|
||||
new_price = round(tcg_low_shipping * .85, 2)
|
||||
new_price = round(tcg_low_shipping * .90, 2)
|
||||
elif tcg_low_shipping > 20:
|
||||
new_price = round(tcg_low_shipping * 1.0125, 2)
|
||||
else:
|
||||
|
16
requests.md
16
requests.md
@ -2,16 +2,16 @@ curl -J http://192.168.1.41:8000/api/tcgplayer/inventory/update --remote-name
|
||||
|
||||
curl -J -X POST http://192.168.1.41:8000/api/tcgplayer/inventory/add \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"open_box_ids": ["4ccd2005-edd2-4764-9599-0d863be72034"]}' \
|
||||
-d '{"open_box_ids": ["6ffe2071-a4b4-41c3-a4af-7ec3c9ec7e2e"]}' \
|
||||
--remote-name
|
||||
|
||||
curl -X POST http://192.168.1.41:8000/api/boxes \
|
||||
-F "type=draft" \
|
||||
-F "set_code=LCI" \
|
||||
-F "sku=195166229669" \
|
||||
-F "num_cards_expected=541"
|
||||
-F "set_code=MH3" \
|
||||
-F "sku=195166254661" \
|
||||
-F "num_cards_expected=100"
|
||||
|
||||
curl -X POST "http://192.168.1.41:8000/api/boxes/35ec0beb-1f59-448d-a6ea-1189b804607b/open" \
|
||||
-F "product_id=35ec0beb-1f59-448d-a6ea-1189b804607b" \
|
||||
-F "file_ids=2b71ce17-3c8d-4483-a4d9-e59dc76f3a23" \
|
||||
-F "date_opened=2025-02-12"
|
||||
curl -X POST "http://192.168.1.41:8000/api/boxes/e4793e02-fe42-474f-ad9a-cce0269b0cd7/open" \
|
||||
-F "product_id=e4793e02-fe42-474f-ad9a-cce0269b0cd7" \
|
||||
-F "file_ids=0a009077-ae32-4ada-9414-4c16de4db3f5" \
|
||||
-F "date_opened=2025-02-14"
|
Loading…
x
Reference in New Issue
Block a user