Package com.zesped.model

Examples of com.zesped.model.OrderLine


        order.put("credits_bought", selectedProduct.getCredits());
        order.save(oSes);

        Log.out.info("Created order "+order.getString("order_id")+" for customer "+getSessionAttribute("customer_acount"));
       
        OrderLine line = order.addLine(oSes, selectedProduct);

        Log.out.info("Added order line for product "+selectedProduct.getString("product_name"));

        order.put("base_price", line.getString("base_price"));
        order.put("taxes", line.getString("taxes"));
        order.put("taxespct", line.getString("taxespct"));
        order.put("total_price", line.getString("subtotal_price"));
        order.put("currency", line.getString("currency"));
        order.save(oSes);
       
        DAO.log(oSes, order.getDocument(), Order.class, "CREATE ORDER", AtrilEvent.Level.INFO, order.getDocument().id()+";"+getSessionAttribute("customer_acount")+";"+selectedProduct.getString("product_name"));

        cacc.restoreCredits(oSes, new BigDecimal(selectedProduct.getCredits().longValue()));
View Full Code Here


            order.put("cvv2",cvv2);

            order.save(oSes);
            commit();
           
            OrderLine line = order.addLine(oSes, selectedProduct);
      commit();
     
            Log.out.info("Added order line for product " + selectedProduct.getString("product_name"));

            order.put("base_price", line.getString("base_price"));
            order.put("taxes", line.getString("taxes"));
            order.put("taxespct", line.getString("taxespct"));
            order.put("total_price", line.getString("subtotal_price"));
            order.put("currency", line.getString("currency"));

            if (selectedProduct.getPrice().compareTo(BigDecimal.ZERO)==0) {
                order.put("status_number", Tpv.PAGADO);
                Long oCreditsLeft = new Long(cacc.getBigDecimal("credits_left").longValue());
                if (null == oCreditsLeft) {
View Full Code Here

TOP

Related Classes of com.zesped.model.OrderLine

Copyright © 2018 www.massapicom. 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.