Subversion Repositories SmartDukaan

Rev

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

Rev 20025 Rev 20027
Line 10957... Line 10957...
10957
 
10957
 
10958
#Seller would be used to get tin number
10958
#Seller would be used to get tin number
10959
def __get_seller(warehouse_id):
10959
def __get_seller(warehouse_id):
10960
        #As of now we have hardcoded the company and 
10960
        #As of now we have hardcoded the company and 
10961
        #seller would be returned on basis warehouse and company
10961
        #seller would be returned on basis warehouse and company
10962
        orgId=1
10962
        orgId=2
10963
        (sellerId,) = session.query(Seller.id).join((SellerWarehouse, Seller.id==SellerWarehouse.seller_id)).filter(Seller.organisation_id==orgId).filter(SellerWarehouse.warehouse_id==warehouse_id).first()
10963
        (sellerId,) = session.query(Seller.id).join((SellerWarehouse, Seller.id==SellerWarehouse.seller_id)).filter(Seller.organisation_id==orgId).filter(SellerWarehouse.warehouse_id==warehouse_id).first()
10964
        return sellerId
10964
        return sellerId
10965
 
10965
 
10966
 
10966
 
10967
#Buyer can be anyone based on logic
10967
#Buyer can be anyone based on logic