Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
private fun addQuotations(orderId: String){
var docRef : DocumentReference = FirebaseFirestore.getInstance().collection("orders").document(orderId)
var newQuotation = RetailerQuotationItem("retailer4","Retailer THree","",790.0,
SharedPreferencesDB.getSavedAddress(activity)!!,4.6)
docRef.update("quotations",FieldValue.arrayUnion(newQuotation),
"orderStatus",ApplicationConstants.ORDER_QUOTED)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.