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.

452 lines
18 KiB

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