Changeset 4370

Show
Ignore:
Timestamp:
02/09/91 11:40:42 (19 years ago)
Author:
epeisach
Message:

Fixed a bug in determining if a person needed a statement as it would
subtract the YTD charge. This is wrong as quotaLimit is upped after every bill

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/athena/bin/lpr/quota/bill_db.c

    r4276 r4370  
    222222                                   temp.realm, &qrec, (unsigned int)1, 
    223223                                   &more) == 1) {  
    224           billing_amount = qrec.quotaAmount - qrec.quotaLimit 
    225             - qrec.yearToDateCharge; 
     224          billing_amount = qrec.quotaAmount - qrec.quotaLimit; 
    226225          if (billing_amount < 500) {  /* restore and continue */ 
    227226            qrec.pendingCharge = billing_amount; 
     
    259258    } 
    260259    /* else the username was not found */ 
    261     if (temp.quotaAmount - temp.quotaLimit - temp.yearToDateCharge > 500) { 
     260    if (temp.quotaAmount - temp.quotaLimit > 500) { 
    262261      fprintf(stderr, "%s was not found in list and ", temp.name); 
    263262      fprintf(stderr, "needs to be billed for %d.\n", 
    264               temp.quotaAmount - temp.quotaLimit - temp.yearToDateCharge); 
     263              temp.quotaAmount - temp.quotaLimit); 
    265264    } 
    266265    bzero(&temp, sizeof(temp));