Permalink
Browse files

supports negative values in qty, to be able to cancel invoices

  • Loading branch information...
1 parent 9ed8c80 commit ff6c652e54e85b4c82519ed559f18eaf51d0b9f6 @iloire committed Jul 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 iloire Facturacion/Models/POCO/InvoiceDetails.cs
View
2 iloire Facturacion/Models/POCO/InvoiceDetails.cs
@@ -12,7 +12,7 @@ public class InvoiceDetails
[Required]
public string Article { get; set; }
- [Range(1, 100000, ErrorMessage = "Quantity must be between 1 and 100000")]
+ [Range(-100000, 100000, ErrorMessage = "Quantity must be between 1 and 100000")]
@MauroLuque
MauroLuque added a line comment Sep 26, 2012

Hola iloire, aca tambien debería cambiarse el ErrorMessage para que diga: ""Quantity must be between -100000 and 100000""

@iloire
Owner
iloire added a line comment Sep 27, 2012
@MauroLuque
MauroLuque added a line comment Sep 27, 2012

La verdad que me registre para hacer ese comentario!

Todavia no tengo idea de como hacer un request, pero segun vi en la ayuda, hay que ser colaborador o dueño del repositorio para que aparezca el boton.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
public int Qty { get; set; }
[Range(0.01, 999999999, ErrorMessage = "Price must be between 0.01 and 999999999")]

3 comments on commit ff6c652

@walkerwong

Hi,iloire,I have installed your invoicesystem,it is good.But I have no idea for how can I change the location language.In your Code, I guess the language is SPANISH.BUT How can I change it to CHINESE?eg:like decimal,in your code,the Html.eidtfor is display 1234,00.I write [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:#.#}")] in model,but it just work in index view,does't wokr in edit view.Can you tell me what should I do?

@Mouwali12

Dear,

How to install the database and where can I find the script ? Do you think that it's easy to turn it into mvc 4 ?

Thank you,

@rkuhnjr

For the life of me I have not been able to open the sdf file in 3.5 or 4.0 CE
With out the backend db its pretty much useless, I wont even be able to fork it with some ideas I wanted to expand into it.

I dont suppose you could extract sql scripts to create the tables with?

EDIT: I was able to connect to it using the free Sql Server compact tool extension in visual studio 2012 and was able to extract the script
Although I am new to git/github so I am not sure how to share it outside creating a new fork
if you need it in the mean time
http://rkdesigns.org/Content/rkd/ASP.NET-MVC-ACME-Invoicing--App.sql.html

Please sign in to comment.