Giter Club home page Giter Club logo

sage-in-c's Introduction

Sage-in-C

A small C library designed to allow read only access to Sage Accounts 50 data without having to use the ODBC driver. This is particularly useful if you need to access the data from a none-Windows machine (which was the intended purpose).

One possible application of this library might be a tool to synchronise invoices from Sage to an SQL server.

Demonstration

demo/main.c is a simple demonstration which asks for an invoice number and then prints out a few details about the invoice. For example:

$ make
mkdir -p build
gcc src/*.c demo/*.c -o build/main

$ ./build/main
Enter an Invoice Number: 8900
You entered: 8900

Invoice Number: 8900
  Company Name: Customer Name                                               
       Creator: MANAGER  
          Date: Mon Jan  5 00:00:00 2014
          
   Modified On: Mon Jan  6 00:26:35 2014
    Created on: Sun Jan  5 20:08:54 2014
Date Processed: Mon Jan  6 00:26:35 2014
       Printed: No
       Emailed: Yes
        Posted: No
        
| PRODUCT CODE                   | DESCRIPTION                                                  | Q |
| KitKat                         | Chocolate-covered wafer biscuit bar                          | 5 |
        

Further Work!

  • Fill in the missing fields from the two supported tables (Invoice, Invoice Item)
  • Add support for additional tables
  • Add partial support for the index tables, not really sure how useful they are though

Contributions

I would love contributions. If you find a bug or merely an improvement, please send a pull request. I am not a very good C programmer so I'm sure there are many problems with my code.

sage-in-c's People

Contributors

aaronjackson avatar

Watchers

James Cloos avatar Scott Drinkwater avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.