Created
September 20, 2010 13:53
-
-
Save batok/587937 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@classmethod | |
def factura_mas_reciente(cls): | |
"""arroja el folio de la factura mas reciente ( folio mayor )""" | |
try: | |
return session.query(cls).order_by(cls.folio.desc()).first().folio | |
except: | |
return 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment