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