diff --git a/app/pdf/receipt_bill_pdf.rb b/app/pdf/receipt_bill_pdf.rb index 7cf00ed9..92f2e3c9 100755 --- a/app/pdf/receipt_bill_pdf.rb +++ b/app/pdf/receipt_bill_pdf.rb @@ -93,7 +93,7 @@ class ReceiptBillPdf < Prawn::Document sign(sale_data) - if shop_details.note != nil + if shop_details.note && !shop_details.note.nil? shop_note(shop_details) end