use Carp;
sub customer {
- my ($self, $customer, $type, %params) = @_;
+ my ($self, $customer, %params) = @_;
return _customer_vendor($self, $customer, 'customer', %params);
}
sub vendor {
- my ($self, $vendor, $type, %params) = @_;
+ my ($self, $vendor, %params) = @_;
return _customer_vendor($self, $vendor, 'vendor', %params);
}
croak "Unknown display type '$params{display}'" unless $params{display} =~ m/^(?:inline|table-cell)$/;
+ my $callback = $params{callback} ? '&callback=' . $::form->escape($params{callback}) : '';
+
my $text = join '', (
$params{no_link} ? '' : '<a href="controller.pl?action=CustomerVendor/edit&db=' . $type . '&id=' . $self->escape($cv->id) . '">',
$self->escape($cv->name),