
export interface LigneDevis {
    article_code: string
    quantite: number
    prix_unitaire_ht?: number
    remise_pourcentage?: number
}

export interface DevisRequest {
    client_id: string
    reference?:string
    date_devis?: string
    date_livraison?: string
    lignes: LigneDevis[]
}

export interface DevisUpdateRequest {
    date_devis?: string
    lignes: LigneDevis[]
    date_livraison?: string
    reference?:string
}

export interface DevisResponse {
    id: string
    client_id: string
    date_devis: string
    montant_total_ht: number
    montant_total_ttc: number
    nb_lignes: number
}

export interface DevisDetail {
    reference?: string
    numero: string
    date: string
    client_code: string
    client_intitule: string
    total_ht: number
    total_ttc: number
    statut: number
    lignes: {
        article: string
        designation: string
        quantite: number
        prix_unitaire: number
        montant_ht: number
    }[]
    a_deja_ete_transforme?: boolean
    documents_cibles?: []
}


export interface DevisListItem {
    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: {
        article_code: string
        designation?: string
        quantite: number
        prix_unitaire_ht?: number
        remise_pourcentage?: number
        montant_ligne_ht?: number
        remise_valeur1?: 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
    }[]
    a_deja_ete_transforme?: boolean
    documents_cibles?: []
    isVerified?: boolean
}




export interface DevisStatusRequest {
    numero: string
    status: number
}
export interface DevisStatusResponse {
    success: boolean
    devis_id: string
    statut_ancien: number
    statut_nouveau: number
    message: string
}
