Skip to content

Use cae_due_date as CAE expire date#16

Merged
bronzdoc merged 2 commits intofastruby:masterfrom
tcordeu:cae_due_date
Nov 29, 2019
Merged

Use cae_due_date as CAE expire date#16
bronzdoc merged 2 commits intofastruby:masterfrom
tcordeu:cae_due_date

Conversation

@tcordeu
Copy link
Copy Markdown

@tcordeu tcordeu commented Jul 24, 2019

The expiry date of the service payment is not the same as the CAE expiry date, so it should not be used as a replacement for it.
Generally, the CAE's expiry date is ten days away from the date of its generation.

Thomas Cordeu added 2 commits July 24, 2019 09:58
The expiry date of the service payment is not the same as the CAE expiry
date, so it should not be used as a replacement for it.
@etagwerker etagwerker requested a review from lubc September 28, 2019 18:13
Copy link
Copy Markdown
Member

@etagwerker etagwerker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tcordeu Thanks for your PR! Sorry for the delay. I thought @lubc or @bronzdoc had reviewed this already.

Comment thread README.md
```ruby
json_bill = {
cae: "1234567890123", # CAE number
cae_due_date: "20171125", # CAE expiry date
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tcordeu Could you point us in the right direction here? I haven't been keeping up with the latest AFIP API changes. Do you have a screenshot, sample, or link to official documentation? Trying to understand if this is a new field, or the same field (fch_vto_pago) being renamed.

If you are adding cae_due_date here, shouldn't you remove fch_vto_pago from the README?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tcordeu As @etagwerker said, we should get rid of fch_vto_pago from the README.

pto_venta: AfipBill.configuration[:sale_point],
cae: afip_bill["cae"],
vto_cae: afip_bill["fch_vto_pago"]
vto_cae: afip_bill["cae_due_date"]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tcordeu This looks good to me. @lubc what do you think?

Copy link
Copy Markdown
Contributor

@lubc lubc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tcordeu Looks good! I only added one comment

Comment thread README.md
```ruby
json_bill = {
cae: "1234567890123", # CAE number
cae_due_date: "20171125", # CAE expiry date
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tcordeu As @etagwerker said, we should get rid of fch_vto_pago from the README.

@bronzdoc bronzdoc merged commit 28eee32 into fastruby:master Nov 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants