Update mod_codeclient_monkey.php

This commit is contained in:
Frédéric FRANCE 2018-09-30 23:02:52 +02:00 committed by GitHub
parent f32ccf935a
commit c8ddf18558
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,22 +122,20 @@ class mod_codeclient_monkey extends ModeleThirdPartyCode
$return='000001'; $return='000001';
$field='';$where=''; $field='';
if ($type == 0) $where='';
{ $prefix = '';
if ($type == 0) {
$field = 'code_client'; $field = 'code_client';
$prefix = $this->prefixcustomer;
//$where = ' AND client in (1,2)'; //$where = ' AND client in (1,2)';
} } elseif ($type == 1) {
else if ($type == 1)
{
$field = 'code_fournisseur'; $field = 'code_fournisseur';
$prefix = $this->prefixsupplier;
//$where = ' AND fournisseur = 1'; //$where = ' AND fournisseur = 1';
} else {
return -1;
} }
else return -1;
if ($type == 0) $prefix=$this->prefixcustomer;
if ($type == 1) $prefix=$this->prefixsupplier;
// D'abord on recupere la valeur max (reponse immediate car champ indexe) // D'abord on recupere la valeur max (reponse immediate car champ indexe)
$posindice=8; $posindice=8;