Revision 9c7c96a8
Von Sven Schöling vor mehr als 14 Jahren hinzugefügt
SL/IS.pm | ||
---|---|---|
717 | 717 |
$form->{"serialnumber_$i"}, conv_i($pricegroup_id), |
718 | 718 |
$form->{"ordnumber_$i"}, conv_date($form->{"transdate_$i"}), |
719 | 719 |
$form->{"cusordnumber_$i"}, $baseqty, $form->{"subtotal_$i"} ? 't' : 'f', |
720 |
$form->{"marge_percent_$i"}, $form->{"marge_absolut_$i"},
|
|
720 |
$form->{"marge_percent_$i"}, $form->{"marge_absolut_$i"}, |
|
721 | 721 |
$form->{"lastcost_$i"}, |
722 | 722 |
conv_i($form->{"price_factor_id_$i"}), conv_i($form->{"price_factor_id_$i"}), |
723 | 723 |
conv_i($form->{"marge_price_factor_$i"})); |
... | ... | |
1400 | 1400 |
my ($self, $myconfig, $form) = @_; |
1401 | 1401 |
|
1402 | 1402 |
# connect to database |
1403 |
my $dbh = $form->dbconnect_noauto($myconfig);
|
|
1403 |
my $dbh = $form->get_standard_dbh;
|
|
1404 | 1404 |
|
1405 | 1405 |
my ($sth, $ref, $query); |
1406 | 1406 |
|
... | ... | |
1575 | 1575 |
} |
1576 | 1576 |
|
1577 | 1577 |
my $rc = $dbh->commit; |
1578 |
$dbh->disconnect; |
|
1579 | 1578 |
|
1580 | 1579 |
$main::lxdebug->leave_sub(); |
1581 | 1580 |
|
... | ... | |
1588 | 1587 |
my ($self, $myconfig, $form) = @_; |
1589 | 1588 |
|
1590 | 1589 |
# connect to database |
1591 |
my $dbh = $form->dbconnect($myconfig);
|
|
1590 |
my $dbh = $form->get_standard_dbh;
|
|
1592 | 1591 |
|
1593 | 1592 |
my $dateformat = $myconfig->{dateformat}; |
1594 | 1593 |
$dateformat .= "yy" if $myconfig->{dateformat} !~ /^y/; |
... | ... | |
1724 | 1723 |
$form->{rowcount} = $i if ($i && !$form->{type}); |
1725 | 1724 |
} |
1726 | 1725 |
|
1727 |
$dbh->disconnect; |
|
1728 |
|
|
1729 | 1726 |
$main::lxdebug->leave_sub(); |
1730 | 1727 |
} |
1731 | 1728 |
|
Auch abrufbar als: Unified diff
IS->retrieve_invoice und IS->get_customer brauchen keine eigenen Datenbankhandle
(ich glaube ich sehe ein Muster hier...)