Invoices and quotes are broken following 7.1.5 upgrade

Since upgrading to 7.1.5 quotes and invoices are completely broken. Creating a quote seems to work fine, but when converted to an invoice, all of the line items are missing - the grand total carries through without a problem though.

When you go back to the Quote, all of the line items are missing there too. It is possible to add new line items to an invoice, but when you click save, the ā€œmissingā€ items also appear. But try and edit the line items to remove duplicates and they all disappear again.

Picture 1 below shows the invoice with duplicate line items (there should only be two) and picture 2 shows what happens when you try and edit the invoice.

Iā€™ve tried a repair and rebuild but this has made no difference.

HELP!

Iā€™m wondering if this issue should actually have been posted in the ā€œBugsā€ forumā€¦

I have checked the sugarcrm.log and there were indeed a couple of errors encountered during the upgrade process, but they all related to the aor_ reports tables/module. There were no apparent issues with the aos_ sales tables/modules.

On a related note - in which table are invoice/quote line items stored? It would be very helpful to know as I will now need to manually alter invoices before they are sent out.

One other question - how do I roll back?

Out of desperation I have reset both the Quotes and Invoices modules and performed yet another repair and rebuild - nothing has improved however.

Help please!

Hi Blloyd,

Did you backup your environment before upgrading?

The easiest way would be to restore the backup if possible.

If not, Iā€™ll look into if there is a fix that you can apply for your current instance.

Thanks,

Will.

Thanks Will,

I do have a backup but I have used the system since upgrade - the problem with opportunities and invoices wasnā€™t apparent until I actually had to make one of each. Is it possible to downgrade the database and retain info, or am I going to have to roll back to Friday?

Thanks again,

Ben

Any progress on the fix of this?

I have a similar problem but this was not during an upgrade. This is a fresh install of Suite CRM 7.1.5.

I have two issues:

  1. I cannot change any AOS settings in the admin panel - I have to manually edit config_override.php (775 Permissions) to get groups to show in quotes and to adjust the initial quote numbers.

  2. I can enter a quote but have the same issue as ben when I go to edit it - all line items disappear, I can add new line items or groups to quote but cannot change existing line items. If I hit save or, the line items are still visible on the quote details view or when printed.

Have you tried implementing this fix: https://github.com/salesagility/SuiteCRM/commit/89f0b3cee25b1b78ea11cb07a24a68a76c817f47

It could be that this is a new un-related bug, if so I will log on GitHub.

Thanks,

Will.

Hi Will,

I have applied the change specified in the linked fix, and performed a repair and rebuild but the problem persists. I think you will have to log this as another bug.

Thanks,

Ben

Hi All
I have this too - the contents of the quote still appear, but trying to edit the quote shows no lines (as in the above example)
I have not tried to do the invoicing bitā€¦

I have also implemented the ā€˜fixā€™ with no joy :frowning:

I notice that this has been ā€˜closedā€™ on Github - this is not the caseā€¦!
https://github.com/salesagility/SuiteCRM/issues/115

It goes without saying but Please find a fix ASAP!

Same here, tried the fix to no avail.

Some addition info if it helps resolve the bug:

  1. My instance is installatron installed on a ljnux server
  2. Some more info on the settings not savingā€¦ the GUI shows that groups are enabled by default but the quotes donā€™t show groups until I actually manually enter groups as enabled in the config_override.php file (I have to add a new line of code to it).
  3. I have noticed that the aos_line_item_groups table has no rowsā€¦ does this mean the quotes arenā€™t saving the line items to the table it is supposed to be saving it to? I am not sure the purpose of this table, I am just guessing it could be pertinent, so this is just here to help someone troubleshoot!

I have found a very similar result in my database to that reported by ubernerdsteve. What I cannot find however is the actual line items for quotes/invoices in the database. Does anyone know where these are stored?

I am also struggling to find the details in the DB
The only places I can find the info is in ā€˜Trackerā€™ although AOS-Product_Quotes has some of the info in.
I concur that the records are not being entered - though how they show up in the quote details view is unclear.

Weird but I got mine fixed!!
I originally manually edited the file stated in the ā€˜fixā€™ but it didnā€™t work so - Try this:
[ul]
[/ul]- Clear ALL the browsers Cache (I didnā€™t have Suite opened). I use Chrome with History Eraser Extension

I tried the ā€œfixā€ proposed by SpudR but it left my invoices and quotes completely inaccessible - I couldnā€™t open any of them.

Does any have any other ideas?

OK this is really, really weird. I decided to have another go at SpudRā€™s suggestion, this time checking the file permissions on the newly created Line_Items.php file matched those of the original. I also performed a repair and rebuild operation just to check everything was ok. This time around, I could access invoices and quotes, although there were 50-odd lines of code output at the top of each page. Worse still line items had disappeared from every page - all that remained were the totals.

Again, I restored my original Line_Items.php and repaired the system, and tested to verify that everything was back to how it should be. But this time when I tried to edit an existing quote or invoice, the ability to add and alter line items had returned.

By restoring the original Line_Items.php, in theory nothing has changed. But clearly something has been tweaked in this process because everything now seems to be working correctly. I shall monitor my install and update if I notice anything else.

Glad you got it fixed - mine too was a strange experience :slight_smile:

1 Like

I had the same problem in 7.1.5 and today I upgraded to 7.2 and the problem is gone.

This issue will now be resolved in the 7.2 release.