mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
disabled refunding for *rated requesttype
This commit is contained in:
committed by
Dan Christian Bogos
parent
9e60ab8236
commit
0854ef0bbb
@@ -337,7 +337,7 @@ func (cdrS *CDRServer) refundEventCost(ec *EventCost, reqType, tor string) (rfnd
|
||||
return // non refundable
|
||||
}
|
||||
cd := ec.AsRefundIncrements(tor)
|
||||
if cd == nil || len(cd.Increments) == 0 {
|
||||
if len(cd.Increments) == 0 {
|
||||
return
|
||||
}
|
||||
var acnt Account
|
||||
@@ -738,6 +738,9 @@ func (cdrS *CDRServer) processEvents(evs []*utils.CGREvent, args *cdrProcessingA
|
||||
}
|
||||
if args.ralS {
|
||||
for i, cdr := range cdrs {
|
||||
if !utils.AccountableRequestTypes.Has(cdr.RequestType) {
|
||||
cdr.CostDetails = nil
|
||||
}
|
||||
for j, rtCDR := range cdrS.rateCDRWithErr(
|
||||
&CDRWithAPIOpts{
|
||||
CDR: cdr,
|
||||
|
||||
Reference in New Issue
Block a user