commit melhorias compras5
tests / ci (push) Waiting to run

This commit is contained in:
2026-11-22 19:39:09 +02:00
parent 36dcfdf00c
commit db1615fac1
79 changed files with 4082 additions and 120 deletions
+13 -2
View File
@@ -21,8 +21,19 @@ function preparation(data: Record<string, unknown>): unknown {
typeof item === 'object' &&
!Array.isArray(item)
) {
const { key: _rowKey, ...values } = item;
return values;
const {
key: _rowKey,
procurement_category,
category_reason,
...values
} = item;
return {
...values,
...(procurement_category
? { procurement_category }
: {}),
...(category_reason ? { category_reason } : {}),
};
}
return item;
})