Sha256: d120eb2e6423f04cdbb5008c6ca2ab619088e39e4f376cc999653d31a7fca50c

Contents?: true

Size: 825 Bytes

Versions: 1

Compression:

Stored size: 825 Bytes

Contents

module Nodes
  class Concept < ::BuhoCfdi::BaseNode
    attr_accessor(
      :prod_or_svc_key,         # ClaveProdServ     -   required
      :identification_number,   # NoIdentificacion  -   optional
      :quantity,                # Cantidad          -   required
      :unit_measure_key,        # ClaveUnidad       -   required
      :unit_measure,            # Unidad            -   optional
      :description,             # Descripcion       -   required
      :unit_value,              # ValorUnitario     -   required
      :amount,                  # Importe           -   required
      :discount                 # Descuento         -   optional
    )
 
    validates_presence_of(
      :prod_or_svc_key,
      :quantity,
      :unit_measure_key,
      :description,
      :unit_value,
      :amount
    )
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
buho_cfdi-0.1.12 lib/buho_cfdi/nodes/concept.rb