Subversion Repositories SmartDukaan

Rev

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

Rev 3064 Rev 3103
Line 198... Line 198...
198
            else:
198
            else:
199
                raise LogisticsServiceException(101, "The pincode " + pinCode + " is not serviced by this provider: " + str(providerId))
199
                raise LogisticsServiceException(101, "The pincode " + pinCode + " is not serviced by this provider: " + str(providerId))
200
        finally:
200
        finally:
201
            close_session()
201
            close_session()
202
 
202
 
203
    def getFreeAwbCount(self, providerId):
203
    def getFreeAwbCount(self, providerId, type):
204
        """
204
        """
205
        Returns the number of unused AWB numbers for the given provider
205
        Returns the number of unused AWB numbers for the given provider of the given type
206
        
206
        
207
        Parameters:
207
        Parameters:
208
         - providerId
208
         - providerId
-
 
209
         - type
209
        """
210
        """
210
        try:
211
        try:
211
            return get_free_awb_count(providerId)
212
            return get_free_awb_count(providerId, type)
212
        finally:
213
        finally:
213
            close_session()
214
            close_session()
214
 
215
 
215
    def getHolidays(self, fromDate, toDate):
216
    def getHolidays(self, fromDate, toDate):
216
        """
217
        """