XML 181 R159.htm IDEA: XBRL DOCUMENT
v3.21.1

Costs - Detailed Information of Inventory Costs (Detail) - ARS ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2020 | Dec. 31, 2019 | Dec. 31, 2018
Disclosure of details of inventory costs [abstract] |  |  |  |
Inventories at beginning of year |  | $ 80,479 | $ 53,324 | $ 27,149
Purchases |  | 170,616 | 190,601 | 124,279
Production costs | [1] | 442,264 | 378,281 | 234,340
Translation effect |  | 32,427 | 33,385 | 26,514
Inventories incorporated by business combination | [2] |  |  | 445
Adjustment for inflation | [3] | 563 | 496 | 167
Inventories at end of the year |  | (100,137) | (80,479) | (53,324)
Total |  | $ 626,212 | $ 575,608 | $ 359,570
[1] | See Note 25.
[2] | See Note 3.
[3] | Corresponds to adjustment for inflation of inventories’ opening balances of subsidiaries with the Peso as functional currency, which was charged to other comprehensive income.

X
- Definition The amount of costs relating to expenses directly or indirectly attributed to the goods or services sold, which may include, but are not limited to, costs previously included in the measurement of inventory that has now been sold, unallocated production overheads and abnormal amounts of production costs of inventories. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2020-01-01 -Paragraph 99 -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=1&code=ifrs-tx-2020-en-r&anchor=para_99&doctype=Standard -URIDate 2020-01-01 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2020-01-01 -Paragraph 103 -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=1&code=ifrs-tx-2020-en-r&anchor=para_103&doctype=Standard -URIDate 2020-01-01 + Details
Name: | ifrs-full_CostOfSales
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The amount of current inventories. [Refer: Inventories] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 2 -IssueDate 2020-01-01 -Paragraph 36 -Subparagraph b -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=2&code=ifrs-tx-2020-en-r&anchor=para_36_b&doctype=Standard -URIDate 2020-01-01 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2020-01-01 -Paragraph 54 -Subparagraph g -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=1&code=ifrs-tx-2020-en-r&anchor=para_54_g&doctype=Standard -URIDate 2020-01-01 Reference 3: 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_Inventories
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Disclosure of details of inventory costs. + References No definition available. + Details
Name: | ypf_DisclosureOfDetailsOfInventoryCostsAbstract
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Inventories incorporated by business combination. + References No definition available. + Details
Name: | ypf_InventoriesIncorporatedByBusinessCombination
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Inventory inflation adjustment. + References No definition available. + Details
Name: | ypf_InventoryInflationAdjustment
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Inventory production costs. + References No definition available. + Details
Name: | ypf_InventoryProductionCosts
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Inventory purchases. + References No definition available. + Details
Name: | ypf_InventoryPurchases
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Inventory translation effect. + References No definition available. + Details
Name: | ypf_InventoryTranslationEffect
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration