diff --git a/api/orders/getActiveCart.cfm b/api/orders/getActiveCart.cfm index e245f1e..ae84140 100644 --- a/api/orders/getActiveCart.cfm +++ b/api/orders/getActiveCart.cfm @@ -71,16 +71,16 @@ try { response["OK"] = true; response["HAS_CART"] = true; response["CART"] = { - "OrderID": qCart.OrderID, - "OrderUUID": qCart.OrderUUID, - "BusinessID": qCart.OrderBusinessID, + "OrderID": val(qCart.OrderID), + "OrderUUID": qCart.OrderUUID ?: "", + "BusinessID": val(qCart.OrderBusinessID), "BusinessName": len(trim(qCart.BusinessName)) ? qCart.BusinessName : "", "BusinessOrderTypes": orderTypesArray, - "OrderTypeID": qCart.OrderTypeID, + "OrderTypeID": val(qCart.OrderTypeID), "OrderTypeName": orderTypeName, - "ServicePointID": qCart.OrderServicePointID, + "ServicePointID": val(qCart.OrderServicePointID), "ServicePointName": len(trim(qCart.ServicePointName)) ? qCart.ServicePointName : "", - "ItemCount": qCart.ItemCount, + "ItemCount": val(qCart.ItemCount), "AddedOn": dateTimeFormat(qCart.OrderAddedOn, "yyyy-mm-dd HH:nn:ss") }; } else {