mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
Merge branch 'master' of https://github.com/abouolia/Bigcapital
This commit is contained in:
@@ -140,6 +140,14 @@ export const profitLossSheetReducer = (profitLoss) => {
|
||||
],
|
||||
});
|
||||
}
|
||||
if (profitLoss.net_other_income) {
|
||||
results.push({
|
||||
name: 'Net other income',
|
||||
total: profitLoss.net_other_income.total,
|
||||
total_periods: profitLoss.net_other_income.total_periods,
|
||||
rowTypes: ['net_other_income', 'section_total', 'total'],
|
||||
});
|
||||
}
|
||||
if (profitLoss.net_income) {
|
||||
results.push({
|
||||
name: 'Net Income',
|
||||
@@ -209,6 +217,7 @@ export const generalLedgerTableRowsReducer = (accounts) => {
|
||||
...account.opening_balance,
|
||||
name: 'Opening balance',
|
||||
rowType: 'OPENING_BALANCE',
|
||||
date: moment(account.opening_balance.date).format('DD MMM YYYY'),
|
||||
},
|
||||
...account.transactions.map((transaction) => ({
|
||||
...transaction,
|
||||
@@ -220,8 +229,11 @@ export const generalLedgerTableRowsReducer = (accounts) => {
|
||||
...account.closing_balance,
|
||||
name: 'Closing balance',
|
||||
rowType: 'CLOSING_BALANCE',
|
||||
date: moment(account.closing_balance.date).format('DD MMM YYYY'),
|
||||
},
|
||||
],
|
||||
amount: account.closing_balance.amount,
|
||||
formatted_amount: account.closing_balance.formatted_amount,
|
||||
};
|
||||
})
|
||||
.value();
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
.tr.is-expanded{
|
||||
.td.total,
|
||||
.td.total-period{
|
||||
> span.cell-text{
|
||||
.cell-text{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,6 +34,18 @@
|
||||
.tr:not(.no-results) .td{
|
||||
border-left: 1px solid #ececec;
|
||||
}
|
||||
|
||||
.tr{
|
||||
&.is-expanded{
|
||||
|
||||
.td.amount{
|
||||
|
||||
.cell-inner{
|
||||
display: none
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.tr.row-type{
|
||||
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
.tr.is-expanded{
|
||||
.td.total,
|
||||
.td.total-period{
|
||||
> span{
|
||||
.cell-text{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user