@fayz-ai/plugin-financial 0.30.3 → 0.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"registries.d.ts","sourceRoot":"","sources":["../../src/data/registries.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAA2B,MAAM,eAAe,CAAA;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAgiB9C;mEACmE;AACnE,eAAO,MAAM,sBAAsB,oCAAoB,CAAA;AAEvD,eAAO,MAAM,mBAAmB,EAAE,iBAAiB,EA4GlD,CAAA"}
1
+ {"version":3,"file":"registries.d.ts","sourceRoot":"","sources":["../../src/data/registries.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAA2B,MAAM,eAAe,CAAA;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAmiB9C;mEACmE;AACnE,eAAO,MAAM,sBAAsB,oCAAoB,CAAA;AAEvD,eAAO,MAAM,mBAAmB,EAAE,iBAAiB,EA4GlD,CAAA"}
package/dist/index.js CHANGED
@@ -4104,6 +4104,14 @@ var costCenterEntity = {
4104
4104
  fields: [
4105
4105
  { key: "code", label: tl("Code", "C\xF3digo"), type: "text", required: true, showInTable: true },
4106
4106
  { key: "name", label: tl("Name", "Nome"), type: "text", required: true, showInTable: true },
4107
+ // V1 hangs every cost centre under a department (Cadastros › Departamentos).
4108
+ {
4109
+ key: "departmentId",
4110
+ label: tl("Department", "Departamento"),
4111
+ type: "relation",
4112
+ showInTable: true,
4113
+ relation: { table: "categories", filter: { kind: "staff_department", is_active: true }, create: {} }
4114
+ },
4107
4115
  ...recordRailFields({ tagsTable: "plg_financial_cost_centers", activeLabel: "Ativo", unit: true })
4108
4116
  ],
4109
4117
  data: { table: T.costCenters, tenantScoped: true }