| 1234567891011121314 |
- const { Decimal, Uuid, Relationship } = require('@keystonejs/fields');
- module.exports = {
- fields: {
- stocktaking_items_id: { type: Uuid, isRequired: true, label: 'stocktaking_items' },
- stocktaking_id: { type: Relationship, ref: 'stocktaking', many: false, isRequired: true, label: 'stocktaking' },
- quantity: { type: Decimal, knexOptions: { precision: 14, scale: 3 }, label: 'Ilosc' },
- quantity2: { type: Decimal, knexOptions: { precision: 14, scale: 3 }, label: 'quantity2' },
- value_purchase: { type: Decimal, knexOptions: { precision: 12, scale: 2 }, label: 'Wartosc zakupu' },
- price: { type: Decimal, knexOptions: { precision: 12, scale: 2 }, label: 'Cena' },
- items_id: { type: Relationship, ref: 'items', many: true, isRequired: true, label: 'Egzemplarz' },
- shops_id: { type: Relationship, ref: 'shops', many: true, isRequired: true, label: 'Magazyn' },
- }, label: 'Stocktaking_item'//, plural: 'Stocktaking_itemss'
- };
|