Subversion Repositories SmartDukaan

Rev

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

Rev 18735 Rev 18744
Line 949... Line 949...
949
        finally:
949
        finally:
950
            self.closeSession()
950
            self.closeSession()
951
            
951
            
952
    def getBillingAddressForUser(self, userId):
952
    def getBillingAddressForUser(self, userId):
953
        try:
953
        try:
954
            return to_t_address(get_billing_address_for_user(userId))
954
            address, taxInvoiceMap, creditAvailableMap = get_billing_address_for_user(userId)
-
 
955
            if address is not None:
-
 
956
                return to_t_address(address, taxInvoiceMap, creditAvailableMap)
-
 
957
            else:
-
 
958
                return None
955
        finally:
959
        finally:
956
            self.closeSession()
960
            self.closeSession()
957
            
961
            
958
    def isCreditorAssigned(self, userId):
962
    def isCreditorAssigned(self, userId):
959
        try:
963
        try: