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

Do not subtract the YTD charge in determining if someone should be billed.
The limit is upped when someone is charged.

Files:
1 modified

Legend:

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

    r4280 r4371  
    213213        if (gquota_db_get_group(temp.account, temp.service, &qrec, 
    214214                                (unsigned int)1, &more) == 1) { 
    215           billing_amount = qrec.quotaAmount - qrec.quotaLimit 
    216             - qrec.yearToDateCharge; 
     215          billing_amount = qrec.quotaAmount - qrec.quotaLimit; 
    217216          if (billing_amount < 500) {  /* restore and continue */ 
    218217            qrec.pendingCharge = billing_amount; 
     
    249248 
    250249    /* else the temp.account was not found */ 
    251     if (temp.quotaAmount - temp.quotaLimit - temp.yearToDateCharge > 500) { 
     250    if (temp.quotaAmount - temp.quotaLimit > 500) { 
    252251      fprintf(stderr, "Group %d was not found in list and ", temp.account); 
    253252      fprintf(stderr, "needs to be billed for %d.\n", 
    254               temp.quotaAmount - temp.quotaLimit - temp.yearToDateCharge); 
     253              temp.quotaAmount - temp.quotaLimit); 
    255254    } 
    256255  }