feat: add no vat customers logic

This commit is contained in:
2026-04-15 12:55:14 +02:00
parent e31ecda582
commit e9af4bf311
3 changed files with 84 additions and 72 deletions

View File

@@ -105,8 +105,8 @@ var columnMappingListUsers map[string]string = map[string]string{
func (h *customerHandler) setCustomerNoVatStatus(fc fiber.Ctx) error {
user, ok := localeExtractor.GetCustomer(fc)
if !ok || user == nil {
return fc.Status(responseErrors.GetErrorStatus(responseErrors.ErrBadAttribute)).
JSON(response.Make(nullable.GetNil(""), 0, responseErrors.GetErrorCode(fc, responseErrors.ErrBadAttribute)))
return fc.Status(responseErrors.GetErrorStatus(responseErrors.ErrInvalidBody)).
JSON(response.Make(nullable.GetNil(""), 0, responseErrors.GetErrorCode(fc, responseErrors.ErrInvalidBody)))
}
var req struct {