Exemple #1
0
 def set_ready_to_ship(cls):
     CPInboundParcel.update({
         "status": CPInboundParcel.Status.Inbound
     },
         {
         "$set": {
             "ready_to_ship": True,
             "updated_datetime": datetime.utcnow()
         }
     })
Exemple #2
0
 def cancel_all_parcels(cls):
     CPInboundParcel.update(
         {}, {"$set": {"status": CPInboundParcel.Status.Cancelled}})