Created
March 18, 2019 18:16
-
-
Save deepak140596/27cc281515ea4a03cdc2a999a9a09ecc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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