From 1125d0d2f89c356f9306befe0c99e9cc1372fc8a Mon Sep 17 00:00:00 2001 From: phyusin Date: Fri, 31 Aug 2018 16:01:08 +0630 Subject: [PATCH] check shop note --- app/pdf/receipt_bill_pdf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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