Here is the current code snippet I have:
function onEdit(e) {
var range = e.range;
var val = range.getValue();
var row = range.getRow();
var col = range.getColumn();
var shift = 1;
var ss = SpreadsheetApp.getActiveSheet().getRange(row, (col+shift));
if (col == 3){
ss.setValue(new Date()).setNumberFormat("MM/dd/yyy hh:mm:ss");
}
if (val == ""){
ss.setValue("").setNumberFormat("MM/dd/yyy hh:mm:ss");
}
}
This describes the current functionality:
https://i.stack.imgur.com/wqqGH.png
https://i.stack.imgur.com/tdZKO.png
However, there seems to be an issue where updating a cell in barcode does not trigger the timestamp update...