

export interface Commande {
    reference?: string
    numero: string
    date: string
    date_livraison?: string
    date_expedition?: string
    client_code: string
    client_intitule: string
    client_adresse: string
    client_code_postal: string
    client_ville: string
    client_email: string
    client_telephone: string
    total_ht: number
    total_ttc: number
    total_ht_net: number
    statut: number
    total_taxes_calcule: number
    total_ht_calcule:number
    total_ttc_calcule: number
    valeur_frais: number
    taxes1: number
    lignes?: LigneCommande[]
}


export interface CommandeRequest {
    client_id: string
    date_commande?: string
    reference?: string
    date_livraison?: string
    lignes: LigneCommande[]
}



export interface CommandeUpdateRequest {
    date_commande?: string
    date_livraison?: string
    reference?: string
    lignes: LigneCommande[]
}




export interface LigneCommande {
    article_code: string
    designation?: string
    quantite: number
    prix_unitaire_ht?: number
    remise_pourcentage?: number
    montant_ligne_ht?: number
    taux_taxe1?: number
    montant_taxe1?: number
    taux_taxe2?: number
    montant_taxe2?: number
    taux_taxe3?: number
    montant_taxe3?: number
    total_taxes?: number
    famille_article?: string
    code_barre?: string
    poids_brut?: number
    poids_net?: number
}


export interface CommandeResponse {
    success: boolean
    data: {
        numero_commande: string,
        client_id: string
    }
    message: string
}


