Class: T4PdfForm
Instance Attribute Summary
Attributes inherited from PdfForm
Class Method Summary collapse
Methods inherited from PdfForm
#initialize, #save_as, #to_file
Constructor Details
This class inherits a constructor from PdfForm
Class Method Details
.boxes_by_field_name ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'app/pdf_forms/t4_pdf_form.rb', line 7 def boxes_by_field_name { employer_name: 'EmployersName[0].Slip1EmployersName[0]', year: 'Year[0].Slip1Year[0]', box_54: 'EmployersAccount[0].Slip1Box54[0]', box_12: 'Box12[0].Slip1Box12[0]', box_28_cpp: 'Box28[0].CPP_CheckBox[0].Slip1CPP[0]', box_28_ei: 'Box28[0].EI_CheckBox[0].Slip1EI[0]', box_28_ppip: 'Box28[0].PPIP_CheckBox[0].Slip1PPIP[0]', box_29: 'Box29[0].Slip1Box29[0]', box_10: 'Box10[0].Slip1Box10[0]', box_45: 'Box45[0].DropDownList[0]', box_14: 'Box14[0].Slip1Box14[0]', box_22: 'Box22[0].Slip1Box22[0]', box_16: 'Box16[0].Slip1Box16[0]', box_17: 'Box17[0].Slip1Box17[0]', box_16A: 'Box16A[0].Slip1Box16A[0]', box_17A: 'Box17A[0].Slip1Box17A[0]', box_24: 'Box24[0].Slip1Box24[0]', box_26: 'Box26[0].Slip1Box26[0]', box_18: 'Box18[0].Slip1Box18[0]', box_44: 'Box44[0].Slip1Box44[0]', box_20: 'Box20[0].Slip1Box20[0]', box_46: 'Box46[0].Slip1Box46[0]', box_52: 'Box52[0].Slip1Box52[0]', box_50: 'Box50[0].Slip1Box50[0]', box_55: 'Box55[0].Slip1Box55[0]', box_56: 'Box56[0].Slip1Box56[0]', employee_last_name: 'Employee[0].LastName[0].Slip1LastName[0]', employee_first_name: 'Employee[0].FirstName[0].Slip1FirstName[0]', employee_initial: 'Employee[0].Initial[0].Slip1Initial[0]', employee_address: 'Employee[0].Slip1Address[0]', other_information_box_number_1: 'OtherInformation[0].Box1[0].Slip1Box1[0]', other_information_amount_1: 'OtherInformation[0].Amount1[0].Slip1Amount1[0]', other_information_box_number_2: 'OtherInformation[0].Box2[0].Slip1Box2[0]', other_information_amount_2: 'OtherInformation[0].Amount2[0].Slip1Amount2[0]', other_information_box_number_3: 'OtherInformation[0].Box3[0].Slip1Box3[0]', other_information_amount_3: 'OtherInformation[0].Amount3[0].Slip1Amount3[0]', other_information_box_number_4: 'OtherInformation[0].Box4[0].Slip1Box4[0]', other_information_amount_4: 'OtherInformation[0].Amount4[0].Slip1Amount4[0]', other_information_box_number_5: 'OtherInformation[0].Box5[0].Slip1Box5[0]', other_information_amount_5: 'OtherInformation[0].Amount5[0].Slip1Amount5[0]', other_information_box_number_6: 'OtherInformation[0].Box6[0].Slip1Box6[0]', other_information_amount_6: 'OtherInformation[0].Amount6[0].Slip1Amount6[0]' } end |
.dummy ⇒ Object
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
# File 'app/pdf_forms/t4_pdf_form.rb', line 72 def dummy new({ employer_name: 'Dummy Employer Inc.', year: '2023', box_54: '123456.00', box_12: '789012.00', box_28_cpp: false, box_28_ei: false, box_28_ppip: true, box_29: 'Some Value', box_10: 'Another Value', box_45: '5', box_14: '1000.00', box_22: '2000.00', box_16: '3000.00', box_17: '4000.00', box_16A: '5000.00', box_17A: '6000.00', box_24: '7000.00', box_26: '8000.00', box_18: '9000.00', box_44: '10000.00', box_20: '11000.00', box_46: '12000.00', box_52: '13000.00', box_50: '14000.00', box_55: '15000.00', box_56: '16000.00', employee_last_name: 'Doe', employee_first_name: 'John', employee_address: '1234 Some Street, Some City, Some Province, A1A 1A1', employee_initial: 'A', other_information_box_number_1: '1', other_information_amount_1: '100.00', other_information_box_number_2: '2', other_information_amount_2: '200.00', other_information_box_number_3: '3', other_information_amount_3: '300.00', other_information_box_number_4: '4', other_information_amount_4: '400.00', other_information_box_number_5: '5', other_information_amount_5: '500.00', other_information_box_number_6: '6', other_information_amount_6: '600.00' }) end |
.field_name_prefixes ⇒ Object
65 66 67 68 69 70 |
# File 'app/pdf_forms/t4_pdf_form.rb', line 65 def field_name_prefixes [ 'form1[0].Page1[0].Slip1[0].', 'form1[0].Page1[0].Slip2[0].' ] end |
.template_path ⇒ Object
3 4 5 |
# File 'app/pdf_forms/t4_pdf_form.rb', line 3 def template_path './app/assets/pdfs/t4-fill-24.pdf' end |