Skip to content

Instantly share code, notes, and snippets.

@deepak140596
Created March 18, 2019 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deepak140596/27cc281515ea4a03cdc2a999a9a09ecc to your computer and use it in GitHub Desktop.
Save deepak140596/27cc281515ea4a03cdc2a999a9a09ecc to your computer and use it in GitHub Desktop.
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