X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/e0f5deeae4cdcf3faf3bc68a202f20ec6cd9af2e..cfb460aac:/bin/mozilla/ar.pl?ds=inline diff --git a/bin/mozilla/ar.pl b/bin/mozilla/ar.pl index 6c4dcb8b4..3b94d818f 100644 --- a/bin/mozilla/ar.pl +++ b/bin/mozilla/ar.pl @@ -24,7 +24,8 @@ # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, +# MA 02110-1335, USA. #====================================================================== # # Accounts Receivables @@ -38,7 +39,6 @@ use List::UtilsBy qw(sort_by); use SL::AR; use SL::FU; use SL::IS; -use SL::PE; use SL::DB::Default; use SL::DB::Invoice; use SL::ReportGenerator; @@ -523,6 +523,12 @@ sub mark_as_paid { $main::lxdebug->leave_sub(); } +sub show_draft { + $::form->{transdate} = DateTime->today_local->to_kivitendo if !$::form->{transdate}; + $::form->{gldate} = $::form->{transdate} if !$::form->{gldate}; + update(); +} + sub update { $main::lxdebug->enter_sub();