From 7aa09d8b71ef889fc9249bbff82db120de32bcdc Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 28 Aug 2017 18:37:16 +0200 Subject: [PATCH] NEW Can create thirdparty from card proposal, order or invoice --- htdocs/comm/propal/card.php | 1 + htdocs/commande/card.php | 3 ++- htdocs/compta/facture/card.php | 4 +++- htdocs/contrat/card.php | 1 + htdocs/fourn/commande/card.php | 1 + htdocs/fourn/facture/card.php | 1 + htdocs/supplier_proposal/card.php | 1 + 7 files changed, 10 insertions(+), 2 deletions(-) diff --git a/htdocs/comm/propal/card.php b/htdocs/comm/propal/card.php index b603d1e6a1700..e8391a066fa49 100644 --- a/htdocs/comm/propal/card.php +++ b/htdocs/comm/propal/card.php @@ -1376,6 +1376,7 @@ }); '; } + print ' '.$langs->trans("AddThirdParty").''; print ''; } print '' . "\n"; diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php index ddb44153e4994..6d62f6c129a1e 100644 --- a/htdocs/commande/card.php +++ b/htdocs/commande/card.php @@ -1467,7 +1467,7 @@ print ''; print ''; - // Client + // Thirdparty print ''; print '' . $langs->trans('Customer') . ''; if ($socid > 0) { @@ -1491,6 +1491,7 @@ }); '; } + print ' '.$langs->trans("AddThirdParty").''; print ''; } print '' . "\n"; diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php index 731b8aafec6b5..5a9dad480a0d3 100644 --- a/htdocs/compta/facture/card.php +++ b/htdocs/compta/facture/card.php @@ -2195,7 +2195,7 @@ // Thirdparty print '' . $langs->trans('Customer') . ''; - if ($soc->id > 0 && ! GETPOST('fac_rec')) + if ($soc->id > 0 && ! GETPOST('fac_rec','alpha')) { print ''; print $soc->getNomUrl(1); @@ -2210,6 +2210,7 @@ print ' / ' . price($soc->outstanding_limit, '', $langs, 0, 0, -1, $conf->currency); } print ')'; + print ' '.$langs->trans("AddThirdParty").''; print ''; } else @@ -2230,6 +2231,7 @@ }); '; } + print ' '.$langs->trans("AddThirdParty").''; print ''; } print '' . "\n"; diff --git a/htdocs/contrat/card.php b/htdocs/contrat/card.php index ce3915cf2eee3..a39698cd81532 100644 --- a/htdocs/contrat/card.php +++ b/htdocs/contrat/card.php @@ -1153,6 +1153,7 @@ { print ''; print $form->select_company('', 'socid', '', 'SelectThirdParty', 1, 0, null, 0, 'minwidth300'); + print ' '.$langs->trans("AddThirdParty").''; print ''; } print ''."\n"; diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php index 5656643820644..07e551fcd7186 100644 --- a/htdocs/fourn/commande/card.php +++ b/htdocs/fourn/commande/card.php @@ -1459,6 +1459,7 @@ }); '; } + print ' '.$langs->trans("AddThirdParty").''; } print ''; diff --git a/htdocs/fourn/facture/card.php b/htdocs/fourn/facture/card.php index a3d396e75a132..1b78d7e399b67 100644 --- a/htdocs/fourn/facture/card.php +++ b/htdocs/fourn/facture/card.php @@ -1487,6 +1487,7 @@ }); '; } + print ' '.$langs->trans("AddThirdParty").''; } print ''; diff --git a/htdocs/supplier_proposal/card.php b/htdocs/supplier_proposal/card.php index cfb8ca5223462..19f0c6c08f37e 100644 --- a/htdocs/supplier_proposal/card.php +++ b/htdocs/supplier_proposal/card.php @@ -1063,6 +1063,7 @@ } else { print ''; print $form->select_company('', 'socid', 's.fournisseur = 1', 'SelectThirdParty', 0, 0, null, 0, 'minwidth300'); + print ' '.$langs->trans("AddThirdParty").''; print ''; } print '' . "\n";