Lines 238-245
if ( ( $op eq 'insert' ) and !$nodouble ) {
Link Here
|
238 |
} |
238 |
} |
239 |
|
239 |
|
240 |
#recover all data from guarantor address phone ,fax... |
240 |
#recover all data from guarantor address phone ,fax... |
241 |
if ( $guarantorid and ( $category_type eq 'C' || $category_type eq 'P' )) { |
241 |
if ( $guarantorid ) { |
242 |
if (my $guarantordata=GetMember(borrowernumber => $guarantorid)) { |
242 |
if (my $guarantordata=GetMember(borrowernumber => $guarantorid)) { |
|
|
243 |
$category_type = $guarantordata->{categorycode} eq 'I' ? 'P' : 'C'; |
243 |
$guarantorinfo=$guarantordata->{'surname'}." , ".$guarantordata->{'firstname'}; |
244 |
$guarantorinfo=$guarantordata->{'surname'}." , ".$guarantordata->{'firstname'}; |
244 |
$newdata{'contactfirstname'}= $guarantordata->{'firstname'}; |
245 |
$newdata{'contactfirstname'}= $guarantordata->{'firstname'}; |
245 |
$newdata{'contactname'} = $guarantordata->{'surname'}; |
246 |
$newdata{'contactname'} = $guarantordata->{'surname'}; |
246 |
- |
|
|