Sha256: 2dc49ca3702bd14375f3d91832334749acd9fe99ee4ab96d849eea95a9eaac7c

Contents?: true

Size: 1.99 KB

Versions: 10

Compression:

Stored size: 1.99 KB

Contents

#invoice.edit
  = horizontal_form_for @invoice, as: :invoice do |f|
    .well
      - if @invoice.persisted?
        .form-group
          label.control-label.col-sm-3
            = Dorsale::BillingMachine::Invoice.t(:tracking_id)
          .col-sm-9
            .form-control-static.invoice-unique-index
              = @invoice.tracking_id

      = f.input :label
      = f.input :date, html5: true
      = f.input :payment_term_id, collection: @payment_terms
      = f.input :due_date, html5: true
      = f.input :paid, as: :select, include_blank: false
      = f.input :customer_guid, collection: @people.map{ |e| [e.name, e.guid] }
      = f.input :vat_rate, as: :string
      = f.input :advance, as: :string
      = f.input :commercial_discount, as: :string

      - if @id_cards.one?
        = f.hidden_field :id_card_id
      - else
        = f.input :id_card_id, collection: @id_cards

    #invoice-lines
      = f.simple_fields_for :lines do |l|
        = render "line_fields", f: l

      p.center
        = link_to_add_association t("actions.add_line"), f, :lines, class: "btn btn-primary", id: "add-new-line"

    .total.well
      .row
        label.col-sm-3.control-label
          = @invoice.t(:commercial_discount)
          = " : "
        .col-sm-9
          .form-control-static#invoice-commercial_discount

      .row
        label.col-sm-3.control-label
          = @invoice.t(:total_duty)
          = " : "
        .col-sm-9
          .form-control-static#invoice-total_duty

      .row
        label.col-sm-3.control-label
          = @invoice.t(:vat_rate)
          = " : "
        .col-sm-9
          .form-control-static#invoice-vat_amount

      .row
        label.col-sm-3.control-label
          = @invoice.t(:total_all_taxes)
          = " : "
        .col-sm-9
          .form-control-static#invoice-total_all_taxes

      .row
        label.col-sm-3.control-label
          = @invoice.t(:balance)
          = " : "
        .col-sm-9
          .form-control-static#invoice-balance

    = form_buttons

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
dorsale-2.1.15 app/views/dorsale/billing_machine/invoices/_form.html.slim
dorsale-2.1.14 app/views/dorsale/billing_machine/invoices/_form.html.slim
dorsale-2.1.13 app/views/dorsale/billing_machine/invoices/_form.html.slim
dorsale-2.1.12 app/views/dorsale/billing_machine/invoices/_form.html.slim
dorsale-2.1.11 app/views/dorsale/billing_machine/invoices/_form.html.slim
dorsale-2.1.10 app/views/dorsale/billing_machine/invoices/_form.html.slim
dorsale-2.1.9 app/views/dorsale/billing_machine/invoices/_form.html.slim
dorsale-2.1.8 app/views/dorsale/billing_machine/invoices/_form.html.slim
dorsale-2.1.7 app/views/dorsale/billing_machine/invoices/_form.html.slim
dorsale-2.1.6 app/views/dorsale/billing_machine/invoices/_form.html.slim