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.

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