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