Bug 22394

Summary: Remove C4::Accounts::manualinvoice
Product: Koha Reporter: Martin Renvoize (ashimema) <martin.renvoize>
Component: Architecture, internals, and plumbingAssignee: Martin Renvoize (ashimema) <martin.renvoize>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: david, josef.moravec, kyle, lucas, nick, tomascohen
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
20.11.00
Circulation function:
Bug Depends on: 22393    
Bug Blocks: 22510    
Attachments: Bug 22394: Remove C4::Accounts::manualinvoice
Bug 22394: Remove C4::Accounts::manualinvoice
Bug 22394: Remove C4::Accounts::manualinvoice
Bug 22394: Remove C4::Accounts::manualinvoice

Description Martin Renvoize (ashimema) 2019-02-22 11:17:14 UTC
We deprecated C4::Accounts::manualinvoice in bug 21756, this bug is a placeholder to ensure it's removed when appropriate.
Comment 1 Martin Renvoize (ashimema) 2020-08-19 11:28:12 UTC
We have been warning via a deprecation warning since the release of 19.05.00.. with the release of 20.11 it will make 18 months of the warning having been fired so I think we're safe to remove it now
Comment 2 Martin Renvoize (ashimema) 2020-08-19 11:29:57 UTC
This was a nice example of the use of the deprecated method from Mojo::Utils to give warning of a method being removed prior to it's actual removal.. I wonder.. did people find this helpful and should we adopt the practice more widely?
Comment 3 Martin Renvoize (ashimema) 2020-08-19 11:33:44 UTC
Created attachment 108588 [details] [review]
Bug 22394: Remove C4::Accounts::manualinvoice

This patch removes C4::Accounts::manualinvoice and it's corresponding
test.  We have been warning deprecation of this method for 18 months (by
the time of 20.11 release).

Test plan
1/ Apply patch
2/ Ensure no mention of manualinvoice accross the codebase
Comment 4 David Nind 2020-10-17 19:19:00 UTC
Patch no longer applies 8-(

Notes for testing:
- Find usage of manualinvoice: git grep manualinvoice
- Search before applying patch
- After apply patch should be no occurrences
Comment 5 Martin Renvoize (ashimema) 2020-10-19 13:46:23 UTC
Created attachment 111991 [details] [review]
Bug 22394: Remove C4::Accounts::manualinvoice

This patch removes C4::Accounts::manualinvoice and it's corresponding
test.  We have been warning deprecation of this method for 18 months (by
the time of 20.11 release).

Test plan
1/ Apply patch
2/ Ensure no mention of manualinvoice accross the codebase
3/ Run t/db_dependant/Accounts.t and ensure it still passes
Comment 6 Joonas Kylmälä 2020-10-23 11:43:50 UTC
Created attachment 112259 [details] [review]
Bug 22394: Remove C4::Accounts::manualinvoice

This patch removes C4::Accounts::manualinvoice and it's corresponding
test.  We have been warning deprecation of this method for 18 months (by
the time of 20.11 release).

Test plan
1/ Apply patch
2/ Ensure no mention of manualinvoice accross the codebase
3/ Run t/db_dependant/Accounts.t and ensure it still passes

Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Comment 7 Nick Clemens (kidclamp) 2020-10-24 02:22:33 UTC
Created attachment 112361 [details] [review]
Bug 22394: Remove C4::Accounts::manualinvoice

This patch removes C4::Accounts::manualinvoice and it's corresponding
test.  We have been warning deprecation of this method for 18 months (by
the time of 20.11 release).

Test plan
1/ Apply patch
2/ Ensure no mention of manualinvoice accross the codebase
3/ Run t/db_dependant/Accounts.t and ensure it still passes

Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Comment 8 Jonathan Druart 2020-11-04 12:02:53 UTC
Pushed to master for 20.11, thanks to everybody involved!
Comment 9 Lucas Gass (lukeg) 2020-11-16 21:14:41 UTC
enhancement will not be backported to 20.05.x