public static string saveEntry(int id, string invoiceno, DateTime invoiceDate, string description, int supplierId, decimal total, string user, int type, string reference,
        string price, string quantity, string product, string add,string  sale)
    {
        clsLst lst = new clsLst();
        lst.iEntryId = type == 2 ? id : lst.GetLastIdEntry();
        lst.sInvoiceNo = invoiceno;
        lst.dtInvoiceDate = invoiceDate;
        lst.sDescription = description;
        lst.iSupplierId = supplierId;
        lst.dTotalInvoice = total;
        lst.sUser = user;
        lst.sReference = reference;

        return lst.InsertUpdateDeleteProductEntry(type, price,quantity,product,add,sale);
    }