Add Approved By for waste & Spolie in Receive
This commit is contained in:
@@ -532,7 +532,7 @@ class ReceiptBillPdf < Prawn::Document
|
||||
break;
|
||||
end
|
||||
end
|
||||
if sale_data.payment_status == "foc"
|
||||
if sale_data.payment_status == "foc" || sale_data.payment_status == "waste" || sale_data.payment_status == "spoile"
|
||||
|
||||
y_position = cursor
|
||||
stroke_horizontal_rule
|
||||
@@ -540,12 +540,19 @@ class ReceiptBillPdf < Prawn::Document
|
||||
bounding_box([self.label_width,y_position], :width =>self.item_description_width) do
|
||||
move_down 70
|
||||
stroke_horizontal_rule
|
||||
end
|
||||
end
|
||||
|
||||
bounding_box([self.label_width,y_position], :width =>self.item_description_width) do
|
||||
move_down 73
|
||||
text "Acknowledged By" , :size => self.item_font_size,:align => :center
|
||||
end
|
||||
if sale_data.payment_status == "foc"
|
||||
bounding_box([self.label_width,y_position], :width =>self.item_description_width) do
|
||||
move_down 73
|
||||
text "Acknowledged By" , :size => self.item_font_size,:align => :center
|
||||
end
|
||||
elsif sale_data.payment_status == "waste" || sale_data.payment_status == "spoile"
|
||||
bounding_box([self.label_width,y_position], :width =>self.item_description_width) do
|
||||
move_down 73
|
||||
text "Approved By" , :size => self.item_font_size,:align => :center
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user