Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision ea2e84cc

Von Philip Reetz vor mehr als 15 Jahren hinzugefügt

  • ID ea2e84cc75e2879141eea5e957439936280682bf
  • Vorgänger 6c7334b3
  • Nachfolger 16c66f61

Bug #862 behoben, Funktionen fuer die Buttons unter den Listen (Rechnungen und Buchungsjournal) generell nach common.pl ausgelagert.

Unterschiede anzeigen:

bin/mozilla/ap.pl
1514 1514
  $lxdebug->leave_sub();
1515 1515
}
1516 1516

  
1517

  
1518
sub vendor_invoice {
1519
  $lxdebug->enter_sub();
1520

  
1521
  $auth->assert('invoice_edit');
1522

  
1523

  
1524
  $form->{script} = 'ir.pl';
1525
  $script         = "ir";
1526
  $form->{type} = "invoice";
1527
  $locale = new Locale "$myconfig{countrycode}", "$script";
1528

  
1529
  require "bin/mozilla/$form->{script}";
1530
  &add;
1531

  
1532
  $lxdebug->leave_sub();
1533
}
1534

  
1535
sub ap_transaction {
1536
  $lxdebug->enter_sub();
1537

  
1538
  $auth->assert('general_ledger');
1539

  
1540

  
1541
  $form->{script} = 'ap.pl';
1542
  $script         = "ap";
1543
  $locale = new Locale "$myconfig{countrycode}", "$script";
1544

  
1545
  require "bin/mozilla/$form->{script}";
1546
  &add;
1547

  
1548
  $lxdebug->leave_sub();
1549
}
1550

  
1551 1517
sub storno {
1552 1518
  $lxdebug->enter_sub();
1553 1519

  
bin/mozilla/ar.pl
1507 1507
  $report->set_columns(%column_defs);
1508 1508
  $report->set_column_order(@columns);
1509 1509

  
1510
  $report->set_export_options('ar_transactions', @hidden_variables, qw(sort sortdir));
1510
  $report->set_export_options('ar_transactions', @hidden_variables);
1511 1511

  
1512 1512
  $report->set_sort_indicator($form->{sort}, $form->{sortdir});
1513 1513

  
......
1620 1620
  $lxdebug->leave_sub();
1621 1621
}
1622 1622

  
1623
sub sales_invoice {
1624
  $lxdebug->enter_sub();
1625

  
1626
  $auth->assert('invoice_edit');
1627

  
1628

  
1629
  $form->{script} = 'is.pl';
1630
  $script         = "is";
1631
  $form->{type} = "invoice";
1632
  $locale = new Locale "$myconfig{countrycode}", "$script";
1633

  
1634
  require "bin/mozilla/$form->{script}";
1635
  &add;
1636

  
1637
  $lxdebug->leave_sub();
1638
}
1639

  
1640
sub ar_transaction {
1641
  $lxdebug->enter_sub();
1642

  
1643
  $auth->assert('general_ledger');
1644

  
1645

  
1646
  $form->{script} = 'ar.pl';
1647
  $script         = "ar";
1648
  $locale = new Locale "$myconfig{countrycode}", "$script";
1649

  
1650
  require "bin/mozilla/$form->{script}";
1651
  &add;
1652

  
1653
  $lxdebug->leave_sub();
1654
}
1655

  
1656

  
1657

  
1658 1623
sub storno {
1659 1624
  $lxdebug->enter_sub();
1660 1625

  
bin/mozilla/common.pl
588 588
  $lxdebug->leave_sub();
589 589
}
590 590

  
591

  
592
# Functions to call add routines beneath different reports
593

  
594
sub sales_invoice {
595
  $lxdebug->enter_sub();
596

  
597
  $auth->assert('invoice_edit');
598

  
599

  
600
  $form->{script} = 'is.pl';
601
  $script         = "is";
602
  $form->{type} = "invoice";
603
  $locale = new Locale "$myconfig{countrycode}", "$script";
604

  
605
  require "bin/mozilla/$form->{script}";
606
  &add;
607

  
608
  $lxdebug->leave_sub();
609
}
610

  
611
sub ar_transaction {
612
  $lxdebug->enter_sub();
613

  
614
  $auth->assert('general_ledger');
615

  
616

  
617
  $form->{script} = 'ar.pl';
618
  $script         = "ar";
619
  $locale = new Locale "$myconfig{countrycode}", "$script";
620

  
621
  require "bin/mozilla/$form->{script}";
622
  &add;
623

  
624
  $lxdebug->leave_sub();
625
}
626

  
627
sub vendor_invoice {
628
  $lxdebug->enter_sub();
629

  
630
  $auth->assert('invoice_edit');
631

  
632

  
633
  $form->{script} = 'ir.pl';
634
  $script         = "ir";
635
  $form->{type} = "invoice";
636
  $locale = new Locale "$myconfig{countrycode}", "$script";
637

  
638
  require "bin/mozilla/$form->{script}";
639
  &add;
640

  
641
  $lxdebug->leave_sub();
642
}
643

  
644
sub ap_transaction {
645
  $lxdebug->enter_sub();
646

  
647
  $auth->assert('general_ledger');
648

  
649

  
650
  $form->{script} = 'ap.pl';
651
  $script         = "ap";
652
  $locale = new Locale "$myconfig{countrycode}", "$script";
653

  
654
  require "bin/mozilla/$form->{script}";
655
  &add;
656

  
657
  $lxdebug->leave_sub();
658
}
659

  
660
sub gl_transaction {
661
  $lxdebug->enter_sub();
662

  
663
  $auth->assert('general_ledger');
664

  
665

  
666
  $form->{script} = 'gl.pl';
667
  $script         = "gl";
668
  $locale = new Locale "$myconfig{countrycode}", "$script";
669

  
670
  require "bin/mozilla/$form->{script}";
671
  &add;
672

  
673
  $lxdebug->leave_sub();
674
}
675

  
591 676
1;

Auch abrufbar als: Unified diff