Details
Description
Renewing services are being prorated as if they were being created.
Starting on line 1393 in app/models/invoices.php there should be this code:
if ($i == 0 && ($dates = $this->Packages->getProrataDates( $service->pricing_id, $service->date_added . 'Z', $service->date_renews . 'Z' )) ) {
Change that to:
if ($i == 0 && $allow_pro_rata && ($dates = $this->Packages->getProrataDates( $service->pricing_id, $service->date_added . 'Z', $service->date_renews . 'Z' )) ) {
Activity
Jonathan Reissmueller
created issue -
Jonathan Reissmueller
made changes -
Field | Original Value | New Value |
---|---|---|
Remaining Estimate | 0 minutes [ 0 ] | |
Time Spent | 31 minutes [ 1860 ] | |
Worklog Id | 10663 [ 10663 ] |
Tyson Phillips (Inactive)
made changes -
Description |
Renewing services are being prorated as if they were being created.
Starting on line 1393 in app/models/invoices.php there should be this code: if ($i == 0 && ($dates = $this->Packages->getProrataDates( $service->pricing_id, $service->date_added . 'Z', $service->date_renews . 'Z' )) ) { Change that to: if ($i == 0 && $allow_pro_rata && ($dates = $this->Packages->getProrataDates( $service->pricing_id, $service->date_added . 'Z', $service->date_renews . 'Z' )) ) { |
Renewing services are being prorated as if they were being created.
Starting on line 1393 in app/models/invoices.php there should be this code: {code} if ($i == 0 && ($dates = $this->Packages->getProrataDates( $service->pricing_id, $service->date_added . 'Z', $service->date_renews . 'Z' )) ) { {code} Change that to: {code} if ($i == 0 && $allow_pro_rata && ($dates = $this->Packages->getProrataDates( $service->pricing_id, $service->date_added . 'Z', $service->date_renews . 'Z' )) ) { {code} |
Tyson Phillips (Inactive)
made changes -
Fix Version/s | 4.3.0-b1 [ 11019 ] |
Tyson Phillips (Inactive)
made changes -
Rank | Ranked higher |
Tyson Phillips (Inactive)
made changes -
Sprint | 4.3.0 Sprint 1 [ 49 ] |
Tyson Phillips (Inactive)
made changes -
Rank | Ranked higher |
Tyson Phillips (Inactive)
made changes -
Status | Open [ 1 ] | In Review [ 5 ] |
Resolution | Fixed [ 1 ] |
Automated transition triggered when Tyson Phillips (Inactive) merged pull request #383 in Stash -
Status | In Review [ 5 ] | Closed [ 6 ] |