Coder Social home page Coder Social logo

Comments (4)

normancapule avatar normancapule commented on July 1, 2024

I found out the reason why this was failing. It was because the invoice didn't have a line item present. Is this correct? Can you please include a validation for line items in the invoice model?

from xeroizer.

waynerobinson avatar waynerobinson commented on July 1, 2024

This is probably correct.

Happy to merge a pull request for this feature.

Wayne

On 23 October 2012 18:28, John Norman D. Capule [email protected]:

I found out the reason why this was failing. It was because the invoice
didn't have a line item present. Is this correct? Can you please include a
validation for line items in the invoice model?


Reply to this email directly or view it on GitHubhttps://github.com//issues/40#issuecomment-9694241.

from xeroizer.

rjaus avatar rjaus commented on July 1, 2024

Invoice model now contains a number of validations, feel free to add more: https://github.com/waynerobinson/xeroizer/blob/master/lib/xeroizer/models/invoice.rb

from xeroizer.

smingins avatar smingins commented on July 1, 2024

@RileyJamesXero why has this issue been closed? I was tracking down why we were getting no exceptions trying to create an invoice and it was due to:

<ValidationErrors> <ValidationError> <Message>One or more line items must be specified</Message> </ValidationError> </ValidationErrors>
But all this gem does it return false for the error with no explanation.

What am I missing here?

from xeroizer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.