Revision 7e28f16e
Von Holger Lindemann vor mehr als 12 Jahren hinzugefügt
peppershop/ArtikelShopToErp.php | ||
---|---|---|
1 | 1 |
<?php |
2 |
|
|
3 |
$debug = False; |
|
4 |
|
|
2 | 5 |
$api = php_sapi_name(); |
3 | 6 |
if ( $api != "cli" ) { |
4 | 7 |
echo "<html>\n<head>\n<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>\n</head>\n<body>\n"; |
... | ... | |
21 | 24 |
|
22 | 25 |
include_once("conf$shopnr.php"); |
23 | 26 |
include_once("error.php"); |
27 |
//Fehlerinstanz |
|
28 |
$err = new error($api); |
|
29 |
|
|
24 | 30 |
include_once("dblib.php"); |
25 | 31 |
include_once("pepper.php"); |
26 | 32 |
include_once("erplib.php"); |
27 | 33 |
|
28 |
//Fehlerinstanz |
|
29 |
$err = new error($api); |
|
30 | 34 |
|
31 | 35 |
|
32 | 36 |
//ERP-Instanz |
33 |
$erpdb = new mydb($ERPhost,$ERPdbname,$ERPuser,$ERPpass,$ERPport,'pgsql',$err); |
|
37 |
$erpdb = new mydb($ERPhost,$ERPdbname,$ERPuser,$ERPpass,$ERPport,'pgsql',$err,$debug);
|
|
34 | 38 |
if ($erpdb->db->connected_database_name == $ERPdbname) { |
35 |
$erp = new erp($erpdb,$err,$divStd,$divVerm,$auftrnr,$kdnum,$preA,$preK,$invbrne,$mwstS,$OEinsPart,$lager); |
|
39 |
$erp = new erp($erpdb,$err,$divStd,$divVerm,$auftrnr,$kdnum,$preA,$preK,$invbrne,$mwstS,$OEinsPart,$lager,$pricegroup,$ERPusrID);
|
|
36 | 40 |
} else { |
37 | 41 |
$err->out('Keine Verbindung zur ERP',true); |
38 | 42 |
exit(); |
39 | 43 |
} |
40 | 44 |
|
41 | 45 |
//Shop-Instanz |
42 |
$shopdb = new mydb($SHOPhost,$SHOPdbname,$SHOPuser,$SHOPpass,$SHOPport,'mysql',$err); |
|
46 |
$shopdb = new mydb($SHOPhost,$SHOPdbname,$SHOPuser,$SHOPpass,$SHOPport,'mysql',$err,$debug);
|
|
43 | 47 |
if ($shopdb->db->connected_database_name == $SHOPdbname) { |
44 | 48 |
$shop = new pepper($shopdb,$err,$SHOPdbname,$divStd,$divVerm,$minder,$nachn,$versandS,$versandV,$paypal,$treuhand,$mwstLX,$mwstS,$variantnr); |
45 | 49 |
} else { |
Auch abrufbar als: Unified diff
Diverse Verbesserungen u.a. Debugging