client/skr/models/PurchaseOrder.coffee in stockor-0.1.9 vs client/skr/models/PurchaseOrder.coffee in stockor-0.2

- old
+ new

@@ -1,18 +1,20 @@ class Skr.Models.PurchaseOrder extends Skr.Models.Base props: - id: {"type":"integer","required":true} - visible_id: {"type":"integer","required":true} - vendor_id: {"type":"integer","required":true} - location_id: {"type":"integer","required":true} - ship_addr_id: {"type":"integer","required":true} - terms_id: {"type":"integer","required":true} - state: {"type":"integer"} - is_revised: {"type":"boolean","required":true,"default":"false"} - order_date: {"type":"any","required":true} + id: {type:"integer"} + visible_id: {type:"visible_id"} + vendor_id: {type:"integer"} + location_id: {type:"integer"} + ship_addr_id: {type:"integer"} + terms_id: {type:"integer"} + state: {type:"integer"} + is_revised: {type:"boolean", default:false} + order_date: {type:"any"} receiving_completed_at:"date" + + mixins: [ 'HasVisibleId' ] enums: state: open: 1 received: 2