Sha256: a5d90687355bbb699d2c6fb6c442f519f8c183457a2ae46b274ef59746700359

Contents?: true

Size: 633 Bytes

Versions: 1

Compression:

Stored size: 633 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

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