Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 74c5174c

Von Sven Schöling vor etwa 3 Jahren hinzugefügt

  • ID 74c5174c84a1c5d18a10a23acf73c6c634722844
  • Vorgänger 27a9c69a
  • Nachfolger 631c46fd

DeliveryOrder: javascript referenzen

Unterschiede anzeigen:

SL/Controller/DeliveryOrder.pm
1584 1584

  
1585 1585
  $self->get_item_cvpartnumber($_) for @{$self->order->items_sorted};
1586 1586

  
1587
  $::request->{layout}->use_javascript("${_}.js") for qw(kivi.SalesPurchase kivi.Order kivi.File ckeditor/ckeditor ckeditor/adapters/jquery
1587
  $::request->{layout}->use_javascript("${_}.js") for qw(kivi.SalesPurchase kivi.DeliveryOrder kivi.File ckeditor/ckeditor ckeditor/adapters/jquery
1588 1588
                                                         calculate_qty kivi.Validator follow_up show_history);
1589 1589
  $self->setup_edit_action_bar;
1590 1590
}
......
1599 1599
      combobox => [
1600 1600
        action => [
1601 1601
          t8('Save'),
1602
          call      => [ 'kivi.Order.save', 'save', $::instance_conf->get_order_warn_duplicate_parts,
1602
          call      => [ 'kivi.DeliveryOrder.save', 'save', $::instance_conf->get_order_warn_duplicate_parts,
1603 1603
                                                    $::instance_conf->get_order_warn_no_deliverydate,
1604 1604
                                                                                                      ],
1605 1605
        ],
1606 1606
        action => [
1607 1607
          t8('Save as new'),
1608
          call      => [ 'kivi.Order.save', 'save_as_new', $::instance_conf->get_order_warn_duplicate_parts ],
1608
          call      => [ 'kivi.DeliveryOrder.save', 'save_as_new', $::instance_conf->get_order_warn_duplicate_parts ],
1609 1609
          disabled  => !$self->order->id ? t8('This object has not been saved yet.') : undef,
1610 1610
        ],
1611 1611
      ], # end of combobox "Save"
......
1631 1631
        ],
1632 1632
        action => [
1633 1633
          t8('Save and Purchase Order'),
1634
          call      => [ 'kivi.Order.purchase_order_check_for_direct_delivery' ],
1634
          call      => [ 'kivi.DeliveryOrder.purchase_order_check_for_direct_delivery' ],
1635 1635
          only_if  => $self->type_data->show_menu("save_and_purchase_order"),
1636 1636
        ],
1637 1637
        action => [
1638 1638
          t8('Save and Delivery Order'),
1639
          call      => [ 'kivi.Order.save', 'save_and_delivery_order', $::instance_conf->get_order_warn_duplicate_parts,
1639
          call      => [ 'kivi.DeliveryOrder.save', 'save_and_delivery_order', $::instance_conf->get_order_warn_duplicate_parts,
1640 1640
                                                                       $::instance_conf->get_order_warn_no_deliverydate,
1641 1641
                                                                                                                        ],
1642 1642
          only_if  => $self->type_data->show_menu("save_and_delivery_order"),
1643 1643
        ],
1644 1644
        action => [
1645 1645
          t8('Save and Invoice'),
1646
          call      => [ 'kivi.Order.save', 'save_and_invoice', $::instance_conf->get_order_warn_duplicate_parts ],
1646
          call      => [ 'kivi.DeliveryOrder.save', 'save_and_invoice', $::instance_conf->get_order_warn_duplicate_parts ],
1647 1647
        ],
1648 1648
        action => [
1649 1649
          t8('Save and AP Transaction'),
1650
          call      => [ 'kivi.Order.save', 'save_and_ap_transaction', $::instance_conf->get_order_warn_duplicate_parts ],
1650
          call      => [ 'kivi.DeliveryOrder.save', 'save_and_ap_transaction', $::instance_conf->get_order_warn_duplicate_parts ],
1651 1651
          only_if  => $self->type_data->show_menu("save_and_ap_transaction"),
1652 1652
        ],
1653 1653

  
......
1659 1659
        ],
1660 1660
        action => [
1661 1661
          t8('Save and preview PDF'),
1662
           call => [ 'kivi.Order.save', 'preview_pdf', $::instance_conf->get_order_warn_duplicate_parts,
1662
           call => [ 'kivi.DeliveryOrder.save', 'preview_pdf', $::instance_conf->get_order_warn_duplicate_parts,
1663 1663
                                                       $::instance_conf->get_order_warn_no_deliverydate,
1664 1664
                                                                                                         ],
1665 1665
        ],
1666 1666
        action => [
1667 1667
          t8('Save and print'),
1668
          call => [ 'kivi.Order.show_print_options', $::instance_conf->get_order_warn_duplicate_parts,
1668
          call => [ 'kivi.DeliveryOrder.show_print_options', $::instance_conf->get_order_warn_duplicate_parts,
1669 1669
                                                     $::instance_conf->get_order_warn_no_deliverydate,
1670 1670
                                                                                                      ],
1671 1671
        ],
1672 1672
        action => [
1673 1673
          t8('Save and E-mail'),
1674 1674
          id   => 'save_and_email_action',
1675
          call => [ 'kivi.Order.save', 'save_and_show_email_dialog', $::instance_conf->get_order_warn_duplicate_parts,
1675
          call => [ 'kivi.DeliveryOrder.save', 'save_and_show_email_dialog', $::instance_conf->get_order_warn_duplicate_parts,
1676 1676
                                                                     $::instance_conf->get_order_warn_no_deliverydate,
1677 1677
                  ],
1678 1678
          disabled => !$self->order->id ? t8('This object has not been saved yet.') : undef,
......
1687 1687

  
1688 1688
      action => [
1689 1689
        t8('Delete'),
1690
        call     => [ 'kivi.Order.delete_order' ],
1690
        call     => [ 'kivi.DeliveryOrder.delete_order' ],
1691 1691
        confirm  => $::locale->text('Do you really want to delete this object?'),
1692 1692
        disabled => !$self->order->id ? t8('This object has not been saved yet.') : undef,
1693 1693
        only_if  => $self->type_data->show_menu("delete"),
......
1699 1699
        ],
1700 1700
        action => [
1701 1701
          t8('Follow-Up'),
1702
          call     => [ 'kivi.Order.follow_up_window' ],
1702
          call     => [ 'kivi.DeliveryOrder.follow_up_window' ],
1703 1703
          disabled => !$self->order->id ? t8('This object has not been saved yet.') : undef,
1704 1704
          only_if  => $::auth->assert('productivity', 1),
1705 1705
        ],
......
2032 2032

  
2033 2033
=back
2034 2034

  
2035
=item * C<js/kivi.Order.js>
2035
=item * C<js/kivi.DeliveryOrder.js>
2036 2036

  
2037 2037
java script functions
2038 2038

  

Auch abrufbar als: Unified diff