Package com.zesped.model

Examples of com.zesped.model.Invoices.create()


        String sTaxPayerId = rcpt.type().name().equals("TaxPayer") ? getRecipientTaxPayer() : getSessionAttribute("taxpayer_docid");
        TaxPayer txpy = new TaxPayer(getSession().getDms(), sTaxPayerId);

        Invoices invs = txpy.invoices(getSession());
       
        invc = invs.create(getSession(), getSessionAttribute("user_uuid"), getServiceFlavor(),
                   sTaxPayerId, getBillerTaxPayer(), getRecipientTaxPayer());
        capureddocid = invc.id();
       
        for (FileBean attachment : getItems()) {
          if (attachment != null) {
View Full Code Here


        Invoices invs = txpy.invoices(oSes);
        Document oDepo = oDms.getDocument(String.valueOf(lDepositId));
        for (Document oDdoc : oDepo.children()) {
          Log.out.debug("getting sides for document "+oDdoc.id());
          NodeList<Document> oChlds = oDdoc.children();
          Invoice[] aInvs = invs.create(oSes, sUid, sFlavor, sTaxPayerId, sBiller, sRecipient, oChlds.size());
          int i = 0;
          for (Document oSide : oChlds) {
            Invoice oInvc = aInvs[i++];
            oStm.setLong(1, Long.parseLong(oInvc.id()));
            oStm.setLong(2, Long.parseLong(oSide.id()));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.