Skip to content

Commit

Permalink
Fix: Masks works with thirdparty type
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarcet committed Mar 4, 2015
1 parent 081875c commit 1a02f6a
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion htdocs/contrat/card.php
Expand Up @@ -1097,7 +1097,7 @@
$ref = substr($object->ref, 1, 4);
if ($ref == 'PROV' && !empty($modCodeContract->code_auto))
{
$numref = $object->getNextNumRef($soc);
$numref = $object->getNextNumRef($object->thirdparty);
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/modules/commande/mod_commande_saphir.php
Expand Up @@ -121,7 +121,7 @@ function getNextValue($objsoc,$object)
return 0;
}

$numFinal=get_next_value($db,$mask,'commande','ref','',$objsoc->code_client,$object->date);
$numFinal=get_next_value($db,$mask,'commande','ref','',$objsoc,$object->date);

return $numFinal;
}
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/modules/contract/mod_contract_magre.php
Expand Up @@ -112,7 +112,7 @@ function getNextValue($objsoc,$contract)
return 0;
}

$numFinal=get_next_value($db,$mask,'contrat','ref','',$objsoc->code_client,$contract->date_contrat);
$numFinal=get_next_value($db,$mask,'contrat','ref','',$objsoc,$contract->date_contrat);

return $numFinal;
}
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/modules/fichinter/mod_arctic.php
Expand Up @@ -120,7 +120,7 @@ function getNextValue($objsoc=0,$object='')
return 0;
}

$numFinal=get_next_value($db,$mask,'fichinter','ref','',$objsoc->code_client,$object->datec);
$numFinal=get_next_value($db,$mask,'fichinter','ref','',$objsoc,$object->datec);

return $numFinal;
}
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/modules/livraison/mod_livraison_saphir.php
Expand Up @@ -120,7 +120,7 @@ function getNextValue($objsoc,$object)
return 0;
}

$numFinal=get_next_value($db,$mask,'livraison','ref','',$objsoc->code_client,$object->date_livraison);
$numFinal=get_next_value($db,$mask,'livraison','ref','',$objsoc,$object->date_livraison);

return $numFinal;
}
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/modules/propale/mod_propale_saphir.php
Expand Up @@ -123,7 +123,7 @@ function getNextValue($objsoc,$propal)

$date=$propal->datep;
$customercode=$objsoc->code_client;
$numFinal=get_next_value($db,$mask,'propal','ref','',$customercode,$date);
$numFinal=get_next_value($db,$mask,'propal','ref','',$objsoc,$date);

return $numFinal;
}
Expand Down
Expand Up @@ -126,7 +126,7 @@ function getNextValue($objsoc,$object,$mode='next')
}

//Supplier invoices take invoice date instead of creation date for the mask
$numFinal=get_next_value($db,$mask,'facture_fourn','ref','',$objsoc->code_fournisseur,$object->date);
$numFinal=get_next_value($db,$mask,'facture_fourn','ref','',$objsoc,$object->date);

return $numFinal;
}
Expand Down
Expand Up @@ -121,7 +121,7 @@ function getNextValue($objsoc=0,$object='')
return 0;
}

$numFinal=get_next_value($db,$mask,'commande_fournisseur','ref','',$objsoc->code_fournisseur,$object->date_commande);
$numFinal=get_next_value($db,$mask,'commande_fournisseur','ref','',$objsoc,$object->date_commande);

return $numFinal;
}
Expand Down

0 comments on commit 1a02f6a

Please sign in to comment.