Coder Social home page Coder Social logo

thermalprint's Introduction

ThermalPrint

This project allows you to print an invoice after receive a JSON document.

Functionality

The Web API was developed in .Net framework 4.6.1 with cors support to allow other applications execute itspublic function send in the printcontroller without any issue. The main idea is call it using the localhost address.

To see the configuration, goto <remoteaddress>/swagger/ to see the functions.

Swagger

Example

{
  "company":{
  "CompanyID":1,
  "Name":"Facultad de Odontologia",
  "data":{
  "address":"Calle Cristóbal de Llerenas, Campus Alma Mater, Zona Universitaria.",
  "phone":"(809) 535-8274 ext. 3184",
  "contact":"Angel Nadal",
  "rnc":"00117292896",
  "companyGroupID":1
}
},
  "sales":{
  "salesOrderControlID":21,
  "userID":1,
  "companyID":1,
  "patientID":3,
  "totalAmount":300,
  "quantity":3,
  "statusId":"P",
  "data":{
    "invoiceid":"3u8g5yrll4kb6m4ynw",
    "payments":{
      "taxreceiptnumbertype":"00",
      "details":[
        {
        "payment":{
          "amount":300,
            "paymentmethod":{
              "value":"E",
              "text":"Efectivo"
            }
          }
        }
    ]
},
"items":[
  {
    "productID":19,
    "name":"Equilibración de oclusión",
    "price":"100",
    "description":"Equilibración de oclusión",
    "quantity":3,
    "itbis":0
  }
],
"customer":{
  "id":3,
  "rnc":"076-45784575-4",
  "name":"Ramón Del Orbe"
},
  "batch":{
    "id":1,
    "name":"Caja 01"
  },
  "cashier":{
    "name":"Ely Michael Núñez De la Rosa"
      }
    }
  }
}

Fix Errors in the web API.

In some computers we can receive an error related to access permissions Error writing file report: Access to the path 'c:\windows\system32\inetsrv\Ofidental\202006081051084_c62928f-aec5-4344-8081-4453ebf573fe.txt' is denied., please validate the ApplicationHost.Config will have the following configuration to access to the user profile:

<applicationPoolDefaults managedRuntimeVersion="v4.0">
  <processModel identityType="ApplicationPoolIdentity" loadUserProfile="true" setProfileEnvironment="true" />
</applicationPoolDefaults>

Location: C:\Windows\System32\inetsrv\config\applicationHost.config

thermalprint's People

Contributors

elymichael avatar

Watchers

 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.