Revision ea2e84cc
Von Philip Reetz vor mehr als 15 Jahren hinzugefügt
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
Bug #862 behoben, Funktionen fuer die Buttons unter den Listen (Rechnungen und Buchungsjournal) generell nach common.pl ausgelagert.