diff --git a/app/src/Template/Matchgrids/reconcile.ctp b/app/src/Template/Matchgrids/reconcile.ctp
index e8e7c9212..0dd43c5d3 100644
--- a/app/src/Template/Matchgrids/reconcile.ctp
+++ b/app/src/Template/Matchgrids/reconcile.ctp
@@ -81,7 +81,10 @@
|
- = (!empty($c['referenceid']) ? '' . substr($c['referenceid'],0,7) . '...' : __('match.op.new')); ?>
+ =
+ (!empty($c['referenceid'])
+ ? '' . substr($c['referenceid'],0,10) . '' . (strlen($c['referenceid']) > 10 ? '...' : '')
+ : __('match.op.new')); ?>
|
@@ -90,7 +93,7 @@
=
- $this->Form->postLink(__('match.op.reconcile.assign'),
+ $this->Form->postLink(__('match.op.reconcile.' . (!empty($c['referenceid']) ? 'assign' : 'generate')),
['action' => 'reconcile',
$vv_cur_mg->id],
['data' => [
@@ -98,8 +101,8 @@
// Default value needs to be the literal string "new" and not a localized text string
'referenceid' => (!empty($c['referenceid']) ? $c['referenceid'] : 'new')
],
- 'confirm' => __('match.op.assign.confirm'),
- 'class' => 'linkbutton']);
+ 'confirm' => __('match.op.assign.confirm'),
+ 'class' => 'linkbutton']);
?>
|