XML 146 R124.htm IDEA: XBRL DOCUMENT
v3.21.1

Trade Receivables - Summary of Trade Receivables (Detail) - ARS ($) $ in Millions | Dec. 31, 2020 | Dec. 31, 2019 | Dec. 31, 2018
--- | --- | --- | ---
Disclosure of Trade receivables [line items] |  |  |
Accounts receivable and related parties, current gross | $ 108,146 | $ 118,077 | $ 72,646
Accounts receivable and related parties, non- current gross | 8,531 | 15,325 | 23,508
Accounts Receivable and Related Parties [member] |  |  |
Disclosure of Trade receivables [line items] |  |  |
Accounts receivable and related parties, current gross | 118,665 | 124,657 | 75,422
Accounts receivable and related parties, non- current gross | 17,392 | 15,325 | 23,508
Provision for Doubtful Trade Receivable [member] |  |  |
Disclosure of Trade receivables [line items] |  |  |
Current trade receivables | (10,519) | $ (6,580) | $ (2,776)
Accounts receivable and related parties, non- current gross | $ (8,861) |  |

X
- Definition The amount of an allowance account used to record impairments to financial assets due to credit losses. [Refer: Financial assets] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Note Expiry date 2021-01-01 -Name IFRS -Number 7 -IssueDate 2020-01-01 -Paragraph 16 -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2017-en-b&anchor=para_16&doctype=Standard&book=b -URIDate 2020-01-01 + Details
Name: | ifrs-full_AllowanceAccountForCreditLossesOfFinancialAssets
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The amount of current trade receivables. [Refer: Trade receivables] + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 1 -IssueDate 2020-01-01 -Paragraph 78 -Subparagraph b -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=1&code=ifrs-tx-2020-en-r&anchor=para_78_b&doctype=Standard -URIDate 2020-01-01 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 1 -IssueDate 2020-01-01 -Paragraph 68 -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=1&code=ifrs-tx-2020-en-r&anchor=para_68&doctype=Standard -URIDate 2020-01-01 + Details
Name: | ifrs-full_CurrentTradeReceivables
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount of non-current trade receivables. [Refer: Trade receivables] + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 1 -IssueDate 2020-01-01 -Paragraph 78 -Subparagraph b -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=1&code=ifrs-tx-2020-en-r&anchor=para_78_b&doctype=Standard -URIDate 2020-01-01 + Details
Name: | ifrs-full_NoncurrentTradeReceivables
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Disclosure of Trade receivables [line items] + References No definition available. + Details
Name: | ypf_DisclosureOfTradeReceivablesLineItems
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_ClassesOfAssetsAxis=ypf_AccountsReceivableAndRelatedPartiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfAssetsAxis=ypf_ProvisionForDoubtfulTradeReceivableMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |