(self, )
Determine whether Rx can be dispensed based on current dispensings,
        and what qty
Determine whether Rx can be dispensed based on current dispensings,
        and what qty
Determine whether Rx can be dispensed based on current dispensings and what qty
def _compute_can_dispense_and_qty(self, ):
        '''
        Determine whether Rx can be dispensed based on current dispensings,
        and what qty
        '''

        total = sum(self.dispensed_qty, self.exception_dispense_qty,
                    self.pending_dispense_qty)

        if self.qty > total:
            self.can_dispense = True
            self.can_dispense_qty = self.qty - total
        else:
            self.can_dispense = False
            self.can_dispense_qty = self.qty - total
def _compute_can_dispense_and_qty ( self , ) : total = sum ( self . dispensed_qty , self . exception_dispense_qty , self . pending_dispense_qty ) if self . qty > total : self . can_dispense = True self . can_dispense_qty = self . qty - total else : self . can_dispense = False self . can_dispense_qty = self . qty - total