Merge pull request #21381 from cfoellmann/PR/fix-soc-link
set the target for SOC links on proposals and invoices to the customer tab
This commit is contained in:
commit
7254c7d631
@ -1590,7 +1590,7 @@ if ($action == 'create') {
|
|||||||
$shipping_method_id = 0;
|
$shipping_method_id = 0;
|
||||||
if ($socid > 0) {
|
if ($socid > 0) {
|
||||||
print '<td>';
|
print '<td>';
|
||||||
print $soc->getNomUrl(1);
|
print $soc->getNomUrl(1, 'customer');
|
||||||
print '<input type="hidden" name="socid" value="'.$soc->id.'">';
|
print '<input type="hidden" name="socid" value="'.$soc->id.'">';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
if (!empty($conf->global->SOCIETE_ASK_FOR_SHIPPING_METHOD) && !empty($soc->shipping_method_id)) {
|
if (!empty($conf->global->SOCIETE_ASK_FOR_SHIPPING_METHOD) && !empty($soc->shipping_method_id)) {
|
||||||
|
|||||||
@ -3053,7 +3053,7 @@ if ($action == 'create') {
|
|||||||
// If thirdparty known and not a predefined invoiced without a recurring rule
|
// If thirdparty known and not a predefined invoiced without a recurring rule
|
||||||
print '<tr><td class="fieldrequired">'.$langs->trans('Customer').'</td>';
|
print '<tr><td class="fieldrequired">'.$langs->trans('Customer').'</td>';
|
||||||
print '<td colspan="2">';
|
print '<td colspan="2">';
|
||||||
print $soc->getNomUrl(1);
|
print $soc->getNomUrl(1, 'customer');
|
||||||
print '<input type="hidden" name="socid" value="'.$soc->id.'">';
|
print '<input type="hidden" name="socid" value="'.$soc->id.'">';
|
||||||
// Outstanding Bill
|
// Outstanding Bill
|
||||||
$arrayoutstandingbills = $soc->getOutstandingBills();
|
$arrayoutstandingbills = $soc->getOutstandingBills();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user