Sha256: 82dd7d7f74ab84ccedd35f13c2464e9f075b99211d21c2a049b017a5f7046de9
Contents?: true
Size: 431 Bytes
Versions: 26
Compression:
Stored size: 431 Bytes
Contents
class Dorsale::BillingMachine::Invoice::Copy < ::Dorsale::Service attr_accessor :invoice, :copy def initialize(invoice) @invoice = invoice end def call @copy = invoice.dup @invoice.lines.each do |line| @copy.lines << line.dup end @copy.date = Date.current @copy.due_date = Date.current + 30.days @copy.unique_index = nil @copy.paid = false @copy end end
Version data entries
26 entries across 26 versions & 1 rubygems