On Tue, Dec 27, 2011 at 4:03 AM, herman vierendeels <[email protected]> wrote: > 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? > That looks sane to me.
Best Wishes, Chris Travers ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ Ledger-smb-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel
