Compare commits
No commits in common. "4d1735e3d5fb50c324d58a0a15f9a8c963e80194" and "32888fa7a419a3d422683baab7b4ee1cff35b770" have entirely different histories.
4d1735e3d5
...
32888fa7a4
@ -94,7 +94,13 @@ export function useProformasGridColumns(
|
|||||||
),
|
),
|
||||||
cell: ({ row }) => DateHelper.format(row.original.invoiceDate),
|
cell: ({ row }) => DateHelper.format(row.original.invoiceDate),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: "series",
|
||||||
|
accessorKey: "series",
|
||||||
|
header: "Serie",
|
||||||
|
enableHiding: true,
|
||||||
|
enableSorting: false,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: "invoiceNumber",
|
id: "invoiceNumber",
|
||||||
accessorKey: "invoiceNumber",
|
accessorKey: "invoiceNumber",
|
||||||
@ -179,13 +185,7 @@ export function useProformasGridColumns(
|
|||||||
cellClassName: "max-w-128",
|
cellClassName: "max-w-128",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id: "series",
|
|
||||||
accessorKey: "series",
|
|
||||||
header: "Serie",
|
|
||||||
enableHiding: true,
|
|
||||||
enableSorting: false,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id: "reference",
|
id: "reference",
|
||||||
accessorKey: "reference",
|
accessorKey: "reference",
|
||||||
|
|||||||
@ -21,8 +21,6 @@ export const mapProformaToProformaUpdateForm = (proforma: Proforma): ProformaUpd
|
|||||||
const fiscalDefaults = resolveFiscalDefaults(proforma, proformaDefaults);
|
const fiscalDefaults = resolveFiscalDefaults(proforma, proformaDefaults);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
invoiceNumber: proforma.invoiceNumber,
|
|
||||||
|
|
||||||
series: proforma.series ?? proformaDefaults.series,
|
series: proforma.series ?? proformaDefaults.series,
|
||||||
|
|
||||||
invoiceDate: proforma.invoiceDate ?? proformaDefaults.invoiceDate,
|
invoiceDate: proforma.invoiceDate ?? proformaDefaults.invoiceDate,
|
||||||
|
|||||||
@ -18,8 +18,6 @@ import type { ProformaItemUpdateForm } from "./proforma-item-update-form.entity"
|
|||||||
export type ProformaTaxMode = "single" | "perLine";
|
export type ProformaTaxMode = "single" | "perLine";
|
||||||
|
|
||||||
export interface ProformaUpdateForm {
|
export interface ProformaUpdateForm {
|
||||||
invoiceNumber: string;
|
|
||||||
|
|
||||||
series: string;
|
series: string;
|
||||||
|
|
||||||
invoiceDate: string;
|
invoiceDate: string;
|
||||||
|
|||||||
@ -38,7 +38,7 @@ export const ProformaUpdateHeaderEditor = ({
|
|||||||
<FormSectionGrid>
|
<FormSectionGrid>
|
||||||
<TextField
|
<TextField
|
||||||
className="md:col-span-2"
|
className="md:col-span-2"
|
||||||
disabled={true}
|
disabled={disabled}
|
||||||
label={t("form_fields.proformas.invoice_number.label")}
|
label={t("form_fields.proformas.invoice_number.label")}
|
||||||
maxLength={16}
|
maxLength={16}
|
||||||
name="invoiceNumber"
|
name="invoiceNumber"
|
||||||
|
|||||||
@ -16,6 +16,14 @@ import type { NativeInputProps } from "./types.ts";
|
|||||||
|
|
||||||
export type ProformaFieldSpan = "xs" | "sm" | "md" | "lg" | "full";
|
export type ProformaFieldSpan = "xs" | "sm" | "md" | "lg" | "full";
|
||||||
|
|
||||||
|
const fieldSpanClasses: Record<ProformaFieldSpan, string> = {
|
||||||
|
xs: "md:col-span-2",
|
||||||
|
sm: "md:col-span-3",
|
||||||
|
md: "md:col-span-4",
|
||||||
|
lg: "md:col-span-6",
|
||||||
|
full: "md:col-span-12",
|
||||||
|
};
|
||||||
|
|
||||||
type TextFieldProps<TFormValues extends FieldValues> = Omit<NativeInputProps, "name"> & {
|
type TextFieldProps<TFormValues extends FieldValues> = Omit<NativeInputProps, "name"> & {
|
||||||
name: FieldPath<TFormValues>;
|
name: FieldPath<TFormValues>;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user