From 78d4b56e922bb6bdcecc559e6bced2fa1702e0f8 Mon Sep 17 00:00:00 2001 From: elforjani3 Date: Mon, 29 Mar 2021 19:44:58 +0200 Subject: [PATCH] reforting(style): sales & purchases by item & inventory valuation. --- .../InventoryValuation/InventoryValuation.js | 2 +- .../PurchasesByItems/PurchasesByItems.js | 2 +- .../SalesByItems/SalesByItems.js | 3 ++- .../FinancialStatements/PurchasesByItems.scss | 27 ------------------- ...ation.scss => SalesAndPurchasesSheet.scss} | 2 ++ .../FinancialStatements/SalesByItems.scss | 27 ------------------- 6 files changed, 6 insertions(+), 57 deletions(-) delete mode 100644 client/src/style/pages/FinancialStatements/PurchasesByItems.scss rename client/src/style/pages/FinancialStatements/{InventoryValuation.scss => SalesAndPurchasesSheet.scss} (92%) delete mode 100644 client/src/style/pages/FinancialStatements/SalesByItems.scss diff --git a/client/src/containers/FinancialStatements/InventoryValuation/InventoryValuation.js b/client/src/containers/FinancialStatements/InventoryValuation/InventoryValuation.js index a40d58281..08352414c 100644 --- a/client/src/containers/FinancialStatements/InventoryValuation/InventoryValuation.js +++ b/client/src/containers/FinancialStatements/InventoryValuation/InventoryValuation.js @@ -1,7 +1,7 @@ import React, { useEffect, useState, useCallback } from 'react'; import moment from 'moment'; -import 'style/pages/FinancialStatements/InventoryValuation.scss'; +import 'style/pages/FinancialStatements/SalesAndPurchasesSheet.scss'; import { InventoryValuationProvider } from './InventoryValuationProvider'; import InventoryValuationActionsBar from './InventoryValuationActionsBar'; diff --git a/client/src/containers/FinancialStatements/PurchasesByItems/PurchasesByItems.js b/client/src/containers/FinancialStatements/PurchasesByItems/PurchasesByItems.js index b1fa012bf..b6d9546c4 100644 --- a/client/src/containers/FinancialStatements/PurchasesByItems/PurchasesByItems.js +++ b/client/src/containers/FinancialStatements/PurchasesByItems/PurchasesByItems.js @@ -1,7 +1,7 @@ import React, { useEffect, useState, useCallback } from 'react'; import moment from 'moment'; -import 'style/pages/FinancialStatements/PurchasesByItems.scss'; +import 'style/pages/FinancialStatements/SalesAndPurchasesSheet.scss'; import { PurchasesByItemsProvider } from './PurchasesByItemsProvider'; import PurchasesByItemsActionsBar from './PurchasesByItemsActionsBar'; diff --git a/client/src/containers/FinancialStatements/SalesByItems/SalesByItems.js b/client/src/containers/FinancialStatements/SalesByItems/SalesByItems.js index 871315729..7fb334fc1 100644 --- a/client/src/containers/FinancialStatements/SalesByItems/SalesByItems.js +++ b/client/src/containers/FinancialStatements/SalesByItems/SalesByItems.js @@ -1,7 +1,8 @@ import React, { useEffect, useState, useCallback } from 'react'; import moment from 'moment'; -import 'style/pages/FinancialStatements/SalesByItems.scss'; + +import 'style/pages/FinancialStatements/SalesAndPurchasesSheet.scss'; import { SalesByItemProvider } from './SalesByItemProvider'; import SalesByItemsActionsBar from './SalesByItemsActionsBar'; diff --git a/client/src/style/pages/FinancialStatements/PurchasesByItems.scss b/client/src/style/pages/FinancialStatements/PurchasesByItems.scss deleted file mode 100644 index 12ab84fcd..000000000 --- a/client/src/style/pages/FinancialStatements/PurchasesByItems.scss +++ /dev/null @@ -1,27 +0,0 @@ -.financial-sheet { - &--purchases-by-items { - min-width: 800px; - - .financial-sheet__table { - .thead, - .tbody { - .tr .td:not(:first-child), - .tr .th:not(:first-child) { - text-align: right; - } - } - .tbody { - .tr .td { - border-bottom: 0; - padding-top: 0.4rem; - padding-bottom: 0.4rem; - } - .tr.row_type--total .td { - border-top: 1px solid #000; - font-weight: 500; - border-bottom: 3px double #000; - } - } - } - } -} diff --git a/client/src/style/pages/FinancialStatements/InventoryValuation.scss b/client/src/style/pages/FinancialStatements/SalesAndPurchasesSheet.scss similarity index 92% rename from client/src/style/pages/FinancialStatements/InventoryValuation.scss rename to client/src/style/pages/FinancialStatements/SalesAndPurchasesSheet.scss index 44623b6f2..3607c8a94 100644 --- a/client/src/style/pages/FinancialStatements/InventoryValuation.scss +++ b/client/src/style/pages/FinancialStatements/SalesAndPurchasesSheet.scss @@ -1,4 +1,6 @@ .financial-sheet { + &--sales-by-items, + &--purchases-by-items, &--inventory-valuation { min-width: 800px; diff --git a/client/src/style/pages/FinancialStatements/SalesByItems.scss b/client/src/style/pages/FinancialStatements/SalesByItems.scss deleted file mode 100644 index fda5840c8..000000000 --- a/client/src/style/pages/FinancialStatements/SalesByItems.scss +++ /dev/null @@ -1,27 +0,0 @@ -.financial-sheet { - &--sales-by-items { - min-width: 800px; - - .financial-sheet__table { - .thead, - .tbody { - .tr .td:not(:first-child), - .tr .th:not(:first-child) { - text-align: right; - } - } - .tbody { - .tr .td { - border-bottom: 0; - padding-top: 0.4rem; - padding-bottom: 0.4rem; - } - .tr.row_type--total .td { - border-top: 1px solid #000; - font-weight: 500; - border-bottom: 3px double #000; - } - } - } - } -} \ No newline at end of file