Compare commits

..

No commits in common. "18431bf10d5e18f11df2605a818f354fa1f3cc66" and "e85eda5bb0009345bfc9c293318ffb4b17ad28dd" have entirely different histories.

47 changed files with 59 additions and 73 deletions

View File

@ -48,7 +48,7 @@ const InvoiceInfo = () => {
invoiceShipments: true,
payments: true,
notes: true,
auditLogs: false
auditLogs: true
})
const [objectFormState, setEditFormState] = useState({

View File

@ -39,7 +39,7 @@ const PaymentInfo = () => {
const [collapseState, updateCollapseState] = useCollapseState('PaymentInfo', {
info: true,
notes: true,
auditLogs: false
auditLogs: true
})
const [objectFormState, setEditFormState] = useState({

View File

@ -35,7 +35,7 @@ const TaxRecordInfo = () => {
{
info: true,
notes: true,
auditLogs: false
auditLogs: true
}
)
const [objectFormState, setEditFormState] = useState({

View File

@ -34,7 +34,7 @@ const FilamentStockInfo = () => {
info: true,
events: true,
notes: true,
auditLogs: false
auditLogs: true
}
)
const [objectFormState, setEditFormState] = useState({

View File

@ -35,7 +35,7 @@ const OrderItemInfo = () => {
{
info: true,
notes: true,
auditLogs: false
auditLogs: true
}
)

View File

@ -37,7 +37,7 @@ const PartStockInfo = () => {
info: true,
stocks: true,
notes: true,
auditLogs: false
auditLogs: true
}
)

View File

@ -10,10 +10,7 @@ import InfoCollapse from '../../common/InfoCollapse.jsx'
import ObjectInfo from '../../common/ObjectInfo.jsx'
import ObjectProperty from '../../common/ObjectProperty.jsx'
import ViewButton from '../../common/ViewButton.jsx'
import {
getModelProperty,
getModelByName
} from '../../../../database/ObjectModels.js'
import { getModelProperty, getModelByName } from '../../../../database/ObjectModels.js'
import PostProductStock from './PostProductStock.jsx'
import InfoCircleIcon from '../../../Icons/InfoCircleIcon.jsx'
import NoteIcon from '../../../Icons/NoteIcon.jsx'
@ -47,7 +44,7 @@ const ProductStockInfo = () => {
info: true,
partStocks: true,
notes: true,
auditLogs: false
auditLogs: true
}
)

View File

@ -58,9 +58,7 @@ const PurchaseOrderInfo = () => {
{
info: true,
notes: true,
orderItems: true,
shipments: true,
auditLogs: false,
auditLogs: true,
invoices: true,
stockEvents: true
}

View File

@ -50,7 +50,7 @@ const PurchaseOrderInfo = () => {
{
info: true,
notes: true,
auditLogs: false
auditLogs: true
}
)

View File

@ -40,7 +40,7 @@ const ShipmentInfo = () => {
{
info: true,
notes: true,
auditLogs: false
auditLogs: true
}
)

View File

@ -37,7 +37,7 @@ const StockAuditInfo = () => {
info: true,
stocks: true,
notes: true,
auditLogs: false
auditLogs: true
}
)

View File

@ -38,7 +38,7 @@ const StockLocationInfo = () => {
{
info: true,
notes: true,
auditLogs: false
auditLogs: true
}
)

View File

@ -8,10 +8,7 @@ import InfoCollapse from '../../common/InfoCollapse.jsx'
import ObjectInfo from '../../common/ObjectInfo.jsx'
import ObjectProperty from '../../common/ObjectProperty.jsx'
import ViewButton from '../../common/ViewButton.jsx'
import {
getModelProperty,
getModelByName
} from '../../../../database/ObjectModels.js'
import { getModelProperty, getModelByName } from '../../../../database/ObjectModels.js'
import PostStockTransfer from './PostStockTransfer.jsx'
import InfoCircleIcon from '../../../Icons/InfoCircleIcon.jsx'
import NoteIcon from '../../../Icons/NoteIcon.jsx'
@ -42,7 +39,7 @@ const StockTransferInfo = () => {
info: true,
lines: true,
notes: true,
auditLogs: false
auditLogs: true
}
)

View File

@ -35,7 +35,7 @@ const AppPasswordInfo = () => {
'AppPasswordInfo',
{
info: true,
auditLogs: false
auditLogs: true
}
)
const [objectFormState, setEditFormState] = useState({

View File

@ -37,7 +37,7 @@ const CourierServiceInfo = () => {
{
info: true,
notes: true,
auditLogs: false
auditLogs: true
}
)
const [objectFormState, setEditFormState] = useState({

View File

@ -34,7 +34,7 @@ const CourierInfo = () => {
const [collapseState, updateCollapseState] = useCollapseState('CourierInfo', {
info: true,
notes: true,
auditLogs: false
auditLogs: true
})
const [objectFormState, setEditFormState] = useState({
isEditing: false,

View File

@ -38,7 +38,7 @@ const DocumentJobInfo = () => {
{
info: true,
notes: true,
auditLogs: false
auditLogs: true
}
)
const [objectFormState, setEditFormState] = useState({

View File

@ -39,7 +39,7 @@ const DocumentPrinterInfo = () => {
info: true,
stocks: true,
notes: true,
auditLogs: false
auditLogs: true
}
)

View File

@ -38,7 +38,7 @@ const DocumentSizeInfo = () => {
{
info: true,
notes: true,
auditLogs: false
auditLogs: true
}
)
const [objectFormState, setEditFormState] = useState({

View File

@ -33,7 +33,7 @@ const DocumentTemplateDesign = () => {
preview: true,
editor: true,
notes: true,
auditLogs: false
auditLogs: true
}
)

View File

@ -39,7 +39,7 @@ const DocumentTemplateInfo = () => {
info: true,
stocks: true,
notes: true,
auditLogs: false
auditLogs: true
}
)

View File

@ -24,15 +24,13 @@ const FilamentSkuInfo = () => {
const location = useLocation()
const objectFormRef = useRef(null)
const actionHandlerRef = useRef(null)
const filamentSkuId = new URLSearchParams(location.search).get(
'filamentSkuId'
)
const filamentSkuId = new URLSearchParams(location.search).get('filamentSkuId')
const [collapseState, updateCollapseState] = useCollapseState(
'FilamentSkuInfo',
{
info: true,
notes: true,
auditLogs: false
auditLogs: true
}
)
const [objectFormState, setEditFormState] = useState({

View File

@ -43,7 +43,7 @@ const FilamentInfo = () => {
filamentSkus: true,
stocks: true,
notes: true,
auditLogs: false
auditLogs: true
}
)

View File

@ -37,7 +37,7 @@ const FileInfo = () => {
const [collapseState, updateCollapseState] = useCollapseState('FileInfo', {
info: true,
notes: true,
auditLogs: false
auditLogs: true
})
const [objectFormState, setEditFormState] = useState({
isEditing: false,

View File

@ -39,7 +39,7 @@ const HostInfo = () => {
printers: true,
documentPrinters: true,
notes: true,
auditLogs: false
auditLogs: true
})
const [hostOTPOpen, setHostOTPOpen] = useState(false)

View File

@ -30,14 +30,11 @@ const MaterialInfo = () => {
const objectFormRef = useRef(null)
const actionHandlerRef = useRef(null)
const materialId = new URLSearchParams(location.search).get('materialId')
const [collapseState, updateCollapseState] = useCollapseState(
'MaterialInfo',
{
info: true,
notes: true,
auditLogs: false
}
)
const [collapseState, updateCollapseState] = useCollapseState('MaterialInfo', {
info: true,
notes: true,
auditLogs: true
})
const [objectFormState, setEditFormState] = useState({
isEditing: false,
editLoading: false,

View File

@ -28,7 +28,7 @@ const NoteTypeInfo = () => {
'NoteTypeInfo',
{
info: true,
auditLogs: false
auditLogs: true
}
)
const [objectFormState, setEditFormState] = useState({

View File

@ -38,7 +38,7 @@ const NoteInfo = () => {
info: true,
content: true,
notes: true,
auditLogs: false
auditLogs: true
})
const [objectFormState, setEditFormState] = useState({
isEditing: false,

View File

@ -28,7 +28,7 @@ const PartSkuInfo = () => {
const [collapseState, updateCollapseState] = useCollapseState('PartSkuInfo', {
info: true,
notes: true,
auditLogs: false
auditLogs: true
})
const [objectFormState, setEditFormState] = useState({
isEditing: false,

View File

@ -33,7 +33,7 @@ const PartInfo = () => {
info: true,
partSkus: true,
notes: true,
auditLogs: false
auditLogs: true
})
const [objectFormState, setEditFormState] = useState({
isEditing: false,

View File

@ -32,7 +32,7 @@ const ProductCategoryInfo = () => {
{
info: true,
notes: true,
auditLogs: false
auditLogs: true
}
)
const [objectFormState, setEditFormState] = useState({

View File

@ -34,7 +34,7 @@ const ProductSkuInfo = () => {
info: true,
parts: true,
notes: true,
auditLogs: false
auditLogs: true
}
)
const [objectFormState, setEditFormState] = useState({

View File

@ -32,7 +32,7 @@ const ProductInfo = () => {
info: true,
productSkus: true,
notes: true,
auditLogs: false
auditLogs: true
})
const [newProductSkuOpen, setNewProductSkuOpen] = useState(false)
const productSkusTableRef = useRef()

View File

@ -33,7 +33,7 @@ const TaxRateInfo = () => {
const [collapseState, updateCollapseState] = useCollapseState('TaxRateInfo', {
info: true,
notes: true,
auditLogs: false
auditLogs: true
})
const [objectFormState, setEditFormState] = useState({
isEditing: false,

View File

@ -37,7 +37,7 @@ const UserInfo = () => {
info: true,
appPasswords: true,
notes: true,
auditLogs: false
auditLogs: true
})
const [objectFormState, setEditFormState] = useState({
isEditing: false,

View File

@ -33,7 +33,7 @@ const VendorInfo = () => {
const [collapseState, updateCollapseState] = useCollapseState('VendorInfo', {
info: true,
notes: true,
auditLogs: false
auditLogs: true
})
const [objectFormState, setEditFormState] = useState({
isEditing: false,

View File

@ -40,7 +40,7 @@ const GCodeFileInfo = () => {
info: true,
parts: true,
notes: true,
auditLogs: false
auditLogs: true
}
)

View File

@ -39,7 +39,7 @@ const JobInfo = () => {
info: true,
subJobs: true,
notes: true,
auditLogs: false
auditLogs: true
})
const [objectFormState, setEditFormState] = useState({

View File

@ -35,7 +35,7 @@ const PrinterInfo = () => {
info: true,
stocks: true,
notes: true,
auditLogs: false
auditLogs: true
})
const [objectFormState, setEditFormState] = useState({

View File

@ -30,7 +30,7 @@ const SubJobInfo = () => {
const [collapseState, updateCollapseState] = useCollapseState('SubJobInfo', {
info: true,
notes: true,
auditLogs: false
auditLogs: true
})
const [objectFormState, setEditFormState] = useState({
isEditing: false,

View File

@ -33,7 +33,7 @@ const ClientInfo = () => {
const [collapseState, updateCollapseState] = useCollapseState('ClientInfo', {
info: true,
notes: true,
auditLogs: false
auditLogs: true
})
const [objectFormState, setEditFormState] = useState({
isEditing: false,
@ -193,3 +193,4 @@ const ClientInfo = () => {
}
export default ClientInfo

View File

@ -42,7 +42,7 @@ const ListingVarientInfo = () => {
{
info: true,
notes: true,
auditLogs: false
auditLogs: true
}
)
const [objectFormState, setEditFormState] = useState({

View File

@ -43,7 +43,7 @@ const ListingInfo = () => {
info: true,
listingVarients: true,
notes: true,
auditLogs: false
auditLogs: true
})
const [objectFormState, setEditFormState] = useState({
isEditing: false,

View File

@ -50,7 +50,7 @@ const MarketplaceInfo = () => {
{
info: true,
notes: true,
auditLogs: false
auditLogs: true
}
)
const [objectFormState, setEditFormState] = useState({

View File

@ -55,9 +55,7 @@ const SalesOrderInfo = () => {
{
info: true,
notes: true,
auditLogs: false,
orderItems: true,
shipments: true,
auditLogs: true,
invoices: true,
stockEvents: true
}

View File

@ -430,8 +430,8 @@ const ObjectForm = forwardRef(
setEditLoading(true)
const currentFormData = {
...objectData,
...value
...value,
...objectData
}
onStateChangeRef.current({ editLoading: true })
await updateObject(id, type, currentFormData)

View File

@ -93,7 +93,7 @@ const ObjectTable = forwardRef(
{
type,
pageSize = 25,
scrollHeight = 'calc(var(--unit-100vh) - 258px)',
scrollHeight = 'calc(var(--unit-100vh) - 260px)',
onDataChange,
initialPage = 1,
cards = false,
@ -132,13 +132,13 @@ const ObjectTable = forwardRef(
adjustedScrollHeight = 'calc(var(--unit-100vh) - 210px)'
}
if (isElectron) {
adjustedScrollHeight = 'calc(var(--unit-100vh) - 238px)'
adjustedScrollHeight = 'calc(var(--unit-100vh) - 244px)'
}
if (isMobile && isElectron) {
adjustedScrollHeight = 'calc(var(--unit-100vh) - 282px)'
}
if (cards && isElectron) {
adjustedScrollHeight = 'calc(var(--unit-100vh) - 258px)'
adjustedScrollHeight = 'calc(var(--unit-100vh) - 260px)'
}
const tableRef = useRef(null)
const model = getModelByName(type)
@ -999,7 +999,7 @@ const ObjectTable = forwardRef(
)}
</Splitter.Panel>
{showFilterSidebar && (
<Splitter.Panel defaultSize={'25%'}>
<Splitter.Panel>
<FilterSidebar
type={type}
filter={sidebarFilter}