public void aboutToInsert(DescriptorEvent event) { super.aboutToInsert(event); if (this.getConfirmed() == null) { event.updateAttributeWithObject("confirmed", false); } if (this.getInvoiced() == null) { event.updateAttributeWithObject("invoiced", false); } if (this.getDelivered() == null) { event.updateAttributeWithObject("delivered", false); } if (this.getCode() == null || this.getCode().equals("")) { event.updateAttributeWithObject("code", "SO-" + this.getId()); } } }
public void aboutToInsert(DescriptorEvent event) { super.aboutToInsert(event); if (this.getConfirmed() == null) { event.updateAttributeWithObject("confirmed", false); } if (this.getPosted() == null) { event.updateAttributeWithObject("posted", false); } if (this.getCode() == null || this.getCode().equals("")) { event.updateAttributeWithObject("code", "SI-" + this.getId()); } } }
public void aboutToInsert(DescriptorEvent event) { super.aboutToInsert(event); if (this.getWithDepreciation() == null) { event.updateAttributeWithObject("withDepreciation", false); } } }
public void aboutToInsert(DescriptorEvent event) { super.aboutToInsert(event); if (this.getCode() == null || this.getCode().equals("")) { event.updateAttributeWithObject("code", "PYI-" + this.getId()); } } }