Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

Invoice now only allows a max quantity of 5, per line item.

William Harker    ( User )

Commented 1 week ago

I just updated to 2.1.29 and now when I create an invoice line item with a quantity greater than 5 it says "The quantity must be 5." . how do I fix this?

Nick Thijssen    ( User )

Commented 1 week ago

I have the same issue.

Jader Augusto Wagner    ( User )

Commented 1 week ago

I have the same issue.

Jader Augusto Wagner    ( User )

Commented 1 week ago

in the /app/Http/Requests/Document/Document.php file
lines 72 and 75
change the value of the $size variable;

worked, until an official fix...

Seth Adedje    ( User )

Commented 1 week ago

Yep. Got same issue here.

Denis Duliçi    ( Admin )

Commented 1 week ago

Hello,

This issue has been fixed on Cloud.

If you're self-hosting, then you should wait (a couple of days) for the next release and/or apply the following changes yourself:

https://github.com/akaunting/akaunting/pull/2354/files

Best regards

Scott Carson    ( User )

Commented 6 days ago

Same issue.

Jader, I tried your solution - for example size = 9 - but it will simply change the error to read "Quantity must be 9". It needs something closer to what Denis had where the quantity can be anything but it must be validated. That said ...

Denis, the link you provided seems to be intended to address the issue of "not allowing negative quantity", however I tried your code and got the error, "The quantity must be between 1 and 7 digits." for every item greater than 0, and, "The quantity must be greater than 0" for all items less than 0 (i.e. a *described* discount - key word is described because we sometimes have to detail the discount; it's not enough to simply use the discount field). So, there is some confusion.

Ultimately, I used Denis' code as a base but then changed the code as follows:

Line 78: I just used required|numeric

Line 108: in public function messages, I just deleted the entire if this->items_quantity_size ... condition.

NOTE: technically the quantity could be forced to gt:0 but it doesn't read cleanly in the item editor. However, if the item description contains text like "includes x discount", then it could work as PDf invoice would read "item - qty - price - discount - total".

I'm using this in a live instance with real data. I hope that makes sense and I hope that helps and welcome discussion.

-S.

William Harker    ( User )

Commented 4 days ago

This is now fix in Build 2.1.30
I just want to say thanks to the Developers, and I really enjoy this product.

Juan Torres    ( User )

Commented 4 days ago

What do self-hosted solutions need to do?

Please login or register to leave a response.

Showing 1 to 9 of 9 discussions