Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_ID |
Modifier and Type | Method and Description |
---|---|
void |
actualiserPiecesGestionCouverture(CtxAffaire context)
Actualisation des taux de couvertures des pièces de gestion
|
void |
actualiserPiecesTauxDevises(AchatVente context)
Actualisation des taux de devises des pièces de gestion
|
void |
annuleCommandeST(FCommandefou commandefou,
Date dateAnnulation) |
FCommandefou |
annulerCommande(FCommandefou commandefou,
Date dateAnnulation) |
FCommandefou |
annulerCommande(FCommandefou commandefou,
Date dateAnnulation,
boolean forRevision) |
FCommandecli |
annulerCommandeClient(FCommandecli commandeClient,
Date dateAnnulation)
Annule une commande client. renvoie une nouvelle commande dont les quantités et montants sont inversés
|
List<FCommandecli> |
annulerLivraisonAvoir(CtxFactureClient ctxFactureClient,
FFacturescli avoir) |
void |
annulerLivraisonST(CtxApprovisionnement ctxAppro,
CtxCommandeFou newCtxCommande) |
CtxCommandeFou |
annulerReception(AnnulationReception annulationReception) |
CtxCommandeFou |
annulerReception(AnnulationReception annulationReception,
String complement) |
List<FCommandefou> |
annulerReceptionAvoir(CtxFactureFournisseur ctxFactureFournisseur,
FFacturesfou avoir,
com.google.common.collect.ArrayListMultimap<String,FLignefacfou> lignesAvoirByNumeroAppro) |
boolean |
controleDateAnnulationLivraison(FLivraisons livraisons) |
boolean |
controleDateAnnulationReception(FApprovisionnt appro) |
boolean |
controleDatesReliquatAppro(CtxCommandeFou commande,
boolean surMontant) |
boolean |
controleDatesReliquatLivraison(CtxCommandeCli commande,
boolean surMontant) |
void |
genererCommandeSstraitance(CtxCommandeFou context)
Génére une commande client de sous-traitance
|
List<FCommandefou> |
genererCotations(List<LigneComCliCharges> liste,
CtxCommandeCli devis,
boolean avecCotation)
Générer les cotations à partir des lignes sélectionnées
|
CtxLivraison |
genererLivraisonSousTrait(CtxCommandeFou ctxCommandeFou,
boolean surMontant,
FApprovisionnt approvisionnt) |
List<LigneComCliCharges> |
genererPlanning(List<LigneComCliCharges> liste,
CtxCommandeCli devis)
Générer les plannings à partir des lignes sélectionnées
|
FApprovisionnt |
gererSousTraitance(CtxCommandeFou commande,
boolean surMontant,
FApprovisionnt appro,
FCommandefou commandeReliquat)
1 - Génération de la livraison sous-traitante
2 - Validation de la réception, la livraison étant automatiquement validée lors de sa création
3a- Création de la facture fournisseur et validation
3b - Création de la facture client et validation
3c - Maj lien de la facture fournisseur vers la facture client
4 - Si Facture interne, on la marque comme soldée
|
List<FLignecomfou> |
getLignesCdeFouFromCdeClient(CtxCommandeCli ctxCommandeCli) |
Double |
getPrixUnitaire(Double identFournisseur,
String identProduit,
Double quantite,
Double prixUnite) |
CtxFactureFournisseur |
loadFactureAVentiler(CtxFactureFournisseur ctxFacture,
String numeroFacture,
boolean refreshAppro)
Chargement d'un contexte pour ventilation d'une facture
|
void |
majListeLignesEtActualiserLignesCommandeClient(List<FLignecomfou> listeLignecomfou)
Met à jour les lignes de commande fournisseur et les lignes de commandes clients liées (sous-traitance) selon le DMF
|
List<LigneComCliCharges> |
marquerNonGenerees(List<LigneComCliCharges> liste)
Marquer les lignes de charges comme non générées
|
FPlanning |
preCreatePlanning(FPlanning planning,
FLignecomcliCharges ligne,
FCommandecli commandecli) |
FCommandefou |
reviserCommande(FCommandefou commandefou,
String numNouvelleCommande)
Réviser une commande
|
FCommandefou |
reviserCommande(FCommandefou commandefou,
String numNouvelleCommande,
Date dtNouvelleCommande)
Réviser une commande
|
FCommandecli |
reviserCommandeClient(FCommandecli commandeClient,
String numNouvelleCommande)
Révision d'une commande Client
|
FCommandecli |
reviserCommandeClient(FCommandecli commandeClient,
String numNouvelleCommande,
Date dtNouvelleCde)
Révision d'une commande Client
|
void |
reviserPrix(List<LignePieceRevisable> lignes,
Date dateReference) |
List<LignePieceRevisable> |
simulerReviserPrix(List<LignePieceRevisable> lignes,
Date dateReference) |
boolean |
transformerCdeLivValid(CtxCommandeCli commande,
boolean surMontant)
Effectue les tests permettant de déterminer si une commande peutêtre transformée en livraison ou non
|
void |
transformerCdeRecValid(CtxCommandeFou commande,
boolean surMontant)
Vérifie qu'une commande peutêtre réceptionnée
|
CtxLivraison |
transformerCommandeEnLivraison(CtxCommandeCli commande,
boolean surMontant,
boolean datePeriodeaNull,
boolean ctrlArreteReliquat) |
CtxLivraison |
transformerCommandeEnLivraison(CtxCommandeCli commande,
boolean surMontant,
boolean datePeriodeaNull,
boolean historiser,
boolean ctrlArreteReliquat)
Deprecated.
car on historise avant maintenant !!! Utiliser
transformerCommandeEnLivraison(CtxCommandeCli commande, boolean surMontant, boolean datePeriodeaNull, boolean ctrlArreteReliquat) |
FApprovisionnt |
transformerCommandeEnReception(CtxCommandeFou commande,
boolean surMontant,
boolean ctrlArreteReliquat) |
FApprovisionnt |
transformerCommandeEnReception(Date dateAppro,
CtxCommandeFou commande,
boolean surMontant,
boolean ctrlArreteReliquat) |
FCommandecli |
transformerDevisEnCommande(CtxCommandeCli devis,
Boolean signerDevis,
boolean creerClient,
boolean comptClient)
Transforme le devis passé en paramétre en commande Si le boolean signerDevis est à true, le devis sera conservé en tant que Devis signé
|
void |
validationCommande(CtxCommandeFou context) |
List<String> |
validerCommandeClient(Set<String> numerosCommande)
Validation d'une liste de commande
|
FCommandecli |
validerCommandeClient(String numeroCommande)
Validation d'une commande
|
void |
validerVentilationFacture(CtxFactureFournisseur ctxFactureFournisseur)
Valide la ventilation d'une facture
|
getServerMessages, resetServerMessages
static final String SERVICE_ID
FCommandecli transformerDevisEnCommande(CtxCommandeCli devis, Boolean signerDevis, boolean creerClient, boolean comptClient)
List<LigneComCliCharges> marquerNonGenerees(List<LigneComCliCharges> liste)
liste
- List<FCommandefou> genererCotations(List<LigneComCliCharges> liste, CtxCommandeCli devis, boolean avecCotation)
List<LigneComCliCharges> genererPlanning(List<LigneComCliCharges> liste, CtxCommandeCli devis)
liste
- devis
- void genererCommandeSstraitance(CtxCommandeFou context)
context
- FApprovisionnt gererSousTraitance(CtxCommandeFou commande, boolean surMontant, FApprovisionnt appro, FCommandefou commandeReliquat)
commande
- surMontant
- appro
- commandeReliquat
- CtxLivraison genererLivraisonSousTrait(CtxCommandeFou ctxCommandeFou, boolean surMontant, FApprovisionnt approvisionnt)
void annulerLivraisonST(CtxApprovisionnement ctxAppro, CtxCommandeFou newCtxCommande)
void annuleCommandeST(FCommandefou commandefou, Date dateAnnulation)
void transformerCdeRecValid(CtxCommandeFou commande, boolean surMontant)
commande
- surMontant
- void validationCommande(CtxCommandeFou context)
FCommandefou annulerCommande(FCommandefou commandefou, Date dateAnnulation)
FCommandefou annulerCommande(FCommandefou commandefou, Date dateAnnulation, boolean forRevision)
FCommandefou reviserCommande(FCommandefou commandefou, String numNouvelleCommande)
commandefou
- numNouvelleCommande
- FCommandefou reviserCommande(FCommandefou commandefou, String numNouvelleCommande, Date dtNouvelleCommande)
commandefou
- numNouvelleCommande
- dtNouvelleCommande
- List<String> validerCommandeClient(Set<String> numerosCommande)
numeroCommande
- FCommandecli validerCommandeClient(String numeroCommande)
numeroCommande
- FCommandecli annulerCommandeClient(FCommandecli commandeClient, Date dateAnnulation)
commandeClient
- FCommandecli reviserCommandeClient(FCommandecli commandeClient, String numNouvelleCommande)
commandeClient
- numNouvelleCommande
- FCommandecli reviserCommandeClient(FCommandecli commandeClient, String numNouvelleCommande, Date dtNouvelleCde)
commandeClient
- numNouvelleCommande
- dtCde
- boolean transformerCdeLivValid(CtxCommandeCli commande, boolean surMontant)
commande
- @Deprecated CtxLivraison transformerCommandeEnLivraison(CtxCommandeCli commande, boolean surMontant, boolean datePeriodeaNull, boolean historiser, boolean ctrlArreteReliquat)
transformerCommandeEnLivraison(CtxCommandeCli commande, boolean surMontant, boolean datePeriodeaNull, boolean ctrlArreteReliquat)
surMontant
- True si livraison sur montantCtxLivraison transformerCommandeEnLivraison(CtxCommandeCli commande, boolean surMontant, boolean datePeriodeaNull, boolean ctrlArreteReliquat)
boolean controleDatesReliquatLivraison(CtxCommandeCli commande, boolean surMontant)
boolean controleDateAnnulationLivraison(FLivraisons livraisons)
boolean controleDateAnnulationReception(FApprovisionnt appro)
boolean controleDatesReliquatAppro(CtxCommandeFou commande, boolean surMontant)
void actualiserPiecesGestionCouverture(CtxAffaire context)
context
- void actualiserPiecesTauxDevises(AchatVente context)
context
- void majListeLignesEtActualiserLignesCommandeClient(List<FLignecomfou> listeLignecomfou)
liste
- liste de ligne de commande fournisseur à mettre à jourvoid validerVentilationFacture(CtxFactureFournisseur ctxFactureFournisseur)
ctxFactureFournisseur
- CtxFactureFournisseur loadFactureAVentiler(CtxFactureFournisseur ctxFacture, String numeroFacture, boolean refreshAppro)
List<FCommandecli> annulerLivraisonAvoir(CtxFactureClient ctxFactureClient, FFacturescli avoir)
List<FLignecomfou> getLignesCdeFouFromCdeClient(CtxCommandeCli ctxCommandeCli)
List<LignePieceRevisable> simulerReviserPrix(List<LignePieceRevisable> lignes, Date dateReference)
void reviserPrix(List<LignePieceRevisable> lignes, Date dateReference)
Double getPrixUnitaire(Double identFournisseur, String identProduit, Double quantite, Double prixUnite)
List<FCommandefou> annulerReceptionAvoir(CtxFactureFournisseur ctxFactureFournisseur, FFacturesfou avoir, com.google.common.collect.ArrayListMultimap<String,FLignefacfou> lignesAvoirByNumeroAppro)
CtxCommandeFou annulerReception(AnnulationReception annulationReception, String complement)
CtxCommandeFou annulerReception(AnnulationReception annulationReception)
FApprovisionnt transformerCommandeEnReception(CtxCommandeFou commande, boolean surMontant, boolean ctrlArreteReliquat)
FApprovisionnt transformerCommandeEnReception(Date dateAppro, CtxCommandeFou commande, boolean surMontant, boolean ctrlArreteReliquat)
FPlanning preCreatePlanning(FPlanning planning, FLignecomcliCharges ligne, FCommandecli commandecli)
Copyright © 2016. All rights reserved.