Subversion Repositories SmartDukaan

Rev

Rev 11880 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11880 Rev 11926
Line 88... Line 88...
88
            inventory = get_item_inventory_by_item_id(item.id)
88
            inventory = get_item_inventory_by_item_id(item.id)
89
            
89
            
90
            availability = 0
90
            availability = 0
91
            reserved = 0
91
            reserved = 0
92
            for wh, inv in inventory.availability.items():
92
            for wh, inv in inventory.availability.items():
93
                if wh != 16:
93
                if wh not in (16, 1771):
94
                    availability = availability + inv
94
                    availability = availability + inv
95
            for wh, inv in inventory.reserved.items():
95
            for wh, inv in inventory.reserved.items():
96
                if wh != 16:
96
                if wh not in (16, 1771):
97
                    reserved = reserved + inv
97
                    reserved = reserved + inv
98
            shipsBy = 'NOT AVAILABLE'
98
            shipsBy = 'NOT AVAILABLE'
99
            if item.itemStatus == 3:
99
            if item.itemStatus == 3:
100
                if expected_delay == 0:
100
                if expected_delay == 0:
101
                    shipsBy = 'NEXT DAY'
101
                    shipsBy = 'NEXT DAY'