21 Matching Annotations
  1. Nov 2024
    1. Commission (%)

      Quote.custom_percent e luat automat din User.commission_rate dar pe masura ce Commission (USD) se modifica manual, se va modifica automat acest procent. In pagina e un mic js care face asta

    2. Land Price Per Person: $0.00 Land Cost Total: $0.00 Flight Cost: $0.00 Insurance Cost: $0.00 Grand Total: $0.00

      preturile sunt luate din QuoteExchange (ire_quote_exchange_rates), currency = USD

      Land Price Per Person = cost_per_person Land Cost Total = total_price - flight_cost - insurance_cost Flight Cost = flight_cost Insurance Cost = insurance_cost Grand Total = total_price

    3. Quote Status

      Quote.status in model am hardcodat acesta statusuri, doar ca aici sunt grupate. statusurile sunt in ire_quote_stauses dar mai bine ori le pui direct in model ca si nomenclator ori faci alt tabel.

      Asa sunt definite acum in model public static $grouped_statuses = array( 'Initial Inquiry Stage' => array( self::STATUS_PENDING_QUOTATION, self::STATUS_WIZARD_QUOTES, // self::STATUS_CLIENT_CONTACT_BY_PHONE, // self::STATUS_EMAILED_CLIENT, self::STATUS_CLOSED_NO_QUOTE_CREATED, self::STATUS_DISABLED ), 'Quoting Stage' => array( self::STATUS_QUOTED_PENDING_CUSTOMER, self::STATUS_HOT_LEAD_DEPOSIT_PAID, self::STATUS_CUSTOM_LEAD_DEPOSIT_PAID, // self::STATUS_DUPLICATED_QUOTE, ), 'Booking Stage' => array( self::STATUS_HOT_LEAD_DEPOSIT_PAID_REVIEWING, self::STATUS_CUSTOM_LEAD_DEPOSIT_PAID_REVIEWING, self::STATUS_ACCEPTED_DEPOSIT, self::STATUS_ACCEPTED_PAID, self::STATUS_CONFIRMED_PAID, self::STATUS_PENDING_REBOOK, // self::STATUS_RESCHEDULING, self::STATUS_CANCELLED, // self::STATUS_CANCELLED_WITH_REVENUE ), );

    4. Client Name

      Pentru ca avem un quote B2B client name este pus direct in tabela de ire_quotes (modelul Quote) si anume Quote.requestor_client_name