Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
</select>
</div>
<div class="col-md-2">
- <input ng-disabled="!item._receive || bind_or_none($index)" class="form-control" focus-me="$first"
+ <input ng-disabled="!item._receive || bind_or_none($index) || (barcode_items && !item.stream().distribution().receive_unit_template())" class="form-control" focus-me="$first"
ng-model="item._barcode" type="text" id="item_barcode_{{$index}}"
ng-required="item._receive && !bind_or_none($index)" eg-enter="focus_next_barcode($index)"/>
+ <div class="alert alert-warning" ng-show="barcode_items && !item.stream().distribution().receive_unit_template()">
+ [% l('Receiving template not set; needed to barcode while receiving') %]
+ </div>
</div>
<div class="col-md-1">
<input type="checkbox" ng-model="item._receive"/>
if (!n) bc = '';
angular.forEach($scope.items, function (i) {
+ if (!i.stream().distribution().receive_unit_template()) return;
var _barcode = i._barcode;
i._barcode = bc || i._old_barcode;
i._old_barcode = _barcode;