From user-return-53664-archive-asf-public=cust-asf.ponee.io@ofbiz.apache.org Wed Apr 11 06:06:16 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 0B81D18064C for ; Wed, 11 Apr 2018 06:06:15 +0200 (CEST) Received: (qmail 72267 invoked by uid 500); 11 Apr 2018 04:06:14 -0000 Mailing-List: contact user-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ofbiz.apache.org Delivered-To: mailing list user@ofbiz.apache.org Received: (qmail 72247 invoked by uid 99); 11 Apr 2018 04:06:13 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2018 04:06:13 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 0AFA51A10F8 for ; Wed, 11 Apr 2018 04:06:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.998 X-Spam-Level: * X-Spam-Status: No, score=1.998 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=hotwaxsystems-com.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id fq2mpxaI2KLn for ; Wed, 11 Apr 2018 04:06:11 +0000 (UTC) Received: from mail-oi0-f44.google.com (mail-oi0-f44.google.com [209.85.218.44]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id ED7D15F24C for ; Wed, 11 Apr 2018 04:06:10 +0000 (UTC) Received: by mail-oi0-f44.google.com with SMTP id 71-v6so434071oie.12 for ; Tue, 10 Apr 2018 21:06:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotwaxsystems-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=db66Su5b/dHABvSU3HBZv5RDaZDKWGwT7rWz12hGJgY=; b=dOguPDbPqKOoJCfFKrywcLrY0wSjwu3tdpEVlx4rNh2mhpH2O8B+0hid0vdrzy9lgE sWU7LSLv136IHiCqWyLjy5/chg8Cpg2kO2bzt3pFyRR/cLCFahHiwEQiN7WfCur4v8cm 3idOJFh2XYTh9uAQ2T3IxhG2TOlhxlxYPi5tgOQ09mZ1024qJoPqYfW44/OoGyZatCa2 VNLFGGzV5aE4y5eaptcYO15l1HC9Sd2KCqAEPK1h3M3c3oO7cjvAivj9znoVLcDPauK9 A5gn9ptGOK6aopYReGC9glLcvsKEAWwkP9fYZbTjBlnncqauW874UvUylCBOIxtB6fHl 1dSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=db66Su5b/dHABvSU3HBZv5RDaZDKWGwT7rWz12hGJgY=; b=aNP16ti2rYilOQK3do7O9bNh3J1BmeH3Cb16zSU7Y1Gq1eGIjBbxzqcVIDp4nQsUhf RyCwYl5iJS80pQh+JksHSbiWxowFj5SYe1cC1OKqLpCsdIUo1C+k7KCnARyJCKgQH+AH Ce/RmDOFiAOWGhyJCxbHSoWiCmFG6+RfgZ7vF+K7NvJRf9huh4C5O23Lle9c4OpR2WEq AlWMPY452GjS4ttWvPhYp7jfg2o8SQI7AWvKPd3Yv120PBvGdM4ugzoNUvbaNvwOPVr8 4icXIcj6BnZIiYX4H+y90oLVqCmQ6897Ps91zuNcyG0C+IAAR0pJO4mYykOG/8t9WO/L RSpw== X-Gm-Message-State: ALQs6tCkGeDoj7Hs7YS3le5RGx+6zrJJ9YMtZDFSyjqhhVet/1iU5mL+ yC2KLJUCynHOyv3SPDUC6ZF1heY9PNHmC2neuoQHCqNP X-Google-Smtp-Source: AIpwx4823HtCaodBLf2xaqm/Ou6w5yr4pRQNPVstBcxrFybQlyY4bMp5qEYOnNbgHFDtDk0dlfEXjikxHCd016H6MIs= X-Received: by 2002:aca:e8d3:: with SMTP id f202-v6mr1800832oih.185.1523419569503; Tue, 10 Apr 2018 21:06:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.193.17 with HTTP; Tue, 10 Apr 2018 21:05:49 -0700 (PDT) In-Reply-To: References: <87da30a2-d90c-27e8-e182-ba78a4845b90@vnnogile.in> From: Deepak Dixit Date: Wed, 11 Apr 2018 09:35:49 +0530 Message-ID: Subject: Re: Invoice Sequence Number To: user@ofbiz.apache.org Content-Type: multipart/alternative; boundary="00000000000048cbd505698ac2c9" --00000000000048cbd505698ac2c9 Content-Type: text/plain; charset="UTF-8" Hi Tejas, You can refer following custom method data to generate sequence for invoice As Taher mentioned you can create service to generate seqId based on your need. Thanks & Regards -- Deepak Dixit www.hotwaxsystems.com www.hotwax.co On Tue, Apr 10, 2018 at 8:29 PM, Taher Alkhateeb wrote: > I believe that would be achievable by using two different sequence > names. Just create two services each one calling a different sequence > name in "Delegator.getNextSeqId(String seqName)". Or depending on your > logic, you might be able to do that in the same service. > > On Tue, Apr 10, 2018 at 5:45 PM, Tejas Lot wrote: > > Hello Everyone, > > > > We have two independent services which generates Invoice. Can we maintain > > two sequences in ofbiz (Same as in party accounting preferences) e.g. > > service 1 will maintain invoice sequence from 1 to 1000000 and service 2 > > will maintain invoice sequence from 1000001 onward. > > > > Anyone can help me to resolve? > > > > -- > > Thanking you, > > > > Warm regards, > > Tejas Lot. > > vnnogile Solutions Private Limited > > www.vnnogile.com > > > --00000000000048cbd505698ac2c9--