Skip to content

cnmota/WinREST-POS-Files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

WinREST POS Files

Small collection of modules to parse, read and write WinREST POS Files, both data and masters.

Usage:

READ

my $headers = POS::File::Flat->new( filename => '/home/winrest/files/export/c1301010.020', formatter => 'POS::WinREST::Formatter::SaleHeader' );

foreach my $row (@{$headers->rows()}) {
  print "DOC TYPE:".$row->{doc_type}." VALUE: ".$row->{total}."\n";
}

WRITE

my $rows = [
  { 
    code => 12,
    name => 'Coffe',
    price1 => 0.60
    ...
  },
  ...
];

my $writer = POS::File::Flat->new( rows => $rows, formatter => 'POS::WinREST::Formatter::Product' );
$writer->save('/home/winrest/files/data/wrstmart.000');

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages