# from LIN...
try {
my $c212 = $sg25->{LIN}[0]{C212};
- push @identifiers, [$c212->{7143}, $c212->{7140}];
+ push @identifiers, [$c212->{7143}, $c212->{7140}] if
+ $c212 and ref $c212 eq 'HASH';
} catch Error with {
# move on
};
# from PIA...
try {
- my $c212 = $sg25->{PIA}[0]{C212};
- foreach my $h (@$c212) {
- push @identifiers, [$h->{7143}, $h->{7140}];
+ foreach my $pia (@{ $sg25->{PIA} }) {
+ foreach my $h (@{$pia->{C212}}) {
+ push @identifiers, [$h->{7143}, $h->{7140}];
+ }
}
} catch Error with {
# move on
$log_prefix .
"RFFs within lineitem disagree on PO # ?"
) unless $acq_identifiers->{po} eq $po;
-
- $acq_identifiers->{li} = $li;
}
+ $acq_identifiers->{li} = $li;
+ $acq_identifiers->{po} = $po;
} else {
$logger->warn(
$log_prefix .