1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 00:11:35 +02:00

Only convert signature to png if used

This commit is contained in:
Hillel Coren 2017-12-28 09:42:35 +02:00
parent c3189527c4
commit 7012b6c87e
4 changed files with 8 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -31,7 +31,10 @@ function generatePDF(invoice, javascript, force, cb) {
}
invoice = calculateAmounts(invoice);
if (parseInt(invoice.account.signature_on_pdf)) {
invoice = convertSignature(invoice);
}
// convertSignature returns false to wait for the canvas to draw
if (! invoice) {

View File

@ -2641,7 +2641,7 @@ $LANG = array(
'endless_reminder' => 'Endless Reminder',
'signature_on_invoice_help' => 'Add the following code to show your client\'s signature on the PDF.',
'signature_on_pdf' => 'Show on PDF',
'signature_on_pdf_help' => 'Show the client signature on the invoice PDF.',
'signature_on_pdf_help' => 'Show the client signature on the invoice/quote PDF.',
);