[IMP] accounting: update cheat sheet

This PR change the cheat sheet of the accounting documentation.
Change done:
* Change name of the file: memento to cheat_sheet
* Adding explanation to the doc (Ex: Invoices and bills status)
* Correcting some sentences

closes odoo/documentation#3625

Task-id: 2847663
X-original-commit: 2fa9de17e1
Signed-off-by: Castillo Jonathan (jcs) <jcs@odoo.com>
This commit is contained in:
Donatienne Pirlot
2022-12-22 10:46:58 +00:00
committed by Jonathan Castillo (jcs)
parent cd81a97399
commit 655f923d11
13 changed files with 268 additions and 262 deletions

View File

@@ -1,6 +1,6 @@
/* global Immutable, React */
(function () {
// NOTE: used by memento.rst
// NOTE: used by cheat_sheet.rst
'use strict';
function highlight(primary, secondary) {

View File

@@ -1,7 +1,7 @@
/* global Immutable, React */
/* global createAtom */
(function () {
// NOTE: used by memento.rst
// NOTE: used by cheat_sheet.rst
'use strict';
var data = createAtom();
@@ -145,8 +145,8 @@
var controls = document.createElement('div');
controls.setAttribute('id', 'chart-controls');
chart.insertBefore(controls, chart.lastElementChild);
chart.children[1].insertBefore(controls, chart.children[1].lastElementChild);
data.reset(Immutable.Map({
// last-selected operation
active: null,
@@ -245,14 +245,14 @@
]
}, {
id: 'refund',
label: "Customer Refund",
label: "Customer Refund*",
operations: [
{ account: REVENUE.SALES.code, debit: constant(refund) },
{ account: LIABILITIES.TAXES_PAYABLE.code, debit: constant(refund_tax) },
{ account: ASSETS.ACCOUNTS_RECEIVABLE.code, credit: constant(refund + refund_tax) }
]
}, {
label: "Customer Payment",
label: "Customer Payment*",
operations: [
{
account: ASSETS.BANK.code, debit: function (ops) {

View File

@@ -2,7 +2,7 @@
/* global createAtom, findAncestor */
(function () {
'use strict';
// NOTE: memento.rst
// NOTE: cheat_sheet.rst
var data = createAtom();
data.addWatch('chart', function (k, m, prev, next) {
@@ -175,7 +175,7 @@
],
explanation: [
"The company receives $109 in cash",
"The customer owes $109 less"
"The receivable held against the client is reduced by $109"
],
configuration: [
"Cash: defined on the journal used when registering the payment, fields Default Credit Account and Default Debit Account",

View File

@@ -67,7 +67,7 @@
});
}
function checks_handling() {
// NOTE: used by memento.rst
// NOTE: used by cheat_sheet.rst
var $section = $('.checks-handling');
if (!$section.length) { return; }

View File

@@ -1,5 +1,5 @@
(function () {
// NOTE: memento.rst
// NOTE: cheat_sheet.rst
document.addEventListener('DOMContentLoaded', function () {
var $rec = $('#reconciliation .reconciliation-example');
if (!$rec.length) { return; }