In VPAttributeDialog.java the displaylength and the fieldlength for both serial number and lot is set to 20, the database fields and the web client allow 40 characters.
{{ // Lot
private VString fieldLotString = new VString ("Lot", false, false, true, 20, 20, null, null);
}}
{{ // Ser No
private VString fieldSerNo = new VString ("SerNo", false, false, true, 20, 20, null, null);
}}
Closing as lack of community interest