Commit 10c4d32e authored by Laurent's avatar Laurent

hotline #92511 PMB fix loan return date parsing

parent a10b3550
- ticket #92511 : PMB: correction de prise en compte de la date de retour des prêts pour le statut en retard
\ No newline at end of file
......@@ -196,7 +196,7 @@ class Class_Webservice_SIGB_PMB_Service extends Class_WebService_SIGB_AbstractSe
->setId($emprunt_json['expl_id'])
->setTitre($emprunt_json['expl_libelle'])
->setCodeBarre($emprunt_json['expl_cb'])
->setDateRetour(implode('-', array_reverse(explode('/', $emprunt_json['loan_returndate']))));
->setDateRetour($emprunt_json['loan_returndate']);
return $emprunt;
}
......
......@@ -174,8 +174,8 @@ class PMBServiceTest extends PMBTestCase {
* @depends emprunteurLoansShouldContainsFahrenheit
* @test
*/
public function loanFahrenhitReturnDateShouldBe2012_12_11($loans) {
$this->assertEquals('2012-12-11', $loans[0]->getDateRetour());
public function loanFahrenhitReturnDateShouldBe11_12_2012($loans) {
$this->assertEquals('11/12/2012', $loans[0]->getDateRetour());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment