getNextSequenceId without discontinuity

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

getNextSequenceId without discontinuity

STELTZLEN Charles
Hi,

I'am using a getNextSequenceId to generate my id for invoice entity.

My problem is that the specifications of my client include the fact that
the invoice id must have any discontinuity in these sequences (00001,
00002, 00003,...).

For my knowlegde of ofbiz, the actual getNextSequence don't guaranted
this requirement (don't check the highest sequence before giving a
sequence).

Am I wrong ?

Is there something that can fit my whishes in ofbiz standard ?

Charles.
Reply | Threaded
Open this post in threaded view
|

Re: getNextSequenceId without discontinuity

Divesh Dutta
Hello Charles,
          Please see my comments inline:

STELTZLEN Charles wrote:
> Hi,
>
> I'am using a getNextSequenceId to generate my id for invoice entity.
>
> My problem is that the specifications of my client include the fact
> that the invoice id must have any discontinuity in these sequences
> (00001, 00002, 00003,...).
      I hope you missed "not" here.
>
> For my knowlegde of ofbiz, the actual getNextSequence don't guaranted
> this requirement (don't check the highest sequence before giving a
> sequence).
>
> Am I wrong ?
    Code snippet from line 370-377 in OrderReturnServices.xml may be of
help (in latest revision, 768297). Here returnItemSeqId is generated in
continuity.
>
> Is there something that can fit my whishes in ofbiz standard ?
>
> Charles.

Thanks

Reply | Threaded
Open this post in threaded view
|

Re: getNextSequenceId without discontinuity

STELTZLEN Charles
Thanks to all.


Divesh Dutta a écrit :

> Hello Charles,
>          Please see my comments inline:
>
> STELTZLEN Charles wrote:
>> Hi,
>>
>> I'am using a getNextSequenceId to generate my id for invoice entity.
>>
>> My problem is that the specifications of my client include the fact
>> that the invoice id must have any discontinuity in these sequences
>> (00001, 00002, 00003,...).
>      I hope you missed "not" here.
>>
>> For my knowlegde of ofbiz, the actual getNextSequence don't guaranted
>> this requirement (don't check the highest sequence before giving a
>> sequence).
>>
>> Am I wrong ?
>    Code snippet from line 370-377 in OrderReturnServices.xml may be of
> help (in latest revision, 768297). Here returnItemSeqId is generated
> in continuity.
>>
>> Is there something that can fit my whishes in ofbiz standard ?
>>
>> Charles.
>
> Thanks
>
>