Creating Placeholders

Discussion in 'Installation and "How-To" Questions' started by ViktorB, Sep 3, 2013.

  1. ViktorB

    ViktorB Kilo Poster

    Messages:
    15
    We use PBAS 4.3.3-47 version
    How to create Placeholders?
    We need to create a Placeholder of order total sum without the short currency name.
    Placeholders created but the value does not appear.
    Please, what do i wrong?

    package HSPC::Custom::EV::placeHolder;

    use strict;

    use constant PLACEHOLDERS => {
    'invoice.order_total' => {
    method => 'get_order_total',
    ph_type => 0,
    is_verctor => 0,
    def_value => 0,
    obj_type_id => 'HSPC::MT::Billing::Bill',
    explain => 'Invoice order total'
    },
    };

    sub get_order_total {
    my $invoice = shift;
    return $invoice->{order_total};
    }

    1;
     
  2. FedorK

    FedorK Mega Poster

    Messages:
    224
    Hello,

    try $invoice->{doc_total};
     
  3. ViktorB

    ViktorB Kilo Poster

    Messages:
    15
    Thanks!!!
    it works out.....
     

Share This Page