Add company-scoped unit list/upsert/delete and article unit patches.
Units are isolated per company; article detail exposes full unit shape, and unused units can be deleted safely via FK NO ACTION.
This commit is contained in:
11
src/store/unit/shapeUnit.js
Normal file
11
src/store/unit/shapeUnit.js
Normal file
@@ -0,0 +1,11 @@
|
||||
function shapeUnit(row) {
|
||||
return {
|
||||
si: row.si,
|
||||
basesi: row.basesi,
|
||||
basesifactor: row.basesifactor,
|
||||
symbol: row.symbol ?? null,
|
||||
name: row.name ?? null,
|
||||
};
|
||||
}
|
||||
|
||||
export default shapeUnit;
|
||||
Reference in New Issue
Block a user