Created
March 30, 2011 09:36
-
-
Save mdornseif/894127 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
| for incoice in ecommerce_invoices_created_in_the_last_48_hours: | |
| results = xero.search_by_invoice_number(incoice.number) | |
| if len(results) == 0: | |
| # There is a race condition between these two calls. | |
| xero.insert_new_invoice(incoice.number, incoice) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment