You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

465 lines
18 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <template id="report_journal_ledger_qweb">
  4. <t t-call="web.html_container">
  5. <t t-foreach="docs" t-as="o">
  6. <t t-call="account_financial_report.internal_layout">
  7. <t t-call="account_financial_report.report_journal_ledger_base"/>
  8. </t>
  9. </t>
  10. </t>
  11. </template>
  12. <template id="report_journal_ledger_base">
  13. <t t-set="display_currency" t-value="o.foreign_currency"/>
  14. <t t-set="display_account_name" t-value="o.with_account_name"/>
  15. <t t-set="title">Journal Ledger - <t t-raw="o.company_id.name"/> - <t t-raw="o.company_id.currency_id.name"/></t>
  16. <t t-set="company_name" t-value="o.company_id.name"/>
  17. <div class="page">
  18. <div class="row">
  19. <h4 class="mt0" t-esc="title or 'Odoo Report'" style="text-align: center;"/>
  20. </div>
  21. <t t-if="o.group_option == 'none'">
  22. <div class="page_break">
  23. <t t-call="account_financial_report.report_journal_all"/>
  24. <br/>
  25. <t t-call="account_financial_report.report_journal_all_taxes"/>
  26. </div>
  27. </t>
  28. <t t-if="o.group_option == 'journal'">
  29. <t t-foreach="o.report_journal_ledger_ids" t-as="journal">
  30. <div class="page_break">
  31. <t t-call="account_financial_report.report_journal_ledger_journal"/>
  32. <br/>
  33. <t t-call="account_financial_report.report_journal_ledger_journal_taxes"/>
  34. <br/>
  35. </div>
  36. </t>
  37. </t>
  38. </div>
  39. </template>
  40. <template id="account_financial_report.report_journal_all">
  41. <div class="act_as_table list_table" style="margin-top: 10px;"/>
  42. <div class="act_as_table data_table" style="width: 100%;">
  43. <t t-call="account_financial_report.report_journal_ledger_journal_table_header"/>
  44. <t t-foreach="o.report_move_ids" t-as="move">
  45. <t t-call="account_financial_report.report_journal_move"/>
  46. </t>
  47. </div>
  48. </template>
  49. <template id="account_financial_report.report_journal_ledger_journal">
  50. <div class="act_as_table list_table" style="margin-top: 10px;"/>
  51. <div class="act_as_caption account_title" style="width: 100%;">
  52. <span t-field="journal.name"/> (<span t-field="journal.currency_id.display_name"/>) - <span t-field="o.date_from"/> to <span t-field="o.date_to"/> - <span t-field="o.move_target"/> Moves
  53. </div>
  54. <div class="act_as_table data_table" style="width: 100%;">
  55. <t t-call="account_financial_report.report_journal_ledger_journal_table_header"/>
  56. <t t-call="account_financial_report.report_journal_ledger_journal_first_line"/>
  57. <t t-foreach="journal.report_move_ids" t-as="move">
  58. <t t-call="account_financial_report.report_journal_move"/>
  59. </t>
  60. </div>
  61. </template>
  62. <template id="account_financial_report.report_journal_ledger_journal_table_header">
  63. <t t-if="not display_account_name">
  64. <t t-set="account_column_style">
  65. width: 8.11%;
  66. </t>
  67. <t t-set="label_column_style">
  68. width: 38.92%;
  69. </t>
  70. </t>
  71. <t t-else="">
  72. <t t-set="account_column_style">
  73. width: 23.78%;
  74. </t>
  75. <t t-set="label_column_style">
  76. width: 23.24%;
  77. </t>
  78. </t>
  79. <div class="act_as_thead">
  80. <div class="act_as_row labels">
  81. <div class="act_as_cell first_column"
  82. name="entry"
  83. style="width: 7.57%;">
  84. Entry
  85. </div>
  86. <div class="act_as_cell"
  87. name="date"
  88. style="width: 5.41%;">
  89. Date
  90. </div>
  91. <div class="act_as_cell"
  92. name="account" t-att-style="account_column_style">
  93. Account
  94. </div>
  95. <div class="act_as_cell"
  96. name="partner"
  97. style="width: 15.14%;">
  98. Partner
  99. </div>
  100. <div class="act_as_cell"
  101. name="label" t-att-style="label_column_style">
  102. Ref - Label
  103. </div>
  104. <div class="act_as_cell"
  105. name="taxes"
  106. style="width: 7.57%;">
  107. Taxes
  108. </div>
  109. <div class="act_as_cell"
  110. name="debit"
  111. style="width: 8.65%;">
  112. Debit
  113. </div>
  114. <div class="act_as_cell"
  115. name="credit"
  116. style="width: 8.65%;">
  117. Credit
  118. </div>
  119. <t t-if="display_currency">
  120. <div class="act_as_cell"
  121. name="currency_name"
  122. style="width: 2.16%;">
  123. Cur.
  124. </div>
  125. <div class="act_as_cell"
  126. name="amount_currency"
  127. style="width: 6.49%;">
  128. Amount Cur.
  129. </div>
  130. </t>
  131. </div>
  132. </div>
  133. </template>
  134. <template id="account_financial_report.report_journal_ledger_journal_first_line">
  135. <div class="act_as_row lines">
  136. <div class="act_as_cell"
  137. name="entry"/>
  138. <div class="act_as_cell"
  139. name="date"/>
  140. <div class="act_as_cell"
  141. name="account"/>
  142. <div class="act_as_cell"
  143. name="partner"/>
  144. <div class="act_as_cell"
  145. name="label"/>
  146. <div class="act_as_cell"
  147. name="taxes"/>
  148. <div class="act_as_cell amount"
  149. name="debit">
  150. <b><span t-field="journal.debit"/></b>
  151. </div>
  152. <div class="act_as_cell amount"
  153. name="credit">
  154. <b><span t-field="journal.credit"/></b>
  155. </div>
  156. <t t-if="display_currency">
  157. <div class="act_as_cell"
  158. name="currency_name">
  159. </div>
  160. <div class="act_as_cell amount"
  161. name="amount_currency">
  162. </div>
  163. </t>
  164. </div>
  165. <div style="width: 100%"/>
  166. </template>
  167. <template id="account_financial_report.report_journal_move">
  168. <t t-set="display_move_info" t-value="True"/>
  169. <t t-set="last_partner" t-eval="None"/>
  170. <t t-set="display_partner" t-eval="True"/>
  171. <t t-foreach="move.report_move_line_ids" t-as="move_line">
  172. <div class="act_as_row lines">
  173. <t t-set="current_partner" t-value="move_line.partner_id"/>
  174. <t t-set="display_partner" t-value="current_partner != last_partner"/>
  175. <t t-call="account_financial_report.report_journal_move_line"/>
  176. <t t-set="last_partner" t-value="current_partner"/>
  177. <t t-set="display_move_info" t-value="False"/>
  178. </div>
  179. </t>
  180. </template>
  181. <template id="account_financial_report.report_journal_move_line">
  182. <div class="act_as_cell left"
  183. name="entry">
  184. <span t-if="display_move_info" t-field="move_line.entry"/>
  185. </div>
  186. <div class="act_as_cell left"
  187. name="date">
  188. <span t-if="display_move_info" t-field="move_line.date"/>
  189. </div>
  190. <div class="act_as_cell left"
  191. name="account">
  192. <span t-field="move_line.account_code"/>
  193. <span t-if="display_account_name">
  194. - <span t-field="move_line.account"/>
  195. </span>
  196. </div>
  197. <div class="act_as_cell left"
  198. name="partner">
  199. <span t-if="display_partner" t-field="move_line.partner"/>
  200. </div>
  201. <div class="act_as_cell left"
  202. name="label">
  203. <span t-field="move_line.label"/>
  204. </div>
  205. <div class="act_as_cell left"
  206. name="taxes">
  207. <span t-field="move_line.taxes_description"/>
  208. </div>
  209. <div class="act_as_cell amount"
  210. name="debit">
  211. <t t-if="move_line.debit">
  212. <span t-field="move_line.debit"/>
  213. </t>
  214. </div>
  215. <div class="act_as_cell amount"
  216. name="credit">
  217. <t t-if="move_line.credit">
  218. <span t-field="move_line.credit"/>
  219. </t>
  220. </div>
  221. <t t-if="display_currency">
  222. <div class="act_as_cell"
  223. name="currency_name">
  224. <t t-if="move_line.currency_name">
  225. <span t-field="move_line.currency_name"/>
  226. </t>
  227. </div>
  228. <div class="act_as_cell amount"
  229. name="amount_currency">
  230. <t t-if="move_line.amount_currency">
  231. <span t-field="move_line.amount_currency"/>
  232. </t>
  233. </div>
  234. </t>
  235. </template>
  236. <template id="account_financial_report.report_journal_ledger_journal_taxes">
  237. <b>Taxes summary</b>
  238. <div class="act_as_table data_table" style="width: 100%;">
  239. <div class="act_as_thead">
  240. <div class="act_as_row labels">
  241. <div class="act_as_cell first_column"
  242. name="name"
  243. style="width: 30.97%;">
  244. Name
  245. </div>
  246. <div class="act_as_cell"
  247. name="description"
  248. style="width: 13.27%;">
  249. Description
  250. </div>
  251. <div class="act_as_cell"
  252. name="base_amount"
  253. style="width: 27.88%;">
  254. Base Amount
  255. </div>
  256. <div class="act_as_cell"
  257. name="tax_amount"
  258. style="width: 27.88%;">
  259. Tax Amount
  260. </div>
  261. </div>
  262. </div>
  263. </div>
  264. <div class="act_as_table data_table" style="width: 100%;">
  265. <div class="act_as_row labels">
  266. <div class="act_as_cell first_column"
  267. name="name"
  268. style="width: 30.97%;"/>
  269. <div class="act_as_cell"
  270. name="description"
  271. style="width: 13.27%;"/>
  272. <div class="act_as_cell"
  273. name="base_debit"
  274. style="width: 9.29%;">
  275. Debit
  276. </div>
  277. <div class="act_as_cell"
  278. name="base_credit"
  279. style="width: 9.29%;">
  280. Credit
  281. </div>
  282. <div class="act_as_cell"
  283. name="base_balance"
  284. style="width: 9.29%;">
  285. Balance
  286. </div>
  287. <div class="act_as_cell"
  288. name="tax_debit"
  289. style="width: 9.29%;">
  290. Debit
  291. </div>
  292. <div class="act_as_cell"
  293. name="tax_credit"
  294. style="width: 9.29%;">
  295. Credit
  296. </div>
  297. <div class="act_as_cell"
  298. name="tax_balance"
  299. style="width: 9.29%;">
  300. Balance
  301. </div>
  302. </div>
  303. <t t-foreach="journal.report_tax_line_ids" t-as="tax_line">
  304. <div class="act_as_row lines">
  305. <div class="act_as_cell left"
  306. name="tax_name">
  307. <span t-field="tax_line.tax_name"/>
  308. </div>
  309. <div class="act_as_cell left"
  310. name="tax_code">
  311. <span t-field="tax_line.tax_code"/>
  312. </div>
  313. <div class="act_as_cell amount"
  314. name="base_debit">
  315. <span t-field="tax_line.base_debit"/>
  316. </div>
  317. <div class="act_as_cell amount"
  318. name="base_credit">
  319. <span t-field="tax_line.base_credit"/>
  320. </div>
  321. <div class="act_as_cell amount"
  322. name="base_balance">
  323. <span t-field="tax_line.base_balance"/>
  324. </div>
  325. <div class="act_as_cell amount"
  326. name="tax_debit">
  327. <span t-field="tax_line.tax_debit"/>
  328. </div>
  329. <div class="act_as_cell amount"
  330. name="tax_credit">
  331. <span t-field="tax_line.tax_credit"/>
  332. </div>
  333. <div class="act_as_cell amount"
  334. name="tax_balance">
  335. <span t-field="tax_line.tax_balance"/>
  336. </div>
  337. </div>
  338. </t>
  339. </div>
  340. </template>
  341. <template id="account_financial_report.report_journal_all_taxes">
  342. <b>Taxes summary</b>
  343. <div class="act_as_table data_table" style="width: 100%;">
  344. <div class="act_as_thead">
  345. <div class="act_as_row labels">
  346. <div class="act_as_cell first_column"
  347. name="name"
  348. style="width: 30.97%;">
  349. Name
  350. </div>
  351. <div class="act_as_cell"
  352. name="description"
  353. style="width: 13.27%;">
  354. Description
  355. </div>
  356. <div class="act_as_cell"
  357. name="base_amount"
  358. style="width: 27.88%;">
  359. Base Amount
  360. </div>
  361. <div class="act_as_cell"
  362. name="tax_amount"
  363. style="width: 27.88%;">
  364. Tax Amount
  365. </div>
  366. </div>
  367. </div>
  368. </div>
  369. <div class="act_as_table data_table" style="width: 100%;">10
  370. <div class="act_as_row labels">
  371. <div class="act_as_cell first_column"
  372. name="name"
  373. style="width: 30.97%;"/>
  374. <div class="act_as_cell"
  375. name="description"
  376. style="width: 13.27%;"/>
  377. <div class="act_as_cell"
  378. name="base_debit"
  379. style="width: 9.29%;">
  380. Debit
  381. </div>
  382. <div class="act_as_cell"
  383. name="base_credit"
  384. style="width: 9.29%;">
  385. Credit
  386. </div>
  387. <div class="act_as_cell"
  388. name="base_balance"
  389. style="width: 9.29%;">
  390. Balance
  391. </div>
  392. <div class="act_as_cell"
  393. name="tax_debit"
  394. style="width: 9.29%;">
  395. Debit
  396. </div>
  397. <div class="act_as_cell"
  398. name="tax_credit"
  399. style="width: 9.29%;">
  400. Credit
  401. </div>
  402. <div class="act_as_cell"
  403. name="tax_balance"
  404. style="width: 9.29%;">
  405. Balance
  406. </div>
  407. </div>
  408. <t t-foreach="o.report_tax_line_ids" t-as="tax_line">
  409. <div class="act_as_row lines">
  410. <div class="act_as_cell left"
  411. name="tax_name">
  412. <span t-field="tax_line.tax_name"/>
  413. </div>
  414. <div class="act_as_cell left"
  415. name="tax_code">
  416. <span t-field="tax_line.tax_code"/>
  417. </div>
  418. <div class="act_as_cell amount"
  419. name="base_debit">
  420. <span t-field="tax_line.base_debit"/>
  421. </div>
  422. <div class="act_as_cell amount"
  423. name="base_credit">
  424. <span t-field="tax_line.base_credit"/>
  425. </div>
  426. <div class="act_as_cell amount"
  427. name="base_balance">
  428. <span t-field="tax_line.base_balance"/>
  429. </div>
  430. <div class="act_as_cell amount"
  431. name="tax_debit">
  432. <span t-field="tax_line.tax_debit"/>
  433. </div>
  434. <div class="act_as_cell amount"
  435. name="tax_credit">
  436. <span t-field="tax_line.tax_credit"/>
  437. </div>
  438. <div class="act_as_cell amount"
  439. name="tax_balance">
  440. <span t-field="tax_line.tax_balance"/>
  441. </div>
  442. </div>
  443. </t>
  444. </div>
  445. </template>
  446. </odoo>