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

SF.net SVN: ledger-smb:[6371] trunk



Revision: 6371
          http://sourceforge.net/p/ledger-smb/code/6371
Author:   einhverfr
Date:     2014-01-04 10:54:38 +0000 (Sat, 04 Jan 2014)
Log Message:
-----------
Adding instructions to upgrade tests

Modified Paths:
--------------
    trunk/LedgerSMB/Scripts/setup.pm
    trunk/LedgerSMB/Upgrade_Tests.pm
    trunk/UI/form-dynatable.html

Modified: trunk/LedgerSMB/Scripts/setup.pm
===================================================================
--- trunk/LedgerSMB/Scripts/setup.pm	2014-01-03 23:38:30 UTC (rev 6370)
+++ trunk/LedgerSMB/Scripts/setup.pm	2014-01-04 10:54:38 UTC (rev 6371)
@@ -502,6 +502,7 @@
     $template->render({
            form     => $request,
            heading  => $header,
+           headers  => [$check->display_name, $check->instructions],
            columns  => $check->display_cols,
            rows     => $rows,
            hiddens  => $hiddens,

Modified: trunk/LedgerSMB/Upgrade_Tests.pm
===================================================================
--- trunk/LedgerSMB/Upgrade_Tests.pm	2014-01-03 23:38:30 UTC (rev 6370)
+++ trunk/LedgerSMB/Upgrade_Tests.pm	2014-01-04 10:54:38 UTC (rev 6371)
@@ -127,6 +127,10 @@
 
 has display_name => (is => 'ro', isa => 'Str', required => 1);
 
+=item instructions
+
+Human readable instructions for test, localized.
+
 =back
 
 =cut
@@ -141,6 +145,8 @@
                    GROUP BY customernumber
                    HAVING count(*) > 1)",
  display_name => $LedgerSMB::App_State::Locale->text('Unique Customernumber'),
+ instructions => $LedgerSMB::App_State::Locale->text(
+                   'Please make all customer numbers unique'),
          name => 'unique_customernumber',
  display_cols => ['customernumber', 'name', 'address1', 'city', 'state', 'zip'],
        column => 'customernumber',
@@ -158,6 +164,8 @@
                    GROUP BY vendornumber
                    HAVING count(*) > 1)",
  display_name => $LedgerSMB::App_State::Locale->text('Unique Vendornumber'),
+ instructions => $LedgerSMB::App_State::Locale->text(
+                   'Please make all vendor numbers unique'),
          name => 'unique_vendornumber',
  display_cols => ['vendornumber', 'name', 'address1', 'city', 'state', 'zip'],
        column => 'customernumber',
@@ -170,6 +178,8 @@
 push @tests, __PACKAGE__->new(
    test_query => "SELECT * FROM employee WHERE employeenumber IS NULL",
  display_name => $LedgerSMB::App_State::Locale->text('No Null employeenumber'),
+ instructions => $LedgerSMB::App_State::Locale->text(
+                   'Enter employee numbers where they are missing'),
          name => 'null_employeenumber',
  display_cols => ['login', 'name', 'employeenumber'],
        column => 'employeenumber',
@@ -187,6 +197,8 @@
                           HAVING count(*) > 1)',
          name => 'duplicate_employee_numbers',
  display_name => $LedgerSMB::App_State::Locale->text('Duplicate employee numbers'),
+ instructions => $LedgerSMB::App_State::Locale->text(
+                   'Make employee numbers unique'),
  display_cols => ['login', 'name', 'employeenumber'],
        column => 'employeenumber',
         table => 'employee',
@@ -203,6 +215,8 @@
                   group by partnumber having count(*) > 1)",
          name => 'duplicate_partnumbers',
  display_name => $LedgerSMB::App_State::Locale->text('Unique nonobsolete partnumbers'),
+ instructions => $LedgerSMB::App_State::Locale->text(
+                   'Make non-obsolete partnumbers unique'),
  display_cols => ['partnumber', 'description', 'sellprice'],
        column => 'partnumber',
         table => 'parts',
@@ -216,6 +230,8 @@
                    select invnumber from ar
                    group by invnumber having count(*) > 1)',
  display_name => $LedgerSMB::App_State::Locale->text('Unique AR Invoice numbers'),
+ instructions => $LedgerSMB::App_State::Locale->text(
+                   'Make invoice numbers unique'),
          name => 'unique_ar_invnumbers',
  display_cols =>  ['invnumber', 'transdate', 'amount', 'netamount', 'paid'],
        column =>  'invnumber',
@@ -232,6 +248,8 @@
  display_name => $LedgerSMB::App_State::Locale->text('No NULL Amounts'),
          name => 'no_null_ac_amounts',
  display_cols => ["trans_id", "chart_id", "transdate"],
+ instructions => $LedgerSMB::App_State::Locale->text(
+                   '?????'),
       appname => 'ledgersmb',
   min_version => '1.2',
   max_version => '1.4'

Modified: trunk/UI/form-dynatable.html
===================================================================
--- trunk/UI/form-dynatable.html	2014-01-03 23:38:30 UTC (rev 6370)
+++ trunk/UI/form-dynatable.html	2014-01-04 10:54:38 UTC (rev 6371)
@@ -4,6 +4,7 @@
 
 <body class="<?lsmb dojo_theme ?>">
 <form method="post" action="<?lsmb form.script ?>">
+<?lsmb FOREACH header IN headers ?><div class="listtop"><?lsmb header ?></div><?lsmb END ?>
 
 <?lsmb PROCESS 'dynatable' ?>
 <br />

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits