Skip to content
Snippets Groups Projects
Commit 369d3b84 authored by wactbprot's avatar wactbprot
Browse files

fix common ref bug

parent e6bc7489
No related branches found
No related tags found
No related merge requests found
......@@ -2,8 +2,8 @@
<!--
<td> {{}} </td>
-->
<td class="no_{{Number}}" title="lfd. Nummer" data-row="{{Number}}">
{{Number}}
<td class="no_{{Number}}" title="Vorgang" data-row="{{Number}}">
{{OrderNumber}}
</td>
<td class="no_{{Number}}" title="KS" data-row="{{Number}}">
<a href="http://a73434.berlin.ptb.de:5984/vl_db/applications/diwan2.html?id={{id}}"
......
......@@ -89,7 +89,8 @@ function(doc) {
}
}
spltRefNo = ReferenceNo.split("-");
CommonReferenceNo = ["7.5-1V", spltRefNo[2], ReferenceNo[4]].join("-");
OrderNumber = spltRefNo[4];
CommonReferenceNo = ["7.5-1V", spltRefNo[2], OrderNumber].join("-");
// --- ToDo
var ToDoName = missing
......@@ -122,6 +123,7 @@ function(doc) {
emit(CommonReferenceNo,
{id: doc._id,
Year: dc.Year,
OrderNumber: OrderNumber,
Certificate: dc.Certificate,
CustomerName: CustomerName,
CustomerSign: CustomerSign,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment