| Line 487... |
Line 487... |
| 487 |
ItemAvailabilityCache.query.delete()
|
487 |
ItemAvailabilityCache.query.delete()
|
| 488 |
session.commit()
|
488 |
session.commit()
|
| 489 |
|
489 |
|
| 490 |
def __update_item_availability_cache(item_id, source_id):
|
490 |
def __update_item_availability_cache(item_id, source_id):
|
| 491 |
"""
|
491 |
"""
|
| 492 |
Determines the warehouse that should be used to fulfil an order for the given item.
|
492 |
Determines the warehouse that should be used to fulfill an order for the given item.
|
| 493 |
Algorithm explained at https://sites.google.com/a/shop2020.in/virtual-w-h-and-inventory/technical-details
|
493 |
Algorithm explained at https://sites.google.com/a/shop2020.in/virtual-w-h-and-inventory/technical-details
|
| 494 |
|
494 |
|
| 495 |
It will be ensured that every item has either a preferred vendor specified or at least for one vendor its transfer price should be defined.
|
495 |
It will be ensured that every item has either a preferred vendor specified or at least for one vendor its transfer price should be defined.
|
| 496 |
This is needed to associate an item with at least one vendor so that in default case when its available no where, we know from where to procure it.
|
496 |
This is needed to associate an item with at least one vendor so that in default case when its available no where, we know from where to procure it.
|
| 497 |
|
497 |
|