[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dolibarr-dev] Dolibarr - Oscommerce
From: |
Jean |
Subject: |
[Dolibarr-dev] Dolibarr - Oscommerce |
Date: |
Thu, 19 Apr 2007 15:45:21 -1000 |
User-agent: |
Debian Thunderbird 1.0.2 (X11/20060423) |
correction des fichiers
htdocs/oscommerce_ws/includes/configure.php
htdocs/oscommerce_ws/commandes/fiche.php
---
/home/jean/projets/dolibarr_devref/dolibarr/htdocs/oscommerce_ws/commandes/fiche.php
2007-04-16 09:37:37.000000000 -1000
+++ /home/jean/projets/dolibarr/htdocs/oscommerce_ws/commandes/fiche.php
2007-04-19 15:31:07.837886672 -1000
@@ -96,8 +96,13 @@
if ( !$result )
{
$commande = $osc_order->osc2dolibarr($_GET["orderid"]);
+<<<<<<< fiche.php
+ }
+//print_r($commande);
+=======
}
+>>>>>>> 1.5
/* utilisation de la table de transco*/
if ($osc_order->get_orderid($osc_order->osc_orderid)>0)
{
@@ -151,6 +156,26 @@
}
}
}
+<<<<<<< fiche.php
+// vérifier l'existence des produits commandés
+ $osc_product = new Osc_Product($db);
+ $err = 0;
+
+ for ($lig = 0; $lig < sizeof($commande->lines); $lig++)
+ {
+// print "<p>traitement de
".$commande->lines[$lig]->fk_product."</p>";
+ if (! $commande->lines[$lig]->fk_product)
+ {
+ print "<p>Article non trouvé
".$commande->lines[$lig]->libelle." : ".$commande->lines[$lig]->desc."</p>";
+ $err ++;
+ }
+ }
+ if ($err > 0) {
+ print ("<p> Des produits de la commande sont
inexistants</p>");
+ $id =-9;
+ }
+ else $id = $commande->create($user);
+=======
// vérifier l'existence des produits commandés
$osc_product = new Osc_Product($db);
$err = 0;
@@ -164,6 +189,7 @@
$id =-9;
}
else $id = $commande->create($user);
+>>>>>>> 1.5
if ($id > 0)
{
---
/home/jean/projets/dolibarr_devref/dolibarr/htdocs/oscommerce_ws/includes/configure.php
2007-04-16 09:37:37.000000000 -1000
+++ /home/jean/projets/dolibarr/htdocs/oscommerce_ws/includes/configure.php
2007-04-19 15:31:08.330811736 -1000
@@ -7,12 +7,35 @@
----------------------------------------------*/
//base url des webservices
+<<<<<<< configure.php
+define(OSCWS_DIR,'http://osc-tiaris/ws_OSC/');
+//define(OSCWS_DIR,'http://www.tiaris.info/ws_OSC');
+=======
define(OSCWS_DIR,'http://www.tiaris.info/catalog/ws_OSC/');
+>>>>>>> 1.6
//affichages dans la page d'accueil
define(OSC_MAXNBCOM, 5);
define(OSC_ORDWAIT,'4'); // code du statut de commande en attente
define(OSC_ORDPROCESS,'1'); // code du statut de commande en traitement
//
+<<<<<<< configure.php
+define(OSC_ENTREPOT, 1); //l'entrepot lié au stock du site web
+define(TX_CURRENCY, 119.33); // le taux de conversion monnaie site osc -
monnaie dolibarr
+define(NB_DECIMALS, 0);
+define(FK_PORT, 159); // l'id du service frais de port défini.
+
+// fonctions
+/**
+* \brief assure la conversion en monnaie de dolibarr
+* \param oscid Id du produit dans OsC
+* \param prodid champ référence
+* \return int <0 si ko, >0 si ok
+*/
+ function convert_price($price)
+ {
+ return round($price * TX_CURRENCY, NB_DECIMALS);
+ }
+=======
define(OSC_ENTREPOT, 1); //l'entrepot lié au stock du site web
define(TX_CURRENCY, 1); // le taux de conversion monnaie site osc - monnaie
dolibarr
define(NB_DECIMALS, 0);
@@ -29,4 +52,5 @@
{
return round($price * TX_CURRENCY, NB_DECIMALS);
}
+>>>>>>> 1.6
?>
jean.vcf
Description: Vcard
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dolibarr-dev] Dolibarr - Oscommerce,
Jean <=