Sha256: 9b36839c2682561acd8321050a7c4abdfaf20a53e16c4926a454ac680262349c
Contents?: true
Size: 612 Bytes
Versions: 4
Compression:
Stored size: 612 Bytes
Contents
SHARED_DATA = null SHARED_COLLECTION = null class Skr.Models.PaymentTerm extends Skr.Models.Base props: id: {type:"integer"} code: {type:"code"} days: {type:"integer", "default":"0"} description: {type:"string"} discount_days: "integer" discount_amount:"string" @initialize: (data) -> SHARED_DATA = data.payment_terms Object.defineProperty Skr.Models.PaymentTerm, 'all', get: -> SHARED_COLLECTION ||= new Skr.Models.PaymentTerm.Collection( SHARED_DATA, comparator: 'code' )
Version data entries
4 entries across 4 versions & 1 rubygems