[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

scripts/payment.pl link only to ap/ar now but should be differentiated to ir/is if invoice?



Now link is built:
my $uri = $Payment->{account_class} == 1 ? 'ap' : 'ar';
$uri .= '.pl?action=edit&id='.$array_options[$ref]->{invoice_id}.'&path=bin/mozilla&login='.$request->{login};

Should this not be:
my $uri_module;
if($Payment->{account_class} == 1)
{
 if($array_options[$ref]->{invoice}==true)
 {
  $uri_module='ir';
 }
 else
 {
  $uri_module='ap';
 }
}#account_class 1
else
{
 if($array_options[$ref]->{invoice}==true)
 {
  $uri_module='is';
 }
 else
 {
  $uri_module='ar';
 }
}#account_class 2

But to achieve this:
TYPE payment_invoice  should contain : invoice boolean

Can i proceed with this?


Best wishes,
Herman