|
|
|
|
| Figure5.groovy (PC file) |
import org.codehaus.groovy.grails.commons.ConfigurationHolder as CH
import com.somecomp.domain.orderentry.Carrier
import com.somecomp.domain.orderentry.FOBCode
import org.hibernate.type.YesNoType
public class Return {
String freightTrackingNo
Date createDate
boolean freightClaim = false
// attributes omitted
Customer customer
Carrier carrier
FOBCode fob
ReturnReason reason
ReturnStatus status
static hasMany = [ items : ReturnItem,
notes : ReturnNote
]
static constraints = {
freightTrackingNo maxSize:25, nullable:true,
reason nullable:false
// contraints omitted
carrier nullable:true
fob nullable:true
carrierNotifiedDate nullable:true
items nullable:false
}
static mapping = {
table (name:'rtrn',schema:CH.config.accounting.schema)
notes column:'notes'
freightTrackingNo column:'frttrk'
freightClaim column:'fgtclm', type:'org.hibernate.type.YesNoType'
createDate column:'createdate'
}
}
|
If you have a question about our products or about an order you have placed, please contact the customer service department at (800) 650-1804 or (970) 203-2914 or via e-mail. If you have a technical question about this site, please contact the Web Master. Terms of Use | Privacy Statement © 2010Penton Media, Inc. |