import { Edit, SimpleForm, TextInput, DateInput, SelectInput } from 'react-admin';

const kindChoices = [
  { id: 'Receipt', name: 'Receipt' },
  { id: 'Issue', name: 'Issue' },
  { id: 'Transfer', name: 'Transfer' },
  { id: 'Adjustment', name: 'Adjustment' },
];

export const StockMovementEdit = () => (
  <Edit>
    <SimpleForm>
      <TextInput disabled source="id" />
      <DateInput source="documentDate" />
      <SelectInput source="kind" choices={kindChoices} />
      <TextInput multiline source="comment" />
    </SimpleForm>
  </Edit>
);