-
Notifications
You must be signed in to change notification settings - Fork 67
Modify customer address validation to allow no address on Windows flavor #91
base: master
Are you sure you want to change the base?
Conversation
First, thanks for digging into this. I'm surprised not sending an under Business Rules: "The customer address field is mandatory." But I'm also confused by your note at the top. You say "sending an empty address does fail" but then also "You are able to send nothing at all". Do you mean that excluding certain parts of the Thanks again |
For example, sending a nil street, city, state, but having the address tag in there, which a builds up the XML element with a lot of empty fields will fail. If you don't send any element at all, it works - I saw this eluded to on stackoverflow Troy Anderson
|
Ah ok, so sending a request with an actual "Address" element but which contains a set of empty values for Street, City, etc. will fail. But also sending a request with no "Address" at all will succeed. So it seems like the validation rule is basically, in plain english, "If you give me an address then it needs to have non-blank values for all my children attributes (Street, City, State, Zip, etc)". On Aug 26, 2013, at 10:41 AM, Troy Anderson [email protected] wrote:
|
I actually don't know the rule though, I can do some more testing to reverse engineer it - I have a feeling if you leave out the street, but fill in the rest, it will work. and if you fill in the street and leave out the rest, it probably works. I got a few validation errors on the address when I was testing, but I didn't explore enough to understand their rules. I'm using it as-is for now, but I'll just be disabling that validation in my production app until this is firmed up and in another version release. It's hard to tell my users it requires an address, when Quickbooks proper does not :( On Aug 26, 2013, at 11:20 AM, Cody Caughlan [email protected] wrote:
|
(no 'Addresses' XML node in POST request). If an address is provided it must NOT be empty. See discussion here ruckus#91
At first I just removed the validation, but I think something should be there - since sending an empty address does fail.
You are able to send nothing at all, customer.addresses = nil seems to work;
I have no idea how to communicate this in a short validation error :)