fix(resolve): fix resolve merge

This commit is contained in:
rstubryan
2025-11-24 08:34:50 +07:00
parent 274322606d
commit 824eed910a
5 changed files with 42 additions and 34 deletions
@@ -177,7 +177,9 @@ export const MovementFormSchema: Yup.ObjectSchema<MovementFormSchemaType> =
'Gudang tujuan tidak boleh sama dengan gudang asal!',
function (value) {
const { source_warehouse_id } = this.parent;
return !value || !source_warehouse_id || value !== source_warehouse_id;
return (
!value || !source_warehouse_id || value !== source_warehouse_id
);
}
),
products: Yup.array()