Add in userpanewl and fix up table sub in template

This commit is contained in:
2025-04-23 13:44:45 +01:00
parent a5272319f2
commit 93ef6c22c4
11 changed files with 792 additions and 2 deletions

View File

@@ -76,9 +76,9 @@ sub get_${tablecontrol[0]} {
my $c = shift;
my @source_records = $c->actual_${tablecontrol[0]}();
my @transformed_records;
my %Field_Mapping = ${tablecontrol[0]}_FIELD_MAPPING;
my %Field_Mapping = ${tablecontrol[0]}_FIELD_MAPPING();
# Iterate over each record in the source array
for my $source_record (@$source_records) {
for my $source_record (@source_records) {
my %transformed_record;
# Iterate over each key-value pair in the $Field_Mapping constant
while (my ($target, $source) = each %Field_Mapping) {