Skip to content

Commit

Permalink
NEW Can create thirdparty from card proposal, order or invoice
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Aug 28, 2017
1 parent f1633d7 commit 7aa09d8
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions htdocs/comm/propal/card.php
Expand Up @@ -1376,6 +1376,7 @@
});
</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";
Expand Down
3 changes: 2 additions & 1 deletion htdocs/commande/card.php
Expand Up @@ -1467,7 +1467,7 @@
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) {
Expand All @@ -1491,6 +1491,7 @@
});
</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";
Expand Down
4 changes: 3 additions & 1 deletion htdocs/compta/facture/card.php
Expand Up @@ -2195,7 +2195,7 @@

// Thirdparty
print '<td class="fieldrequired">' . $langs->trans('Customer') . '</td>';
if ($soc->id > 0 && ! GETPOST('fac_rec'))
if ($soc->id > 0 && ! GETPOST('fac_rec','alpha'))
{
print '<td colspan="2">';
print $soc->getNomUrl(1);
Expand All @@ -2210,6 +2210,7 @@
print ' / ' . price($soc->outstanding_limit, '', $langs, 0, 0, -1, $conf->currency);
}
print ')';
print ' <a href="'.DOL_URL_ROOT.'/societe/card.php?action=create&backtopage='.urlencode($_SERVER["PHP_SELF"].'?action=create&fac_rec='.GETPOST('fac_rec','alpha')).'">'.$langs->trans("AddThirdParty").'</a>';
print '</td>';
}
else
Expand All @@ -2230,6 +2231,7 @@
});
</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";
Expand Down
1 change: 1 addition & 0 deletions htdocs/contrat/card.php
Expand Up @@ -1153,6 +1153,7 @@
{
print '<td>';
print $form->select_company('', 'socid', '', 'SelectThirdParty', 1, 0, null, 0, 'minwidth300');
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";
Expand Down
1 change: 1 addition & 0 deletions htdocs/fourn/commande/card.php
Expand Up @@ -1459,6 +1459,7 @@
});
</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>';

Expand Down
1 change: 1 addition & 0 deletions htdocs/fourn/facture/card.php
Expand Up @@ -1487,6 +1487,7 @@
});
</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></tr>';

Expand Down
1 change: 1 addition & 0 deletions htdocs/supplier_proposal/card.php
Expand Up @@ -1063,6 +1063,7 @@
} else {
print '<td colspan="2">';
print $form->select_company('', 'socid', 's.fournisseur = 1', 'SelectThirdParty', 0, 0, null, 0, 'minwidth300');
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";
Expand Down

0 comments on commit 7aa09d8

Please sign in to comment.