Assuming todecimal is required, the following 4 results were found.
m_CreateBooksItem.put("sku",v_ItemSKU); m_CreateBooksItem.put("rate",v_ItemPrice.toDecimal()); // // key here to enable inventory tracking m_CreateBooksItem.put("item_type","inventory"); // // other less important values to include re purchase...
v_QuoteCurr = ifnull(r_Result.get("Quote_Currency"),"GBP"); v_QuoteTotal = ifnull(r_Result.get("Total_Amount"),0.0).toDecimal(); v_ExchangeRate = ifnull(r_Result.get("Exchange_Rate"),1); v_ModifiedTime =...
if(v_ListPrice.toString().startsWith("-")) { v_TotalAdjustments = v_TotalAdjustments - v_ThisAdjustment.toDecimal(); } else { v_TotalAdjustments = v_TotalAdjustments + v_ThisAdjustment.toDecimal(); } info "Adjust: " + v_ThisAdjustment; //v_ListPrice =...
= ifnull(r_Result.get("last_four_digits"),""); } } } // // if fully paid and payment date is not null if(v_BalanceDue.toDecimal() == 0.0 && v_PaymentDate != null) { m_UpdateInvoice = Map(); // // copy existing custom fields (not required but just in...