Giter VIP home page Giter VIP logo

business-tw-invoice-u420's Introduction

NAME
    Business::TW::Invoice::U420 - Print Taiwan Unified Invoice with U420
    printer

VERSION
    Version 0.01

SYNOPSIS
    Business::TW::Invoice::U420->init_printer; my $u420 =
    Business::TW::U420->new ({ heading => [ DateTime->now->ymd, '', 'order:
    #232', ''], lines_total => 35, lines_available => 18, lines_stamp => 5,
    fh => \*STDOUT });

    $u420->println("123123") for 1..30; $u420->cut;

    # to actually print to the printer, run: # perl your-program.pl > COM1

DESCRIPTION
    This module generates commands for the "Epson RP-U420 invoice" printer
    for printing the Unified Invoice in Taiwan.

    You must install the driver and printer processor properly before you
    can use the module.

    You can define multiple lines of headers that will appear on each page
    of the printed invoices, and when you do println the module does all the
    necessary paging and stamping for you.

METHODS
  new
  init_printer
  feed( $lines )
    Feed $lines lines, default is 1.

  stamp
    Make the printer stamp on the invoice. note that you generally don't
    want to call this method directly, due to the stamp positioning. When
    you call "cut", the module automatically detects the correct place to
    stamp for the next invoice.

  cut
    feed the current invoice and cut, as well as stamping on the next
    invoice.

  print
    Low level print function.

  println
    Print a line on the invoice. Does all the paging logic here.

AUTHOR
    Chia-liang Kao, "<clkao at clkao.org>"

  TODO
    *   Split the device control parts into "Device::Serial::U420" for
        generic use and keep the paging/stamping logic here

    *   Tests

    *   Add footer support

BUGS
    Please report any bugs or feature requests to
    "bug-business-tw-invoice-u420 at rt.cpan.org", or through the web
    interface at
    <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Business-TW-Invoice-U420
    >. I will be notified, and then you'll automatically be notified of
    progress on your bug as I make changes.

SUPPORT
    You can find documentation for this module with the perldoc command.

        perldoc Business::TW::Invoice::U420

    You can also look for information at:

    * AnnoCPAN: Annotated CPAN documentation
        <http://annocpan.org/dist/Business-TW-Invoice-U420>

    * CPAN Ratings
        <http://cpanratings.perl.org/d/Business-TW-Invoice-U420>

    * RT: CPAN's request tracker
        <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Business-TW-Invoice-U420>

    * Search CPAN
        <http://search.cpan.org/dist/Business-TW-Invoice-U420>

ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
    Copyright 2007 AIINK co., ltd, all rights reserved.

    This program is free software; you can redistribute it and/or modify it
    under the same terms as Perl itself.

business-tw-invoice-u420's People

Contributors

clkao avatar

Watchers

 avatar  avatar  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.