Skip to content

Commit

Permalink
Fix 'New' (customer/vendor) link on invoices and transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuelsmann committed Dec 2, 2024
1 parent a79d403 commit 06c5f8d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions old/bin/aa.pl
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ sub form_header {
( $form->{"select$form->{vc}"} )
? qq|<select data-dojo-type="lsmb/FilteringSelect" id="$form->{vc}" name="$form->{vc}" $readonly><option></option>$form->{"select$form->{vc}"}</select>|
: qq|<input data-dojo-type="dijit/form/TextBox" id="$form->{vc}" name="$form->{vc}" value="$form->{$form->{vc}}" size=35 $readonly>
<a href="erp.pl?__action=root#contact.pl?__action=add&entity_class=$eclass"
<a href="#contact.pl?__action=add&entity_class=$eclass"
id="new-contact" target="_blank">[|
. $locale->text('New') . qq|]</a>|;

Expand Down Expand Up @@ -722,7 +722,7 @@ sub form_header {
<tr>
<th align="right" nowrap>| .
$locale->text('Entity Control Code') . qq|</th>
<td colspan=3><a href="erp.pl?__action=root#contact.pl?__action=get_by_cc&control_code=$form->{entity_control_code}" target="_blank"><b>$form->{entity_control_code}</b></a></td>
<td colspan=3><a href="#contact.pl?__action=get_by_cc&control_code=$form->{entity_control_code}" target="_blank"><b>$form->{entity_control_code}</b></a></td>
</tr>
<tr>
<th align="right" nowrap>| .
Expand Down
4 changes: 2 additions & 2 deletions old/bin/ir.pl
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ sub form_header {
}
else {
$vendor = qq|<input data-dojo-type="dijit/form/TextBox" name=vendor id=vendor value="$form->{vendor}" size=35 $roadonly>
<a href="erp.pl?__action=root#contact.pl?__action=add&entity_class=1"
<a href="#contact.pl?__action=add&entity_class=1"
id="new-contact" target="_blank">[|
. $locale->text('New') . qq|]</a>|;
}
Expand Down Expand Up @@ -409,7 +409,7 @@ sub form_header {
<tr>
<th align="right" nowrap>| .
$locale->text('Entity Code') . qq|</th>
<td colspan="2" nowrap><a href="erp.pl?__action=root#contact.pl?__action=get_by_cc&control_code=$form->{entity_control_code}" target="_blank"><b>$form->{entity_control_code}</b></a></td>
<td colspan="2" nowrap><a href="#contact.pl?__action=get_by_cc&control_code=$form->{entity_control_code}" target="_blank"><b>$form->{entity_control_code}</b></a></td>
<th align="right" nowrap>| .
$locale->text('Account') . qq|</th>
<td colspan=3>$form->{meta_number}</td>
Expand Down
4 changes: 2 additions & 2 deletions old/bin/is.pl
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ sub form_header {
else {
$customer = qq|<input data-dojo-type="dijit/form/TextBox" id="customer" name="customer" value="$form->{customer}" size="35" $readonly>
<a id="new-contact" target="_blank"
href="erp.pl?__action=root#contact.pl?__action=add&entity_class=2">[| .
href="#contact.pl?__action=add&entity_class=2">[| .
$locale->text('New') . qq|]</a> |;
}

Expand Down Expand Up @@ -463,7 +463,7 @@ sub form_header {
<tr>
<th align="right" nowrap>| .
$locale->text('Entity Code') . qq|</th>
<td colspan="2" nowrap><a href="erp.pl?__action=root#contact.pl?__action=get_by_cc&control_code=$form->{entity_control_code}" target="_blank"><b>$form->{entity_control_code}</b></a></td>
<td colspan="2" nowrap><a href="#contact.pl?__action=get_by_cc&control_code=$form->{entity_control_code}" target="_blank"><b>$form->{entity_control_code}</b></a></td>
<th align="right" nowrap>| .
$locale->text('Account') . qq|</th>
<td colspan=3>$form->{meta_number}</td>
Expand Down

0 comments on commit 06c5f8d

Please sign in to comment.