From: Sven Schöling Date: Wed, 30 Dec 2009 15:26:04 +0000 (+0100) Subject: Merge branch 'ir_templates' X-Git-Tag: release-2.6.1beta1~72 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=9bd3030a376850c427c102c6e0c54f19bd19332e;p=kivitendo-erp.git Merge branch 'ir_templates' Conflicts: SL/OP.pm --- 9bd3030a376850c427c102c6e0c54f19bd19332e diff --cc SL/OE.pm index 3f7dbaa75,b731dc1cc..b1e1f9f30 --- a/SL/OE.pm +++ b/SL/OE.pm @@@ -1307,37 -1277,37 +1277,70 @@@ sub project_description return $value; } +########################## +# Get data for the submitted order id +# from database +# +sub get_order_data_by_ordnumber { + $main::lxdebug->enter_sub(); + + my $self = shift; + my %params = @_; + + Common::check_params(\%params, qw(ordnumber)); + + my $form = $main::form; + my %myconfig = %main::myconfig; + my $dbh = $form->get_standard_dbh(); + + my @values = ($params{ordnumber}); + + # We query the database for the fields we need using the submitted "ordnumber" + my $query = <leave_sub(); + + return $result; +} + 1; + + __END__ + + =head1 NAME + + OE.pm - Order entry module + + =head1 DESCRIPTION + + OE.pm is part of the OE module. OE is responsible for sales and purchase orders, as well as sales quotations and purchase requests. This file abstracts the database tables C and C. + + =head1 FUNCTIONS + + =over 4 + + =item retrieve_simple PARAMS + + simple OE retrieval by id. does not look up customer, vendor, units or any other stuff. only oe and orderitems. + + my $order = retrieve_simple(id => 2); + + $order => { + %_OE_CONTENT, + orderitems => [ + %_ORDERITEM_ROW_1, + %_ORDERITEM_ROW_2, + ... + ] + } + + =back + + =cut