mirror of
https://github.com/rickbarrette/redmine_qbo_lineitems.git
synced 2026-04-02 15:11:58 -04:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e58bbafda7 | |||
| c56aa5897f | |||
| 449910c941 | |||
| 42ea5dffc9 | |||
| ecbfa2620f |
@@ -21,7 +21,7 @@ This plugin allows **billable line items** to be attached to a Redmine issue. Wh
|
||||
|
||||
| Plugin Version | Redmine Version | Ruby Version |
|
||||
| --- | --- | --- |
|
||||
| 2026.3.2+ | 6.1.x | 3.2+ |
|
||||
| 2026.3.3+ | 6.1.x | 3.2+ |
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -15,12 +15,12 @@ class Item < ApplicationRecord
|
||||
validates :unit_price, numericality: { greater_than_or_equal_to: 0 }
|
||||
self.primary_key = :id
|
||||
|
||||
# Sync all employees, typically triggered by a scheduled task or manual sync request
|
||||
# Sync all items, typically triggered by a scheduled task or manual sync request
|
||||
def self.sync
|
||||
ItemSyncJob.perform_later(full_sync: true)
|
||||
end
|
||||
|
||||
# Sync a single employee by ID, typically triggered by a webhook notification or manual sync request
|
||||
# Sync a single items by ID, typically triggered by a webhook notification or manual sync request
|
||||
def self.sync_by_id(id)
|
||||
ItemSyncJob.perform_later(id: id)
|
||||
end
|
||||
|
||||
@@ -15,7 +15,8 @@
|
||||
<td data-label="<%= t :label_qty %>">
|
||||
<%= f.number_field :quantity,
|
||||
step: 1,
|
||||
min: 0,
|
||||
min: 1,
|
||||
value: (f.object.quantity.to_i > 0) ? f.object.quantity : 1,
|
||||
class: "qty-field",
|
||||
no_label: true,
|
||||
disabled: readonly %>
|
||||
|
||||
4
init.rb
4
init.rb
@@ -14,14 +14,14 @@ Redmine::Plugin.register :redmine_qbo_lineitems do
|
||||
name 'Redmine QBO Line Items plugin'
|
||||
author 'Rick Barrette'
|
||||
description 'A plugin for Redmine to extend the capabilitys of the Redmine QuickBooks Online plugin to attach billable line items to an isuue'
|
||||
version '2026.3.1'
|
||||
version '2026.3.2'
|
||||
url 'https://github.com/rickbarrette/redmine_qbo'
|
||||
author_url 'https://barrettefabrication.com'
|
||||
requires_redmine version_or_higher: '6.1.0'
|
||||
|
||||
# Ensure redmine_qbo is installed
|
||||
begin
|
||||
requires_redmine_plugin :redmine_qbo, version_or_higher: '2026.3.0'
|
||||
requires_redmine_plugin :redmine_qbo, version_or_higher: '2026.3.3'
|
||||
rescue Redmine::PluginNotFound
|
||||
raise 'Please install the redmine_qbo plugin (https://github.com/rickbarrette/redmine_qbo)'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user