Skip to content

Commit 6c0354b

Browse files
authored
4999 add distribution id pdf (#5278)
* Added distribution id to PDFs and adjusted tests * Added new version of printout to document * Reverted Gemfile
1 parent 16c088c commit 6c0354b

File tree

8 files changed

+6
-1
lines changed

8 files changed

+6
-1
lines changed

app/pdfs/distribution_pdf.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ def compute_and_render
8888
font_size 10
8989
end
9090

91+
move_down 10
92+
text "Distribution ID:", style: :bold
93+
font_size 12
94+
text @distribution.id.to_s
95+
9196
move_down 10
9297
text "Comments:", style: :bold
9398
font_size 12
-130 KB
Loading

lib/test_helpers/pdf_comparison_test_factory.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def self.create_line_items_request(distribution, partner, storage_creation)
113113

114114
def self.create_dist(partner, storage_creation, delivery_method)
115115
Time.zone = "America/Los_Angeles"
116-
dist = Distribution.create!(partner: partner, delivery_method: delivery_method, issued_at: DateTime.new(2024, 7, 4, 0, 0, 0, "-07:00"), organization: storage_creation.organization, storage_location: storage_creation.storage_location)
116+
dist = Distribution.create!(id: 123, partner: partner, delivery_method: delivery_method, issued_at: DateTime.new(2024, 7, 4, 0, 0, 0, "-07:00"), organization: storage_creation.organization, storage_location: storage_creation.storage_location)
117117
create_line_items_request(dist, partner, storage_creation)
118118
dist
119119
end
224 Bytes
Binary file not shown.
224 Bytes
Binary file not shown.
224 Bytes
Binary file not shown.
224 Bytes
Binary file not shown.
224 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)