| 1234567891011121314151617 |
- const { DateTime, Text, Decimal, Uuid, Relationship } = require('@keystonejs/fields');
- const { AutoIncrement } = require('@keystonejs/fields-auto-increment');
- module.exports = {
- fields: {
- fifopos_id: { type: AutoIncrement, isRequired: true, label: 'fifopos' },
- fifopart_id: { type: Relationship, ref: 'fifopart', many: false, label: 'fifopart' },
- pos_id: {type: Relationship, ref: 'positions', many: true, label: 'pos_id' },
- date_part: { type: DateTime, isRequired: true, label: 'date_part' },
- id: { type: Text, label: 'id' },
- items_id: { type: Relationship, ref: 'items', many: true, label: 'Egzemplarz' },
- quantity: { type: Decimal, knexOptions: { precision: 14, scale: 3 }, label: 'Ilosc' },
- price_purchase: { type: Decimal, knexOptions: { precision: 12, scale: 2 }, label: 'price_purchase' },
- value: { type: Decimal, knexOptions: { precision: 12, scale: 2 }, label: 'value' },
- price_orig: { type: Decimal, knexOptions: { precision: 12, scale: 2 }, label: 'price_orig' },
- }, label: 'Fifopo'//, plural: 'Fifoposs'
- };
|