
export interface BL {
    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?: LigneBL[]
}



export interface BLRequest {
    client_id: string
    reference?: string
    date_livraison?: string
    lignes: LigneBLRequest[]
}



export interface BLUpdateRequest {
    reference?: string
    date_livraison?: string
    lignes: LigneBLRequest[]
}


export interface LigneBL {
    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 LigneBLRequest {
    article_code: string
    quantite: number
    prix_unitaire?: number
    designation?: string
    montant_ht?: number
}



export interface BLResponse {
    success: boolean
    data: {
        numero_livraison: string,
        client_id: string
    }
    message: string
}