Fix: add ref_ext
This commit is contained in:
parent
7f56bc1b02
commit
1c4119dc9b
@ -540,6 +540,7 @@ if ($action == 'add' && $user->rights->facture->creer)
|
|||||||
$object->note_public = trim($_POST['note_public']);
|
$object->note_public = trim($_POST['note_public']);
|
||||||
$object->note = trim($_POST['note']);
|
$object->note = trim($_POST['note']);
|
||||||
$object->ref_client = $_POST['ref_client'];
|
$object->ref_client = $_POST['ref_client'];
|
||||||
|
$object->ref_ext = $_POST['ref_ext'];
|
||||||
$object->modelpdf = $_POST['model'];
|
$object->modelpdf = $_POST['model'];
|
||||||
$object->fk_project = $_POST['projectid'];
|
$object->fk_project = $_POST['projectid'];
|
||||||
$object->cond_reglement_id = $_POST['cond_reglement_id'];
|
$object->cond_reglement_id = $_POST['cond_reglement_id'];
|
||||||
@ -585,6 +586,7 @@ if ($action == 'add' && $user->rights->facture->creer)
|
|||||||
$object->note_public = trim($_POST['note_public']);
|
$object->note_public = trim($_POST['note_public']);
|
||||||
$object->note = trim($_POST['note']);
|
$object->note = trim($_POST['note']);
|
||||||
$object->ref_client = $_POST['ref_client'];
|
$object->ref_client = $_POST['ref_client'];
|
||||||
|
$object->ref_ext = $_POST['ref_ext'];
|
||||||
$object->modelpdf = $_POST['model'];
|
$object->modelpdf = $_POST['model'];
|
||||||
$object->fk_project = $_POST['projectid'];
|
$object->fk_project = $_POST['projectid'];
|
||||||
$object->cond_reglement_id = 0;
|
$object->cond_reglement_id = 0;
|
||||||
@ -632,6 +634,7 @@ if ($action == 'add' && $user->rights->facture->creer)
|
|||||||
$object->note_public = trim($_POST['note_public']);
|
$object->note_public = trim($_POST['note_public']);
|
||||||
$object->note = trim($_POST['note']);
|
$object->note = trim($_POST['note']);
|
||||||
$object->ref_client = $_POST['ref_client'];
|
$object->ref_client = $_POST['ref_client'];
|
||||||
|
$object->ref_ext = $_POST['ref_ext'];
|
||||||
$object->modelpdf = $_POST['model'];
|
$object->modelpdf = $_POST['model'];
|
||||||
|
|
||||||
// Source facture
|
// Source facture
|
||||||
@ -661,6 +664,7 @@ if ($action == 'add' && $user->rights->facture->creer)
|
|||||||
$object->note_public = trim($_POST['note_public']);
|
$object->note_public = trim($_POST['note_public']);
|
||||||
$object->note = trim($_POST['note']);
|
$object->note = trim($_POST['note']);
|
||||||
$object->ref_client = $_POST['ref_client'];
|
$object->ref_client = $_POST['ref_client'];
|
||||||
|
$object->ref_ext = $_POST['ref_ext'];
|
||||||
$object->modelpdf = $_POST['model'];
|
$object->modelpdf = $_POST['model'];
|
||||||
$object->fk_project = $_POST['projectid'];
|
$object->fk_project = $_POST['projectid'];
|
||||||
$object->cond_reglement_id = ($_POST['type'] == 3?1:$_POST['cond_reglement_id']);
|
$object->cond_reglement_id = ($_POST['type'] == 3?1:$_POST['cond_reglement_id']);
|
||||||
@ -1438,6 +1442,7 @@ if ($action == 'create')
|
|||||||
|
|
||||||
$projectid = (!empty($objectsrc->fk_project)?$object->fk_project:'');
|
$projectid = (!empty($objectsrc->fk_project)?$object->fk_project:'');
|
||||||
$ref_client = (!empty($objectsrc->ref_client)?$object->ref_client:'');
|
$ref_client = (!empty($objectsrc->ref_client)?$object->ref_client:'');
|
||||||
|
$ref_ext = (!empty($objectsrc->ref_ext)?$object->ref_ext:'');
|
||||||
|
|
||||||
$soc = $objectsrc->client;
|
$soc = $objectsrc->client;
|
||||||
$cond_reglement_id = (!empty($objectsrc->cond_reglement_id)?$objectsrc->cond_reglement_id:(!empty($soc->cond_reglement_id)?$soc->cond_reglement_id:1));
|
$cond_reglement_id = (!empty($objectsrc->cond_reglement_id)?$objectsrc->cond_reglement_id:(!empty($soc->cond_reglement_id)?$soc->cond_reglement_id:1));
|
||||||
@ -1469,6 +1474,8 @@ if ($action == 'create')
|
|||||||
print '<input type="hidden" name="action" value="add">';
|
print '<input type="hidden" name="action" value="add">';
|
||||||
print '<input type="hidden" name="socid" value="'.$soc->id.'">' ."\n";
|
print '<input type="hidden" name="socid" value="'.$soc->id.'">' ."\n";
|
||||||
print '<input name="facnumber" type="hidden" value="provisoire">';
|
print '<input name="facnumber" type="hidden" value="provisoire">';
|
||||||
|
print '<input name="ref_client" type="hidden" value="'.$ref_client.'">';
|
||||||
|
print '<input name="ref_ext" type="hidden" value="'.$ref_ext.'">';
|
||||||
print '<input type="hidden" name="origin" value="'.GETPOST('origin').'">';
|
print '<input type="hidden" name="origin" value="'.GETPOST('origin').'">';
|
||||||
print '<input type="hidden" name="originid" value="'.GETPOST('originid').'">';
|
print '<input type="hidden" name="originid" value="'.GETPOST('originid').'">';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user