<?php

namespace App\Models\Quotes;

use CodeIgniter\Model;

class OrderModel extends Model
{
    protected $table      = 't_orders';
    protected $primaryKey = 'PK_Order';

    protected $allowedFields = [
        'FK_Quote', 'Order_number','FK_Contact','Quote_number',
        'Origin_name','Origin_address','Origin_city','Origin_state','Origin_zip','Origin_country',
        'Destination_name','Destination_phone','Destination_address','Destination_city','Destination_state','Destination_zip','Destination_country',
        'Pieces','Weight_kg','Length_cm','Width_cm','Height_cm','Volumetric_weight',
        'Service_type',
        'Insurance_amount','Declared_value',
        'Operation_cost','Packaging_pct','Packaging_cost',
        'Margin_pct','Margin_amount',
        'Subtotal','Base_cost','Administrative_cost','Insurance_cost','Taxes',
        'Total_amount','Currency','Status','Comments'
    ];

    protected $useTimestamps = true;
}
