Revision 7e28f16e
Von Holger Lindemann vor mehr als 12 Jahren hinzugefügt
peppershop/BestellungShopToErp.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(); |
|
29 |
|
|
24 | 30 |
include_once("dblib.php"); |
25 | 31 |
include_once("pepper.php"); |
26 | 32 |
include_once("erplib.php"); |
27 |
//Fehlerinstanz |
|
28 |
$err = new error(); |
|
29 | 33 |
|
30 | 34 |
$err->out("Shop $shopnr, Bestellimport",true); |
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(); |
Auch abrufbar als: Unified diff
Diverse Verbesserungen u.a. Debugging