Sfoglia il codice sorgente

rounding ftw

tags/v0.5.0^0
Jonathan Cobb 5 anni fa
parent
commit
523e977f94
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. +4
    -4
      bubble-server/src/test/resources/models/tests/payment/pay_credit_refund_and_restart.json

+ 4
- 4
bubble-server/src/test/resources/models/tests/payment/pay_credit_refund_and_restart.json Vedi File

@@ -199,8 +199,8 @@
{"condition": "json[0].getAmount() < {{bills.[0].total}}"},
// not sure if current month has 28, 29, 30 or 31 days, so let's make some reasonable bounds
// we should only have a refund for all but one day
{"condition": "json[0].getAmount() > bills[0].getTotal() - (bills[0].getTotal() / (bills[0].daysInPeriod() - 1))"},
{"condition": "json[0].getAmount() <= bills[0].getTotal() - (bills[0].getTotal() / bills[0].daysInPeriod())"}
{"condition": "json[0].getAmount() > Math.round(bills[0].getTotal() - (bills[0].getTotal() / (bills[0].daysInPeriod() - 1)))"},
{"condition": "json[0].getAmount() <= Math.round(bills[0].getTotal() - (bills[0].getTotal() / bills[0].daysInPeriod()))"}
]
}
},
@@ -218,8 +218,8 @@
{"condition": "json[0].getRefundedAmount() < {{bills.[0].total}}"},
// not sure if current month has 28, 29, 30 or 31 days, so let's make some reasonable bounds
// we should only have a refund for all but one day
{"condition": "json[0].getRefundedAmount() > bills[0].getTotal() - (bills[0].getTotal() / (bills[0].daysInPeriod() - 1))"},
{"condition": "json[0].getRefundedAmount() <= bills[0].getTotal() - (bills[0].getTotal() / bills[0].daysInPeriod())"}
{"condition": "json[0].getRefundedAmount() > Math.round(bills[0].getTotal() - (bills[0].getTotal() / (bills[0].daysInPeriod() - 1)))"},
{"condition": "json[0].getRefundedAmount() <= Math.round(bills[0].getTotal() - (bills[0].getTotal() / bills[0].daysInPeriod()))"}
]
}
},


Caricamento…
Annulla
Salva