couchdb/fixtures/daily-deliveries.json
{
"docs": [
{
"_id": "551aa16d21f310ec783185499d000388",
"doc_type": "dailyDelivery",
"version": "1.0.0",
"deliveryRoundID": "d8006b0524473a0a4a60b7749766a11e",
"driverID": "a@a.com",
"date": "2015-01-23",
"facilityRounds": [
{
"drop": 1,
"facility": {
"id": "00adca90da3e44c4fff1166a2b146662",
"name": "Galadimawa Health Post",
"lga": "Galadimawa Health Post",
"zone": "Nassarawa",
"ward": "Nassarawa",
"contact": "Anantu Bayati",
"phoneNo": "08035272613"
},
"status": "Success: 1st Attempt",
"window": "9AM-11AM",
"arrivedAt": "",
"departedAt": "",
"signature": {
"dataUrl": "",
"signedOn": ""
},
"packedProduct": [
{
"productID": "BCG",
"storageID": "product-storage/frozen",
"baseUOM": "Doses",
"deliveredQty": 55,
"expectedQty": 70,
"onHandQty": 15,
"returnedQty": 0
},
{
"productID": "Men-A",
"storageID": "product-storage/dry",
"baseUOM": "Doses",
"deliveredQty": 140,
"expectedQty": 150,
"onHandQty": 10,
"returnedQty": 0
},
{
"productID": "OPV",
"storageID": "product-storage/frozen",
"baseUOM": "Doses",
"deliveredQty": 0,
"expectedQty": 34,
"onHandQty": 44,
"returnedQty": 10
}
]
},
{
"drop": 2,
"facility": {
"id": "59feeb58df154a5f9d4641e46d8d0b71",
"name": "Danja",
"zone": "Nassarawa",
"ward": "Ketawa",
"lga": "Gezawa",
"contact": "Tijjani Rabiu",
"phoneNo": "08052808146"
},
"status": "Canceled: CCE",
"window": "11AM-1PM",
"arrivedAt": "",
"departedAt": "",
"packedProduct": [
{
"productID": "BCG",
"storageID": "product-storage/frozen",
"baseUOM": "Doses",
"deliveredQty": 55,
"expectedQty": 70,
"onHandQty": 15,
"returnedQty": 0
},
{
"productID": "Men-A",
"storageID": "product-storage/dry",
"baseUOM": "Doses",
"deliveredQty": 140,
"expectedQty": 150,
"onHandQty": 10,
"returnedQty": 0
},
{
"productID": "OPV",
"storageID": "product-storage/frozen",
"baseUOM": "Doses",
"deliveredQty": 0,
"expectedQty": 34,
"onHandQty": 44,
"returnedQty": 10
}
]
},
{
"drop": 3,
"facility": {
"id": "120bb6044ac34de9d950dcee9f571ea9",
"name": "Gwammaja MCH",
"lga": "Dala",
"zone": "Nassarawa",
"contact": "Rabi Dahiru",
"phoneNo": "07035243034",
"ward": "Gwammaja"
},
"status": "Failed: Staff availability",
"window": "1PM-3PM",
"arrivedAt": "",
"departedAt": "",
"packedProduct": [
{
"productID": "BCG",
"storageID": "product-storage/frozen",
"baseUOM": "Doses",
"deliveredQty": 55,
"expectedQty": 70,
"onHandQty": 15,
"returnedQty": 0
},
{
"productID": "Men-A",
"storageID": "product-storage/dry",
"baseUOM": "Doses",
"deliveredQty": 140,
"expectedQty": 150,
"onHandQty": 10,
"returnedQty": 0
},
{
"productID": "OPV",
"storageID": "product-storage/frozen",
"baseUOM": "Doses",
"deliveredQty": 0,
"expectedQty": 34,
"onHandQty": 44,
"returnedQty": 10
}
]
}
],
"packingList": [
{
"productID": "BCG",
"expectedQty": 210,
"storageID": "product-storage/frozen"
},
{
"productID": "Men-A",
"expectedQty": 450,
"storageID": "product-storage/dry"
},
{
"productID": "OPV",
"expectedQty": 102,
"storageID": "product-storage/frozen"
}
]
},
{
"_id": "d8006b0524473a0a4a60b7749766a11d",
"_rev": "5-fda8a9891698cfb1beff7a06c78470cb",
"doc_type": "dailyDelivery",
"version": "2.0.0",
"deliveryRoundID": "d8006b0524473a0a4a60b7749766a11e",
"driverID": "abdullahi@example.com",
"date": "2015-01-24",
"drop": 1,
"facility": {
"id": "00adca90da3e44c4fff1166a2b146662",
"name": "Galadimawa Health Post",
"lga": "Galadimawa Health Post",
"zone": "Nassarawa",
"ward": "Nassarawa",
"contact": "Anantu Bayati",
"phoneNo": "08035272613"
},
"status": "pending",
"window": "",
"signature": {
"dataUrl": "",
"signedOn": ""
},
"cancelReport": {},
"arrivedAt": "",
"departedAt": "",
"packedProduct": [
{
"productID": "BCG",
"expectedQty": 70,
"storageID": "product-storage/frozen",
"presentation": 20,
"receivedInterimStock": false
},
{
"productID": "Men-A",
"expectedQty": 150,
"storageID": "product-storage/dry",
"presentation": 20,
"receivedInterimStock": false
},
{
"productID": "OPV",
"expectedQty": 34,
"storageID": "product-storage/frozen",
"presentation": 20,
"receivedInterimStock": false
}
]
}
]
}