-
Notifications
You must be signed in to change notification settings - Fork 717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Payments not showing up #808
Comments
Hi @18alantom! I tried to replicate the issue above but wasn't able to. Could you provide some more information about what version of FrappeBooks you are using along with what OS/OS-Version you are using? Thanks! |
I'm having the issue, but it seems the issue lies in the database, in the |
This is probably a migration issue that removed this value. new payments do not have this problem. |
This is 67f9232 that introduced the We should add a migration that run |
The required was removed in 2d52ce8 |
Hi @mildred, facing the same issue that the "Sales Payments" page does not show any entries after upgrade to Wouldn't the proposed migration change the That would mean all the "Purchase Payments" would also show up in "Sales Payments" after the migration. The offending commit changed filters for both the Payment types: 67f9232#diff-aa9c6d8495fb7b57d6dbc231fcf18a654ed1e4c98ed91739ebdb3e85e65e96ab and the migration should also consider that and instead update the referenceType based on UPDATE Payment SET referenceType = 'SalesInvoice' WHERE paymentType = 'Receive';
UPDATE Payment SET referenceType = 'PurchaseInvoice' WHERE paymentType = 'Pay'; I might be wrong but this is what I could infer from taking a cursory look at the code. |
Good point. I was under the impression that new payments since paymentType was introduced always filled the paymentType (since it was marked as required, it would have been a bug not to fill it). So the migration not only needs to differenciate the paymentType as you suggest for existing payments, but also ensure that all future payments will not have a NULL paymentType. |
…-type fix: #808 Payment referenceType NULL due to bad migration
Ready for release a fix soon in v0.20.1 |
Screen.Recording.2024-01-16.at.11.14.46.mov
Payments don't show up in the List view when navigating to using the sidebar. Individual payments can be viewed when navigating to using Invoice links.
The text was updated successfully, but these errors were encountered: