Examples of save()


Examples of org.compiere.model.MBankStatementLine.save()

        bsl.setStmtAmt(TrxAmt);
        bsl.setC_Currency_ID(bankAccount.getC_Currency_ID());
        // 21-10-2009 rgliddon: Added setting of column value.
        bsl.set_ValueOfColumn("C_ConversionType_ID", payment.getC_ConversionType_ID());
       
        if (!bsl.save())
          log.log(Level.SEVERE, "Line not created #" + i);
      }   //   if selected
    }   //  for all rows
    return true;
  }   //  save
View Full Code Here

Examples of org.compiere.model.MCost.save()

   */
  private boolean createNew (MProduct product, MAcctSchema as)
  {
    MCost cost = MCost.get(product, 0, as, 0, m_ce.getM_CostElement_ID());
    if (cost.is_new())
      return cost.save();
    return false;
  //  createNew

  /**************************************************************************
   *   Update Cost Records
View Full Code Here

Examples of org.compiere.model.MInOutLine.save()

          else if (rmal != null && rmal.getC_Charge_ID() != 0) // from rma
            iol.setC_Charge_ID(rmal.getC_Charge_ID());
        }
        // Set locator
        iol.setM_Locator_ID(M_Locator_ID);
        if (!iol.save())
          log.log(Level.SEVERE, "Line NOT created #" + i);
        //  Create Invoice Line Link
        else if (il != null)
        {
          il.setM_InOutLine_ID(iol.getM_InOutLine_ID());
View Full Code Here

Examples of org.compiere.model.MInventory.save()

            //}
           
            if(p_Post)
              Doc.postImmediate(as, inv.get_Table_ID(), inv.getM_Inventory_ID(), true, get_TrxName());
           
          inv.save(get_TrxName());
        }
        pstmt .close();
      }catch (Exception e) {e.printStackTrace();return "error!";}
      return "ok";
  }
View Full Code Here

Examples of org.compiere.model.MInventoryLine.save()

    invLine.setQtyInternalUse(pack.getQty().multiply(BigDecimal.valueOf(-1)));
    invLine.setDescription("Packed Product");
    invLine.setC_Charge_ID(chargeID);
    invLine.setAD_Org_ID(Env.getAD_Org_ID(getCtx()));
    invLine.setM_Inventory_ID(inv.getM_Inventory_ID());
    invLine.save(get_TrxName());
   
  } //  addPackedProductLine
 
 
  /**
 
View Full Code Here

Examples of org.compiere.model.MNote.save()

        .append(", Amount=").append(getAmount())
        .append(", Sta=").append(p_Status)
        .append(" - PeriodOpen=").append(isPeriodOpen())
        .append(", Balanced=").append(isBalanced());
      note.setTextMsg(Text.toString());
      note.save();
      p_Error = Text.toString();
    }

    //  dispose facts
    for (int i = 0; i < m_fact.size(); i++)
View Full Code Here

Examples of org.compiere.model.MOrder.save()

        // 25-09-2009 rgliddon: Made doc type target explicitly reference Return Material
        order.setC_DocTypeTarget_ID(1000073); // Return Material
        order.setC_PaymentTerm_ID(originalOrder.getC_PaymentTerm_ID());
        order.setDeliveryRule(originalOrder.getDeliveryRule());
       
        if (!order.save())
        {
            throw new IllegalStateException("Could not create order");
        }
       
        MRMALine lines[] = rma.getLines(true);
View Full Code Here

Examples of org.compiere.model.MPInstance.save()

        else
        {
            AD_Process_ID = 134// HARDCODED    C_InvoiceCreate
        }
    MPInstance instance = new MPInstance(Env.getCtx(), AD_Process_ID, 0);
    if (!instance.save())
    {
      info = Msg.getMsg(Env.getCtx(), "ProcessNoInstance");
      return info;
    }
   
View Full Code Here

Examples of org.compiere.model.MPInstancePara.save()

    pi.setAD_PInstance_ID (instance.getAD_PInstance_ID());

    //  Add Parameters
    MPInstancePara para = new MPInstancePara(instance, 10);
    para.setParameter("Selection", "Y");
    if (!para.save())
    {
      String msg = "No Selection Parameter added"//  not translated
      info = msg;
      log.log(Level.SEVERE, msg);
      return info;
View Full Code Here

Examples of org.compiere.model.MPaySelectionLine.save()

        BigDecimal PayAmt = (BigDecimal)miniTable.getValueAt(i, 9);
        boolean isSOTrx = false;
        //
        psl.setInvoice(C_Invoice_ID, isSOTrx,
          OpenAmt, PayAmt, OpenAmt.subtract(PayAmt));
        if (!psl.save(trxName))
        {
          return Msg.translate(Env.getCtx(), "C_PaySelectionLine_ID");
        }
        log.fine("C_Invoice_ID=" + C_Invoice_ID + ", PayAmt=" + PayAmt);
      }
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.