logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Business::Edifact::Message - Class that models Edifact Messages

Acknowledgements

Author

       Colin Campbell, "<colinsc@cpan.org>"

Bugs

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

Name

       Business::Edifact::Message - Class that models Edifact Messages

Subroutines/Methods

new
       Called by Business::Edifact::Interchange to instantiate a new Message object. The caller passes the
       header fields with the reference number identifier and message type

   add_segment
       Process the next data segment

   type
       return the message's type e.g. 'QUOTES' or 'ORDERS'

   function
       Returns the message's function field May be 'original' or 'retransmission'

   message_code
       Returns 3 character message code from the BGM message

   currency_codereference_numberdate_of_messageitems
       return the list of lineitems

   handle_bgmhandle_dtm
       NB DTM can occur in different segment groups

   handle_pathandle_rffhandle_cuxhandle_nadhandle_linhandle_piahandle_imdhandle_qtyhandle_girhandle_moahandle_taxhandle_alchandle_rtehandle_lochandle_prihandle_unshandle_cnthandle_ftxhandle_pcdclear_item_flags
        clear flags at start of new item or summary

Support

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

           perldoc Business::Edifact::Message

Synopsis

       Parses an individual Edifact message Message objects are instantiated by Business::Edifact::Interchange
       and an array of them is returned in its messages function
          $interchange->parse($incoming);
          my $m_array = $interchange->messages();
          for my $msg (@{$m_array}) {
             ...retrieve message data
          }

Version

       Version 0.07

See Also