[
https://issues.apache.org/jira/browse/OFBIZ-3765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacques Le Roux reopened OFBIZ-3765:
------------------------------------
Quoting Anne on user ML
{quote}
There are still some files that refer to the deprecated
* invoiceSequenceEnumId,
* quoteSequenceEnumId
* orderSequenceEnumId fields of PartyAcctgPreference.
Files I know of are:
applications/accounting/servicedef/services_admin.xml
applications/accounting/widget/GlSetupForms.xml
applications/commonext/script/org/ofbiz/setup/SetupEvents.xml
{quote}
> Use CustomMethod for select order, quote and invoice hook to resolve id
> -----------------------------------------------------------------------
>
> Key: OFBIZ-3765
> URL:
https://issues.apache.org/jira/browse/OFBIZ-3765> Project: OFBiz
> Issue Type: Improvement
> Components: accounting, order
> Affects Versions: SVN trunk
> Reporter: Nicolas Malin
> Assignee: Erwan de FERRIERES
> Fix For: SVN trunk
>
> Attachments: hookByPartyAcctgPreference.patch, OFBIZ-3765.patch
>
>
> Currently the invoiceId resolve process is define on PartyAcctgPreference by a enumeration. The service getNextInvoiceId analyse enumeration to active code correponding to enumeration.
> I propose pass enumeration to CustumMethod that permit to add more easier a new resolve process. Just define a new CusthomMethod and associate to PartyAcctgPreference. It's possible to add this by hot-deploy compenents without change accounting code or add many unreadable function.
> The patch contains :
> * Entity modiication : pass enumeration to deprecated and add custumMethod attribute/relation
> * Add service enforced ans restart define previously by enumeration
> * Implement getNextSeqId service by origin call service to permet analyse and resolve new id by all information present in context
> * Add error message if PartyAcctgPreference not define.
> * Apply on invoice, quote an order
> To test just ant clean-all && ant run-install and create quote, order and invoice
> Thanks to Leila Mekika for the help
> Nicolas
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.