2
0
forked from Wavyzz/dolibarr

NEW Can create thirdparty from card proposal, order or invoice

This commit is contained in:
Laurent Destailleur
2017-08-28 18:37:16 +02:00
parent f1633d72f8
commit 7aa09d8b71
7 changed files with 10 additions and 2 deletions

View File

@@ -1467,7 +1467,7 @@ if ($action == 'create' && $user->rights->commande->creer)
print '<input type="text" name="ref_client" value="'.GETPOST('ref_client').'"></td>';
print '</tr>';
// Client
// Thirdparty
print '<tr>';
print '<td class="fieldrequired">' . $langs->trans('Customer') . '</td>';
if ($socid > 0) {
@@ -1491,6 +1491,7 @@ if ($action == 'create' && $user->rights->commande->creer)
});
</script>';
}
print ' <a href="'.DOL_URL_ROOT.'/societe/card.php?action=create&backtopage='.urlencode($_SERVER["PHP_SELF"].'?action=create').'">'.$langs->trans("AddThirdParty").'</a>';
print '</td>';
}
print '</tr>' . "\n";