X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Fir.pl;h=95ada94e52e410f16b8043c6f6c87b017cff8f73;hb=307f0b13b5d0b1068cb7eacad1601f4786b28353;hp=c5f137f99f7606d29c1483ff0e52cd5e0be41d0a;hpb=a7b9212927afc0b5b02295db4f7c2fba7318508f;p=kivitendo-erp.git diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index c5f137f99..95ada94e5 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.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. #====================================================================== # # Inventory received module @@ -34,14 +35,14 @@ use SL::FU; use SL::IR; use SL::IS; -use SL::PE; use SL::DB::Default; +use SL::DB::Department; use SL::DB::PurchaseInvoice; +use SL::DB::Vendor; use List::Util qw(max sum); use List::UtilsBy qw(sort_by); require "bin/mozilla/io.pl"; -require "bin/mozilla/arap.pl"; require "bin/mozilla/common.pl"; use strict; @@ -109,17 +110,6 @@ sub invoice_links { # create links $form->create_links("AP", \%myconfig, "vendor"); - #quote all_vendor Bug 133 - foreach my $ref (@{ $form->{all_vendor} }) { - $ref->{name} = $form->quote($ref->{name}); - } - - if ($form->{all_vendor}) { - unless ($form->{vendor_id}) { - $form->{vendor_id} = $form->{all_vendor}->[0]->{id}; - } - } - $form->backup_vars(qw(payment_id language_id taxzone_id currency delivery_term_id intnotes cp_id)); @@ -132,25 +122,6 @@ sub invoice_links { my @curr = $form->get_all_currencies(); map { $form->{selectcurrency} .= "