summaryrefslogtreecommitdiff
path: root/t/data/62-request-data
blob: e3c6108badbc0085f410df9051bb6cd1bb0627b3 (plain)
  1. use Test::More;
  2. our $test_request_data = [
  3. # AR/AP Transaction Screen Tests
  4. {
  5. '_test_id' => 'AR Transaction Screen',
  6. '_codebase' => 'old',
  7. 'module' => 'ar.pl',
  8. 'action' => 'add'
  9. },
  10. {
  11. '_test_id' => 'AP Transaction Screen',
  12. '_codebase' => 'old',
  13. 'module' => 'ap.pl',
  14. 'action' => 'add'
  15. },
  16. # Create Batch Screens
  17. {
  18. '_test_id' => 'AR Transaction Voucher Screen',
  19. '_codebase' => 'new',
  20. 'action' => 'create_batch',
  21. 'batch_type' => 'recievable',
  22. 'module' => 'vouchers.pl',
  23. },
  24. {
  25. '_test_id' => 'AP Transaction Voucher Screen',
  26. '_codebase' => 'new',
  27. 'action' => 'create_batch',
  28. 'batch_type' => 'payable',
  29. 'module' => 'vouchers.pl',
  30. },
  31. {
  32. '_test_id' => 'Payment Transaction Voucher Screen',
  33. '_codebase' => 'new',
  34. 'action' => 'create_batch',
  35. 'batch_type' => 'payment',
  36. 'module' => 'vouchers.pl',
  37. },
  38. {
  39. '_test_id' => 'Payment Reversal Transaction Voucher Screen',
  40. '_codebase' => 'new',
  41. 'action' => 'create_batch',
  42. 'batch_type' => 'payment_reversal',
  43. 'module' => 'vouchers.pl',
  44. },
  45. {
  46. '_test_id' => 'GL Transaction Voucher Screen',
  47. '_codebase' => 'new',
  48. 'action' => 'create_batch',
  49. 'batch_type' => 'gl',
  50. 'module' => 'vouchers.pl',
  51. },
  52. # {
  53. # '_test_id' => 'Payment print total',
  54. # '_codebase' => 'new',
  55. # 'action' => 'print',
  56. # 'module' => 'payment.pl',
  57. # 'account_class' => 1,
  58. # 'currency' => 'USD',
  59. # 'multiple' => 1,
  60. # 'format' =>
  61. #
  62. # },
  63. ];
  64. our $pre_test_subs = {};
  65. our $api_test_cases = {
  66. 'AR Transaction Voucher Screen' => sub {
  67. my $request = shift;
  68. ok($request->{batch_number}, 'Batch Number is Defined');
  69. },
  70. 'AP Transaction Voucher Screen' => sub {
  71. my $request = shift;
  72. ok($request->{batch_number}, 'Batch Number is Defined');
  73. },
  74. 'Payment Transaction Voucher Screen' => sub {
  75. my $request = shift;
  76. ok($request->{batch_number}, 'Batch Number is Defined');
  77. },
  78. 'Payment Reversal Transaction Voucher Screen' => sub {
  79. my $request = shift;
  80. ok($request->{batch_number}, 'Batch Number is Defined');
  81. },
  82. 'GL Transaction Voucher Screen' => sub {
  83. my $request = shift;
  84. ok($request->{batch_number}, 'Batch Number is Defined');
  85. },
  86. };
  87. opendir (D62, 't/data/62.d');
  88. for my $testfile (readdir(D62)){
  89. do "t/data/62.d/$testfile";
  90. };