forked from pierront/mylibrary-template
methode point de fidelité convert
This commit is contained in:
@@ -31,6 +31,13 @@ public class Commande {
|
|||||||
this.commandeId = UUID.randomUUID();
|
this.commandeId = UUID.randomUUID();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int convertPointsFidelite(){
|
||||||
|
if (this.montantTotal==0|| this.montantTotal<=0){
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
return (int) Math.ceil(this.getMontantTotal());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// conversion point de fidéliter
|
// conversion point de fidéliter
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user