2
0
forked from Wavyzz/dolibarr

Allow to clone an invoice on a different third

This commit is contained in:
Maxime Kohlhaas
2014-01-17 15:44:06 +01:00
parent 87ab3ae297
commit 7e8a7f7e7f

View File

@@ -2805,6 +2805,7 @@ else if ($id > 0 || ! empty($ref))
$formquestion=array(
//'text' => $langs->trans("ConfirmClone"),
//array('type' => 'checkbox', 'name' => 'clone_content', 'label' => $langs->trans("CloneMainAttributes"), 'value' => 1)
array('type' => 'other', 'name' => 'socid', 'label' => $langs->trans("SelectThirdParty"), 'value' => $form->select_company('','socid','(s.client=1 OR s.client=2 OR s.client=3)',1))
);
// Paiement incomplet. On demande si motif = escompte ou autre
$formconfirm=$form->formconfirm($_SERVER["PHP_SELF"].'?facid='.$object->id,$langs->trans('CloneInvoice'),$langs->trans('ConfirmCloneInvoice',$object->ref),'confirm_clone',$formquestion,'yes',1);