summaryrefslogtreecommitdiff
path: root/bin/ps.pl
blob: c9ba0c5caef5bbc652d7d2b8747b810a63199d6a (plain)
  1. ######################################################################
  2. # LedgerSMB Small Medium Business Accounting
  3. # http://www.ledgersmb.org/
  4. #
  5. # Copyright (C) 2006
  6. # This work contains copyrighted information from a number of sources all used
  7. # with permission.
  8. #
  9. # This file contains source code included with or based on SQL-Ledger which
  10. # is Copyright Dieter Simader and DWS Systems Inc. 2000-2005 and licensed
  11. # under the GNU General Public License version 2 or, at your option, any later
  12. # version. For a full list including contact information of contributors,
  13. # maintainers, and copyright holders, see the CONTRIBUTORS file.
  14. #
  15. # Original Copyright Notice from SQL-Ledger 2.6.17 (before the fork):
  16. # Copyright (c) 1999 - 2005
  17. #
  18. # Author: DWS Systems Inc.
  19. # Web: http://www.sql-ledger.org
  20. #
  21. #
  22. # Author: DWS Systems Inc.
  23. # Web: http://www.ledgersmb.org/
  24. #
  25. # This program is free software; you can redistribute it and/or modify
  26. # it under the terms of the GNU General Public License as published by
  27. # the Free Software Foundation; either version 2 of the License, or
  28. # (at your option) any later version.
  29. #
  30. # This program is distributed in the hope that it will be useful,
  31. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  32. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  33. # GNU General Public License for more details.
  34. # You should have received a copy of the GNU General Public License
  35. # along with this program; if not, write to the Free Software
  36. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  37. #
  38. #######################################################################
  39. #
  40. # point of sale script
  41. #
  42. #######################################################################
  43. use LedgerSMB::AA;
  44. use LedgerSMB::IS;
  45. use LedgerSMB::RP;
  46. require "bin/ar.pl";
  47. require "bin/is.pl";
  48. require "bin/rp.pl";
  49. require "bin/pos.pl";
  50. require "pos.conf.pl";
  51. # customizations
  52. if (-f "bin/custom/pos.pl") {
  53. eval { require "bin/custom/pos.pl"; };
  54. }
  55. if (-f "bin/custom/$form->{login}_pos.pl") {
  56. eval { require "bin/custom/$form->{login}_pos.pl"; };
  57. }
  58. # Necessary for Partsgroup lookups
  59. if ($form->{action} =~ s/^\s//){
  60. $form->{my_partsgroup} = $form->{action};
  61. $form->{action} = "lookup_partsgroup";
  62. }
  63. 1;
  64. # end