var row_item = {
index : checkinSvc.checkins.length,
- copy_barcode : params.copy_barcode
+ input_barcode : params.copy_barcode
};
// track the item in the grid before sending the request
egCirc.checkin(params, options).then(
function(final_resp) {
-
+
row_item.evt = final_resp.evt;
angular.forEach(final_resp.data, function(val, key) {
row_item[key] = val;
});
+
+ row_item['copy_barcode'] = row_item.acp.barcode();
if (row_item.mbts) {
var amt = Number(row_item.mbts.balance_owed());
// immediate reaction to their barcode input action.
var row_item = {
index : $scope.checkouts.length,
- copy_barcode : params.copy_barcode,
+ input_barcode : params.copy_barcode,
noncat_type : params.noncat_type
};
angular.forEach(co_resp.data, function(val, key) {
row_item[key] = val;
});
+
+ row_item['copy_barcode'] = row_item.acp.barcode();
+
munge_checkout_resp(co_resp, row_item);
},
function() {
// immediate reaction to their barcode input action.
var row_item = {
index : $scope.renewals.length,
- copy_barcode : params.copy_barcode,
+ input_barcode : params.copy_barcode,
noncat_type : params.noncat_type
};
row_item[key] = val;
});
+ row_item['copy_barcode'] = row_item.acp.barcode();
+
if (row_item.mbts) {
var amt = Number(row_item.mbts.balance_owed());
if (amt != 0) {