[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[5626] trunk



Revision: 5626
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=5626&view=rev
Author:   einhverfr
Date:     2013-01-25 03:37:03 +0000 (Fri, 25 Jan 2013)
Log Message:
-----------
Accepting patch 3601892, updated gnome.css, to merge with 1.3

Modified Paths:
--------------
    trunk/Changelog
    trunk/LedgerSMB/X12.pm
    trunk/css/gnome.css

Added Paths:
-----------
    trunk/LedgerSMB/X12/
    trunk/LedgerSMB/X12/EDI850.pm
    trunk/css/gnome/document-print.png
    trunk/css/gnome/libreoffice-text.png

Modified: trunk/Changelog
===================================================================
--- trunk/Changelog	2013-01-24 08:24:18 UTC (rev 5625)
+++ trunk/Changelog	2013-01-25 03:37:03 UTC (rev 5626)
@@ -85,6 +85,7 @@
 Changelog for 1.3.30
 * Documented behavior of Outstanding Summary report (Chris T, 3601314)
 * Fix for translations showing multiple types (Chris T, 3601737)
+* Updated gnome.css (Pongracz Istvan)
 
 Changelog for 1.3.29
 * Added db routines for role backup and restore for shared hosting

Added: trunk/LedgerSMB/X12/EDI850.pm
===================================================================
--- trunk/LedgerSMB/X12/EDI850.pm	                        (rev 0)
+++ trunk/LedgerSMB/X12/EDI850.pm	2013-01-25 03:37:03 UTC (rev 5626)
@@ -0,0 +1,42 @@
+=head1 NAME 
+
+LedgerSMB::X12::EDI850 - Conversion class for X12 850 files to LedgerSMB 
+structures
+
+=head1 SYNOPSIS
+
+ my $edi = LedgerSMB::X12::EDI850->new(message => 'message.edi');
+ my $ISA = $edi->ISA;
+ my @orders = $edi->orders;
+
+=cut
+
+package LedgerSMB::X12::EDI850;
+use Moose;
+extends 'LedgerSMB::X12';
+
+sub _config {
+    return 'LedgerSMB/X12/cf/850.cf';
+}
+
+=head1 DESCRIPTION
+
+This module processes X12 EDI 850 purchase orders and can present them in 
+structures compatible with LedgerSMB's order entry system.  The API is simple.
+
+=head1 PROPERTIES
+
+=over
+
+=item orders
+
+This is an array of orders using the same data structures that a form screen
+would submit (flat format).
+
+=cut 
+
+has orders => (is => 'ro', isa => 'ArrayRef[HashRef[Any]]', lazy => 1, 
+          builder => '_orders');
+
+sub _orders {
+}

Modified: trunk/LedgerSMB/X12.pm
===================================================================
--- trunk/LedgerSMB/X12.pm	2013-01-24 08:24:18 UTC (rev 5625)
+++ trunk/LedgerSMB/X12.pm	2013-01-25 03:37:03 UTC (rev 5626)
@@ -81,8 +81,38 @@
 
 =cut
 
-has parser => (is => 'ro', isa => 'X12::Parser', lazy => 1, builder => 'parse');
+has parser => (is => 'ro', isa => 'X12::Parser', lazy => 1, builder => '_parser');
 
+=item ISA
+
+This is the exchange security and routing information header.
+
+=cut
+
+has ISA => (is => 'ro', isa => 'HashRef[Any]', lazy => 1, builder => '_ISA');
+
+sub ISA {
+    my ($self) = @_;
+    my @segments = $self->parser->get_loop_segments;
+    @segments = $self->parser->get_loop_segments unless @segments;
+    if ($segments[0] != 'ISA'){
+        $self->parse;  # re-initialize parser, we don't have an ISA!
+        die 'No ISA';
+    }
+
+    my $isa = {};
+
+    my @keys;
+    
+    push @keys, sprintf('ISA%02d', $_) for (1 .. 16);
+
+    for my $key (@keys){
+       $isa->{$key} = unshift @segments;
+    }
+    return $isa;
+}
+
+
 =head1 METHODS
 
 =over
@@ -113,10 +143,13 @@
 
 =cut
 
-sub parse {
+sub _parser {
     my ($self) = @_;
     my $parser = new X12::Parser;
     my $file = $self->message;
+}
+
+sub parse {
     if (!$self->is_message_file){
         $file = $LedgerSMB::Sysconfig::tempdir . '/' . $$ . '-' . $self->message;
         open TMPFILE, '>', $file;

Added: trunk/css/gnome/document-print.png
===================================================================
(Binary files differ)


Property changes on: trunk/css/gnome/document-print.png
___________________________________________________________________
Added: svn:mime-type
   + image/png

Added: trunk/css/gnome/libreoffice-text.png
===================================================================
(Binary files differ)


Property changes on: trunk/css/gnome/libreoffice-text.png
___________________________________________________________________
Added: svn:mime-type
   + image/png

Modified: trunk/css/gnome.css
===================================================================
--- trunk/css/gnome.css	2013-01-24 08:24:18 UTC (rev 5625)
+++ trunk/css/gnome.css	2013-01-25 03:37:03 UTC (rev 5626)
@@ -2,7 +2,7 @@
 Mixed by: Andres Basile <..hidden..>
 Original file: ledgersmb.css
 Icons: http://download.gnome.org/sources/gnome-icon-theme
-Copyright: Ulisse Perusin <..hidden..>; Riccardo Buzzotta <..hidden..>; Josef VybaÂral <..hidden..>; Hylke Bons <..hidden..>; Ricardo Gonzalez <..hidden..>; Lapo Calamandrei <..hidden..>; Rodney Dawes <..hidden..>; Luca Ferretti <..hidden..>; Tuomas Kuosmanen <..hidden..>; Andreas Nilsson <..hidden..>; Jakub Steiner <..hidden..>
+Copyright: Ulisse Perusin <..hidden..>; Riccardo Buzzotta <..hidden..>; Josef Vyba\xADral <..hidden..>; Hylke Bons <..hidden..>; Ricardo Gonzalez <..hidden..>; Lapo Calamandrei <..hidden..>; Rodney Dawes <..hidden..>; Luca Ferretti <..hidden..>; Tuomas Kuosmanen <..hidden..>; Andreas Nilsson <..hidden..>; Jakub Steiner <..hidden..>
 This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 dated June, 1991.
 */
 
@@ -66,7 +66,7 @@
 
 /* Search
 Buscar */
-li#menu_14, li#menu_33, li#menu_49, li#menu_104, li#menu_221, li#menu_233 {
+li#menu_14, li#menu_33, li#menu_49, li#menu_104, li#menu_221, li#menu_233, li#menu_222 {
  background: #eee url('gnome/system-search.png') center left no-repeat;
 }
 
@@ -78,16 +78,21 @@
 
 /* Add
 Nuevo */
-li#menu_2, li#menu_12, li#menu_22, li#menu_31, li#menu_36, li#menu_38, li#menu_48, li#menu_78, li#menu_79, li#menu_80, li#menu_81, li#menu_82, li#menu_83, li#menu_99, li#menu_100, li#menu_137, li#menu_139, li#menu_142, li#menu_145, li#menu_148, li#menu_151, li#menu_154, li#menu_218, li#menu_220, li#menu_230, li#menu_232 {
+li#menu_2, li#menu_12, li#menu_22, li#menu_31, li#menu_36, li#menu_38, li#menu_48, li#menu_78, li#menu_79, li#menu_80, li#menu_81, li#menu_82, li#menu_83, li#menu_99, li#menu_100, li#menu_137, li#menu_139, li#menu_142, li#menu_145, li#menu_148, li#menu_151, li#menu_154, li#menu_218, li#menu_220, li#menu_230, li#menu_232, li#menu_198, li#menu_3, li#menu_194, li#menu_195, li#menu_199, li#menu_23, li#menu_196, li#menu_197, li#menu_68, li#menu_69, li#menu_51, li#menu_52 {
  background: #eee url('gnome/list-add.png') center left no-repeat;
 }
 
 /* List
 Lista */
 li#menu_138, li#menu_140, li#menu_143, li#menu_146, li#menu_149, li#menu_152, li#menu_155, li#menu_225, li#menu_231 {
+ background: #eee url('gnome/libreoffice-text.png') top left no-repeat;
+}
+
+
+/* Templates */
+ li#menu_157, li#menu_158, li#menu_159, li#menu_160, li#menu_161, li#menu_162, li#menu_163, li#menu_164, li#menu_165, li#menu_166, li#menu_167, li#menu_168, li#menu_169, li#menu_170, li#menu_171, li#menu_241, li#menu_173, li#menu_174, li#menu_175, li#menu_176, li#menu_177, li#menu_178, li#menu_179, li#menu_180, li#menu_181, li#menu_182, li#menu_183, li#menu_184, li#menu_185, li#menu_186, li#menu_187, li#menu_242, li#menu_189 {
  background: #eee url('gnome/text-x-preview.png') top left no-repeat;
 }
-
 /* Contacts
 Contactos */
 li#menu_11, li#menu_30, li#menu_47 {
@@ -100,6 +105,12 @@
  background: #eee url('gnome/package-x-generic.png') center left no-repeat;
 }
 
+/* Printing
+ */
+li#menu_114, li#menu_117, li#menu_118, li#menu_119, li#menu_120, li#menu_121, li#menu_122, li#menu_123, li#menu_124, li#menu_125, li#menu_126, li#menu_127 {
+ background: #eee url('gnome/document-print.png') center left no-repeat;
+}
+
 /* Recurrents
 Recurrentes */
 li#menu_115 {
@@ -234,7 +245,7 @@
   background: #004a80;
 }
 
-.listtop { font-size: 10pt; background-color: #F5F5B5; color: #1A1A1A; }
+.listtop { font-size: 11pt; background-color: #F5F5B5; color: #1A1A1A;   font-weight: bold; margin: 3px; }
 
 .listheading { font-size: 10pt; background-color: #86ABD9; color: #1A1A1A; }
 
@@ -244,7 +255,7 @@
 .listrow1 { font-size: 10pt; background-color: #e6e6fa; color: black; vertical-align: top; }
 .listrow0 { font-size: 10pt; background-color: #ffe4e1; color: black; vertical-align: top; }
 .listsubtotal { font-size: 10pt; background-color: #5a7d9b; color: white; }
-.listtotal { font-size: 10pt; background-color: #EDECEB; color: white; }
+.listtotal { font-size: 10pt; background-color: #EDECEB; color: green; vertical-align: top; text-align: right;  }
 
 textarea {
   font-family: Verdana, Arial, Helvetica, sans-serif;

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.