}
}
+ dojo.mixin(override, {erp_export_date : {readOnly: true}});
+
dojo.mixin(override, {
provider : {
dijitArgs : {
// Display the close date/by data for closed invoices.
var readOnly = inv && inv.close_date();
var suppress = readOnly ? ['id'] : ['id', 'close_date', 'closed_by'];
+
+ // Only hide the ERP export date when the invoice is still open
+ // and no value is present. A re-opened invoice can have an export
+ // date and we want that to be visible.
+ if (!readOnly && (!inv || !inv.erp_export_date()))
+ suppress.push('erp_export_date');
pane = new openils.widget.EditPane({
fmObject : inv,