comee_core 0.3.13 → 0.3.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: e4b933796931ae7b24c03d2e6901df6b6f4c1b27f314b1b967eabb13da3654fd
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: f257c672d231e620f292d3ca60aadc72620ef4f5fbaa68a7dc0076cc3ddf4542
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 24013af0d8419d7d880de21c574cfa21b39c9d70cf67dda64ed2f32a8b1b78dc90b6622c8e25fa638b7db6821e46ad43a880ab1bfabb6ef8b34b914bb0ff233d
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 1c9e73ac25c7f40809265ba6a844f458ba51a6e0e0daadaa67c09643b9964a9f4b2ac7a8bd1c6d665a28d1a602726338d62d24ba639b50bc03d5ae90ac750d41
         
     | 
| 
         @@ -5,13 +5,16 @@ module Comee 
     | 
|
| 
       5 
5 
     | 
    
         | 
| 
       6 
6 
     | 
    
         
             
                  def index
         
     | 
| 
       7 
7 
     | 
    
         
             
                    super do
         
     | 
| 
       8 
     | 
    
         
            -
                      Client.includes( 
     | 
| 
      
 8 
     | 
    
         
            +
                      Client.includes(
         
     | 
| 
      
 9 
     | 
    
         
            +
                        :parent, :agents, :contacts, :client_warehouses, :client_addresses, :country, :user, :currency
         
     | 
| 
      
 10 
     | 
    
         
            +
                      ).all
         
     | 
| 
       9 
11 
     | 
    
         
             
                    end
         
     | 
| 
       10 
12 
     | 
    
         
             
                  end
         
     | 
| 
       11 
13 
     | 
    
         | 
| 
       12 
14 
     | 
    
         
             
                  def filter
         
     | 
| 
       13 
     | 
    
         
            -
                    clients = Client.includes( 
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
      
 15 
     | 
    
         
            +
                    clients = Client.includes(
         
     | 
| 
      
 16 
     | 
    
         
            +
                      :parent, :agents, :contacts, :client_warehouses, :client_addresses, :country, :user, :currency
         
     | 
| 
      
 17 
     | 
    
         
            +
                    ).ransack(params[:q]).result
         
     | 
| 
       15 
18 
     | 
    
         
             
                    render_content(clients)
         
     | 
| 
       16 
19 
     | 
    
         
             
                  end
         
     | 
| 
       17 
20 
     | 
    
         | 
| 
         @@ -13,7 +13,8 @@ module Comee 
     | 
|
| 
       13 
13 
     | 
    
         
             
                  end
         
     | 
| 
       14 
14 
     | 
    
         | 
| 
       15 
15 
     | 
    
         
             
                  def filter
         
     | 
| 
       16 
     | 
    
         
            -
                    shipment_item = ShipmentItem.includes(: 
     | 
| 
      
 16 
     | 
    
         
            +
                    shipment_item = ShipmentItem.includes(sales_order_item: [:unit, :product, sales_order: :client])
         
     | 
| 
      
 17 
     | 
    
         
            +
                                                .ransack(params[:q]).result
         
     | 
| 
       17 
18 
     | 
    
         
             
                    options = {include: ["sales_order_item.sales_order.client", "sales_order_item.product", "sales_order_item.unit"]}
         
     | 
| 
       18 
19 
     | 
    
         
             
                    render_content(shipment_item, options)
         
     | 
| 
       19 
20 
     | 
    
         
             
                  end
         
     | 
| 
         @@ -4,7 +4,7 @@ module Comee 
     | 
|
| 
       4 
4 
     | 
    
         
             
                  attributes :id, :order_number, :order_date, :order_terms, :shipment_address, :delivery_address, :invoice_address,
         
     | 
| 
       5 
5 
     | 
    
         
             
                             :destination, :handover_date, :shipping_date, :delivery_date, :consignee, :parent_client_name, :payment_term,
         
     | 
| 
       6 
6 
     | 
    
         
             
                             :delivery_term, :payment_penalty, :status, :purchase_status, :total_price, :amount_paid, :pallete_note,
         
     | 
| 
       7 
     | 
    
         
            -
                             :consolidator_date, :voyage_no, :shipping_arrangement, :remark, :created_by, :files_url, :created_at
         
     | 
| 
      
 7 
     | 
    
         
            +
                             :vat, :consolidator_date, :voyage_no, :shipping_arrangement, :remark, :created_by, :files_url, :created_at
         
     | 
| 
       8 
8 
     | 
    
         
             
                  belongs_to :customer_order
         
     | 
| 
       9 
9 
     | 
    
         
             
                  belongs_to :client
         
     | 
| 
       10 
10 
     | 
    
         
             
                  belongs_to :fulfillment_center
         
     | 
    
        data/lib/comee/core/version.rb
    CHANGED