client/skr/models/PtLine.coffee in stockor-0.1.9 vs client/skr/models/PtLine.coffee in stockor-0.2
- old
+ new
@@ -1,22 +1,22 @@
class Skr.Models.PtLine extends Skr.Models.Base
props:
- id: {"type":"integer","required":true}
- pick_ticket_id:{"type":"integer","required":true}
- so_line_id: {"type":"integer","required":true}
- sku_loc_id: {"type":"integer","required":true}
- price: {"type":"bigdec","required":true}
- sku_code: {"type":"string","required":true}
- description: {"type":"string","required":true}
- uom_code: {"type":"string","required":true}
+ id: {type:"integer"}
+ pick_ticket_id:{type:"integer"}
+ so_line_id: {type:"integer"}
+ sku_loc_id: {type:"integer"}
+ price: {type:"bigdec"}
+ sku_code: {type:"string"}
+ description: {type:"string"}
+ uom_code: {type:"string"}
bin: "string"
- uom_size: {"type":"integer","required":true}
- position: {"type":"integer","required":true}
- qty: {"type":"integer","required":true,"default":"0"}
- qty_invoiced: {"type":"integer","required":true,"default":"0"}
- is_complete: {"type":"boolean","required":true,"default":"false"}
+ uom_size: {type:"integer"}
+ position: {type:"integer"}
+ qty: {type:"integer", "default":"0"}
+ qty_invoiced: {type:"integer", "default":"0"}
+ is_complete: {type:"boolean", default:false}
associations:
pick_ticket: { model: "PickTicket" }
sku_loc: { model: "SkuLoc" }
so_line: { model: "SoLine" }