Subversion Repositories SmartDukaan

Rev

Rev 20801 | Rev 20806 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20801 Rev 20802
Line 11100... Line 11100...
11100
def __get_seller(warehouse_id):
11100
def __get_seller(warehouse_id):
11101
        #As of now we have hardcoded the company and 
11101
        #As of now we have hardcoded the company and 
11102
        #seller would be returned on basis warehouse and company
11102
        #seller would be returned on basis warehouse and company
11103
        #Seller changed to HSSPL. Effective Aug-1-2016 - Amit Gupta
11103
        #Seller changed to HSSPL. Effective Aug-1-2016 - Amit Gupta
11104
        #New Organisation has been added to it.
11104
        #New Organisation has been added to it.
11105
        if warehouse_id ==7441:
-
 
11106
            orgId=4
-
 
11107
        else:
-
 
11108
            orgId=3
-
 
11109
        (sellerId,) = session.query(Seller.id).join((SellerWarehouse, Seller.id==SellerWarehouse.seller_id)).filter(Seller.organisation_id==orgId).filter(SellerWarehouse.warehouse_id==warehouse_id).first()
11105
        (sellerId,) = session.query(Seller.id).join((SellerWarehouse, Seller.id==SellerWarehouse.seller_id)).filter(SellerWarehouse.warehouse_id==warehouse_id).first()
11110
        return sellerId
11106
        return sellerId
11111
 
11107
 
11112
def add_shipment_delay(shipmentDelayDetail):
11108
def add_shipment_delay(shipmentDelayDetail):
11113
    returnList = []
11109
    returnList = []
11114
    for delayObj in shipmentDelayDetail:
11110
    for delayObj in shipmentDelayDetail: