This commit is contained in:
gsinghpal
2026-02-23 00:32:20 -05:00
parent d6bac8e623
commit e8e554de95
549 changed files with 1330 additions and 124935 deletions

View File

@@ -1302,8 +1302,14 @@ class FusionAssessment(models.Model):
add_row('Legrest Length', f'{self.legrest_length}"')
if self.seat_to_floor_height:
add_row('Seat to Floor Height', f'{self.seat_to_floor_height}"')
if self.cane_height:
add_row('Cane Height', f'{self.cane_height}" (Ground to Canes)')
if self.back_height:
add_row('Back Height', f'{self.back_height}"')
if self.armrest_height:
add_row('Armrest Height', f'{self.armrest_height}"')
if self.footrest_length:
add_row('Footrest Length', f'{self.footrest_length}"')
if self.seatbelt_type:
belt_labels = dict(self._fields['seatbelt_type'].selection)
@@ -1323,6 +1329,12 @@ class FusionAssessment(models.Model):
if opt:
add_row(opt, 'Yes')
# Cushion & Backrest (wheelchair/powerchair)
if self.cushion_info:
add_row('Cushion', self.cushion_info)
if self.backrest_info:
add_row('Backrest', self.backrest_info)
# Additional customization notes
if self.additional_customization:
add_row('Additional Information/Customization', self.additional_customization)

View File

@@ -235,6 +235,7 @@ class FusionPdfTemplate(models.Model):
'field_type': field.field_type,
'font_size': field.font_size,
'font_name': field.font_name or 'Helvetica',
'text_align': field.text_align or 'left',
})
return PDFTemplateFiller.fill_template(
@@ -307,6 +308,11 @@ class FusionPdfTemplateField(models.Model):
('Courier', 'Courier'),
('Times-Roman', 'Times Roman'),
], string='Font', default='Helvetica')
text_align = fields.Selection([
('left', 'Left'),
('center', 'Center'),
('right', 'Right'),
], string='Text Alignment', default='left')
# Data mapping
field_key = fields.Char(