Created
February 27, 2015 13:40
-
-
Save Rudiney/f3f3a198a6b46508e296 to your computer and use it in GitHub Desktop.
parametros para criar uma nfe no SageOne
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
params = { | |
'document' => 'ABC123', | |
'notes' => 'my nfe notes', | |
'expedited_at' => expedited_at.iso8601, | |
'nature' => 'new nature', | |
'client' => { | |
'kind' => 'organization', | |
'name' => 'Nome Fantasia', | |
'legal_name' => 'Razao Social', | |
'cnpj' => '15522500000160', | |
'email' => 'email@server.com', | |
'telephone' => 'myphone' | |
}, | |
'carrier' => { | |
'name' => 'Transportadora', | |
'cnpj' => '15522500000160', | |
}, | |
'items' => { | |
0 => { | |
'quantity' => 1, | |
'price' => 15.43, | |
'discount' => 13.36, | |
'product' => { | |
'code' => 'CBA', | |
'name' => 'odatropmI' | |
} | |
}, | |
1 => { | |
'quantity' => 2, | |
'price' => 7.50, | |
'discount' => 0.50, | |
'product' => { | |
'code' => 'ABC', | |
'name' => 'Importado' | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment