mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-19 16:01:34 +02:00
Only convert signature to png if used
This commit is contained in:
parent
c3189527c4
commit
7012b6c87e
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -31,7 +31,10 @@ function generatePDF(invoice, javascript, force, cb) {
|
||||
}
|
||||
|
||||
invoice = calculateAmounts(invoice);
|
||||
invoice = convertSignature(invoice);
|
||||
|
||||
if (parseInt(invoice.account.signature_on_pdf)) {
|
||||
invoice = convertSignature(invoice);
|
||||
}
|
||||
|
||||
// convertSignature returns false to wait for the canvas to draw
|
||||
if (! invoice) {
|
||||
|
@ -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.',
|
||||
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user