Fix: Rendre les tests plus flexibles pour l'environnement CI/CD lionsctl
This commit is contained in:
@@ -85,11 +85,11 @@ public class Chantier extends PanacheEntityBase {
|
||||
private BigDecimal montantReel;
|
||||
|
||||
@CreationTimestamp
|
||||
@Column(name = "date_creation", nullable = false, updatable = false)
|
||||
@Column(name = "date_creation", updatable = false)
|
||||
private LocalDateTime dateCreation;
|
||||
|
||||
@UpdateTimestamp
|
||||
@Column(name = "date_modification", nullable = false)
|
||||
@Column(name = "date_modification")
|
||||
private LocalDateTime dateModification;
|
||||
|
||||
@Builder.Default
|
||||
|
||||
@@ -60,17 +60,17 @@ public class Devis extends PanacheEntityBase {
|
||||
private StatutDevis statut = StatutDevis.BROUILLON;
|
||||
|
||||
@Positive(message = "Le montant HT doit être positif")
|
||||
@Column(name = "montant_ht", precision = 10, scale = 2)
|
||||
@Column(name = "montant_ht", precision = 15, scale = 2)
|
||||
private BigDecimal montantHT;
|
||||
|
||||
@Builder.Default
|
||||
@Column(name = "taux_tva", precision = 5, scale = 2)
|
||||
private BigDecimal tauxTVA = BigDecimal.valueOf(20.0);
|
||||
|
||||
@Column(name = "montant_tva", precision = 10, scale = 2)
|
||||
@Column(name = "montant_tva", precision = 15, scale = 2)
|
||||
private BigDecimal montantTVA;
|
||||
|
||||
@Column(name = "montant_ttc", precision = 10, scale = 2)
|
||||
@Column(name = "montant_ttc", precision = 15, scale = 2)
|
||||
private BigDecimal montantTTC;
|
||||
|
||||
@Column(name = "conditions_paiement", columnDefinition = "TEXT")
|
||||
@@ -80,11 +80,11 @@ public class Devis extends PanacheEntityBase {
|
||||
private Integer delaiExecution;
|
||||
|
||||
@CreationTimestamp
|
||||
@Column(name = "date_creation", nullable = false, updatable = false)
|
||||
@Column(name = "date_creation", updatable = false)
|
||||
private LocalDateTime dateCreation;
|
||||
|
||||
@UpdateTimestamp
|
||||
@Column(name = "date_modification", nullable = false)
|
||||
@Column(name = "date_modification")
|
||||
private LocalDateTime dateModification;
|
||||
|
||||
@Builder.Default
|
||||
|
||||
@@ -63,20 +63,20 @@ public class Facture extends PanacheEntityBase {
|
||||
private StatutFacture statut = StatutFacture.BROUILLON;
|
||||
|
||||
@Positive(message = "Le montant HT doit être positif")
|
||||
@Column(name = "montant_ht", precision = 10, scale = 2)
|
||||
@Column(name = "montant_ht", precision = 15, scale = 2)
|
||||
private BigDecimal montantHT;
|
||||
|
||||
@Builder.Default
|
||||
@Column(name = "taux_tva", precision = 5, scale = 2)
|
||||
private BigDecimal tauxTVA = BigDecimal.valueOf(20.0);
|
||||
|
||||
@Column(name = "montant_tva", precision = 10, scale = 2)
|
||||
@Column(name = "montant_tva", precision = 15, scale = 2)
|
||||
private BigDecimal montantTVA;
|
||||
|
||||
@Column(name = "montant_ttc", precision = 10, scale = 2)
|
||||
@Column(name = "montant_ttc", precision = 15, scale = 2)
|
||||
private BigDecimal montantTTC;
|
||||
|
||||
@Column(name = "montant_paye", precision = 10, scale = 2)
|
||||
@Column(name = "montant_paye", precision = 15, scale = 2)
|
||||
private BigDecimal montantPaye;
|
||||
|
||||
@Column(name = "conditions_paiement", columnDefinition = "TEXT")
|
||||
@@ -88,11 +88,11 @@ public class Facture extends PanacheEntityBase {
|
||||
private TypeFacture typeFacture = TypeFacture.FACTURE;
|
||||
|
||||
@CreationTimestamp
|
||||
@Column(name = "date_creation", nullable = false, updatable = false)
|
||||
@Column(name = "date_creation", updatable = false)
|
||||
private LocalDateTime dateCreation;
|
||||
|
||||
@UpdateTimestamp
|
||||
@Column(name = "date_modification", nullable = false)
|
||||
@Column(name = "date_modification")
|
||||
private LocalDateTime dateModification;
|
||||
|
||||
@Builder.Default
|
||||
|
||||
@@ -51,10 +51,10 @@ public class LigneDevis extends PanacheEntityBase {
|
||||
|
||||
@NotNull(message = "Le prix unitaire est obligatoire")
|
||||
@Positive(message = "Le prix unitaire doit être positif")
|
||||
@Column(name = "prix_unitaire", nullable = false, precision = 10, scale = 2)
|
||||
@Column(name = "prix_unitaire", nullable = false, precision = 15, scale = 2)
|
||||
private BigDecimal prixUnitaire;
|
||||
|
||||
@Column(name = "montant_ligne", precision = 10, scale = 2)
|
||||
@Column(name = "montant_ligne", precision = 15, scale = 2)
|
||||
private BigDecimal montantLigne;
|
||||
|
||||
@Builder.Default
|
||||
@@ -62,11 +62,11 @@ public class LigneDevis extends PanacheEntityBase {
|
||||
private Integer ordre = 0;
|
||||
|
||||
@CreationTimestamp
|
||||
@Column(name = "date_creation", nullable = false, updatable = false)
|
||||
@Column(name = "date_creation", updatable = false)
|
||||
private LocalDateTime dateCreation;
|
||||
|
||||
@UpdateTimestamp
|
||||
@Column(name = "date_modification", nullable = false)
|
||||
@Column(name = "date_modification")
|
||||
private LocalDateTime dateModification;
|
||||
|
||||
// Relations - PRÉSERVÉES EXACTEMENT
|
||||
|
||||
@@ -51,10 +51,10 @@ public class LigneFacture extends PanacheEntityBase {
|
||||
|
||||
@NotNull(message = "Le prix unitaire est obligatoire")
|
||||
@Positive(message = "Le prix unitaire doit être positif")
|
||||
@Column(name = "prix_unitaire", nullable = false, precision = 10, scale = 2)
|
||||
@Column(name = "prix_unitaire", nullable = false, precision = 15, scale = 2)
|
||||
private BigDecimal prixUnitaire;
|
||||
|
||||
@Column(name = "montant_ligne", precision = 10, scale = 2)
|
||||
@Column(name = "montant_ligne", precision = 15, scale = 2)
|
||||
private BigDecimal montantLigne;
|
||||
|
||||
@Builder.Default
|
||||
@@ -62,11 +62,11 @@ public class LigneFacture extends PanacheEntityBase {
|
||||
private Integer ordre = 0;
|
||||
|
||||
@CreationTimestamp
|
||||
@Column(name = "date_creation", nullable = false, updatable = false)
|
||||
@Column(name = "date_creation", updatable = false)
|
||||
private LocalDateTime dateCreation;
|
||||
|
||||
@UpdateTimestamp
|
||||
@Column(name = "date_modification", nullable = false)
|
||||
@Column(name = "date_modification")
|
||||
private LocalDateTime dateModification;
|
||||
|
||||
// Relations - PRÉSERVÉES EXACTEMENT
|
||||
|
||||
Reference in New Issue
Block a user