Sha256: c8852ab69d2776b25489eddb57119e4c95abee3a4bab9dee69f56a712954c176

Contents?: true

Size: 624 Bytes

Versions: 65

Compression:

Stored size: 624 Bytes

Contents

module Comee
  module Core
    class GoodsReceivedNotesController < ApplicationController
      include Common

      def generate
        service = GoodsReceivedNoteService.new
        grn = service.generate_received_note(params[:id])
        render_content(grn)
      rescue StandardError => e
        render json: {success: false, error: e.message}
      end

      private

      def model_params
        params.require(:payload).permit(:grn_number, :date_of_receipt, :total_quantity, :total_amount, :received_condition, :comments,
                                        :purchase_order_id)
      end
    end
  end
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
comee_core-0.3.62 app/controllers/comee/core/goods_received_notes_controller.rb
comee_core-0.3.61 app/controllers/comee/core/goods_received_notes_controller.rb
comee_core-0.3.60 app/controllers/comee/core/goods_received_notes_controller.rb
comee_core-0.3.59 app/controllers/comee/core/goods_received_notes_controller.rb
comee_core-0.3.58 app/controllers/comee/core/goods_received_notes_controller.rb
comee_core-0.3.57 app/controllers/comee/core/goods_received_notes_controller.rb
comee_core-0.3.56 app/controllers/comee/core/goods_received_notes_controller.rb
comee_core-0.3.55 app/controllers/comee/core/goods_received_notes_controller.rb
comee_core-0.3.54 app/controllers/comee/core/goods_received_notes_controller.rb
comee_core-0.3.53 app/controllers/comee/core/goods_received_notes_controller.rb
comee_core-0.3.51 app/controllers/comee/core/goods_received_notes_controller.rb
comee_core-0.3.50 app/controllers/comee/core/goods_received_notes_controller.rb
comee_core-0.3.49 app/controllers/comee/core/goods_received_notes_controller.rb
comee_core-0.3.48 app/controllers/comee/core/goods_received_notes_controller.rb
comee_core-0.3.47 app/controllers/comee/core/goods_received_notes_controller.rb
comee_core-0.3.46 app/controllers/comee/core/goods_received_notes_controller.rb
comee_core-0.3.45 app/controllers/comee/core/goods_received_notes_controller.rb
comee_core-0.3.44 app/controllers/comee/core/goods_received_notes_controller.rb
comee_core-0.3.43 app/controllers/comee/core/goods_received_notes_controller.rb
comee_core-0.3.42 app/controllers/comee/core/goods_received_notes_controller.rb