Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Module("gc.srv.bo.customer", function (m) {
Class("Address", {
isa: gc.srv.bo.BusinessObject,
does: gc.srv.bo.GenericDecorator,
has: {
obj: {
is: "rw"
}
},
validations: {
firstName: {
simple: ["required"]
},
lastName: {
simple: ["required"]
},
postalCode: {
simple: ["required", function () {
return "postalCode"+gc.srv.bo.country.current().ID.toUpperCase();
}]
}
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.