Fix tool for rendering invoices
This commit is contained in:
parent
08e9a39099
commit
b22e164017
1 changed files with 1 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
from app import stripe
|
import stripe
|
||||||
from app import app
|
from app import app
|
||||||
|
|
||||||
from util.invoice import renderInvoiceToPdf
|
from util.invoice import renderInvoiceToPdf
|
||||||
|
@ -7,9 +7,6 @@ from data import model
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
from flask import Flask, current_app
|
|
||||||
from flask_mail import Mail
|
|
||||||
|
|
||||||
def sendInvoice(invoice_id):
|
def sendInvoice(invoice_id):
|
||||||
invoice = stripe.Invoice.retrieve(invoice_id)
|
invoice = stripe.Invoice.retrieve(invoice_id)
|
||||||
if not invoice['customer']:
|
if not invoice['customer']:
|
||||||
|
|
Reference in a new issue