client/skr/models/SalesOrder.coffee in stockor-0.1.7 vs client/skr/models/SalesOrder.coffee in stockor-0.1.8

- old
+ new

@@ -8,17 +8,23 @@ location_id: {"type":"integer","required":true} shipping_address_id:{"type":"integer","required":true} billing_address_id: {"type":"integer","required":true} terms_id: {"type":"integer","required":true} order_date: {"type":"any","required":true} - state: {"type":"string","required":true} + state: {"type":"integer"} is_revised: {"type":"boolean","required":true,"default":"false"} hash_code: {"type":"string","required":true} ship_partial: {"type":"boolean","required":true,"default":"false"} is_complete: {"type":"boolean","required":true,"default":"false"} po_num: "string" notes: "string" options: "any" + + enums: + state: + open: 1 + complete: 5 + canceled: 9 associations: customer: { model: "Customer" } location: { model: "Location" } terms: { model: "PaymentTerm" }