55
edits
(New page: Units of Measure module) Tag: 2017 source edit |
(update to v1.9.3) Tag: 2017 source edit |
||
| Line 5: | Line 5: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
!Editor | ! Editor | ||
|Dolibarr User Australia | | Dolibarr User Australia | ||
|- | |- | ||
!Module ID | ! Module ID | ||
|491732 | | 491732 | ||
|- | |- | ||
!Version | ! Version | ||
|1. | | 1.9.3 | ||
|- | |- | ||
!Dolibarr | ! Dolibarr | ||
|23, 24 | | 23, 24 | ||
|- | |- | ||
!Where to get it | ! Where to get it | ||
|[https://www.dolistore.com DoliStore] (Units of Measure | | [https://www.dolistore.com DoliStore] (Units of Measure) | ||
|- | |- | ||
!Support | ! Support | ||
|[mailto:dolibarruseraustralia@gmail.com dolibarruseraustralia@gmail.com] | | [mailto:dolibarruseraustralia@gmail.com dolibarruseraustralia@gmail.com] | ||
|- | |- | ||
!Licence | ! Licence | ||
|GPL v3 or later | | GPL v3 or later | ||
|- | |||
! Languages | |||
| English, French, Spanish, German, Italian | |||
|} | |} | ||
Dolibarr counts every product in a single unit. When you buy by the carton and sell by the bottle, the carton or the pallet, the packs end up in product labels, with multiplications done by hand and rounded totals. Units of Measure lets you buy and | Dolibarr counts every product in a single unit. When you buy by the carton and sell by the bottle, the carton or the pallet, the packs end up in product labels, with multiplications done by hand and rounded totals. Units of Measure lets you buy, sell, stock-take and report in packs while stock, cost price and accounting stay in one '''base unit'''. | ||
Example: a 5 litre bottle is stocked as ''Bottle 5Lt''. The supplier sells it by the carton of 3; you sell it by the bottle, the carton and the pallet of 36 cartons. A purchase order line "2 × Carton at 21.00" receives 6 bottles into stock; a quote line "1 × Pallet at 1,080.00" is 108 bottles. Line totals and tax are exactly 2 × 21.00 and 1 × 1,080.00, and the stock shows "2 × Pallet + 4 × Carton + 2 × Bottle". | |||
== Setting up == | |||
* '''Base units''' (module setup, gear icon): the single item you stock, e.g. Each, Bottle 5Lt, Kilo, Metre. Base units can be decimal (Kilo, Metre). | |||
* '''Unit sets''' (Products → Unit sets): packs holding a quantity of a base unit or of another set, so bigger packs build on smaller ones: Carton = 3 × Bottle 5Lt, Pallet = 36 × Carton (= 108 bottles). The list is grouped by base unit. Products packed the same way share the same sets. | |||
* '''Units tab on products''': the base unit, the biggest pack the product is bought or sold in, a selling, buying and minimum price per unit (pre-filled as base price × the number of base units, editable), the default unit for sales, the sale step and minimum quantity. | |||
* '''To try it first''': module setup → '''Load example units''' creates base units, unit sets and four example products in three trades (a floor cleaner and a hand soap by the bottle, carton and pallet; rice by the kilo and the 25 kg bag; a garden hose by the metre and the 100 m roll). '''Remove example units''' deletes exactly what was created, and is refused once an example product has been used. | |||
== Sales and purchasing == | |||
* '''A Unit drop-down on document lines''': quotes, sales orders, invoices, purchase orders and supplier invoices, when adding a line and when editing it. The unit's price is filled in; changing the unit of an existing line converts its quantity and price so the total stays the same. | |||
* '''Exact totals''': Dolibarr stores the line in base units (6 bottles at 7.00), so stock movements, cost prices, margins and accounting work as usual; the line total and tax are exactly pack quantity × pack price. | |||
* '''Customer prices per pack''' (with Dolibarr's price per customer option) and '''price level prices per pack''' (with several price levels). An empty box means the customer's or level's base price × the number of base units. On a line, the hint beside the unit says which price was used. | |||
* '''Units follow the documents''': quote → order → invoice, shipment → invoice, purchase order or reception → supplier invoice, invoice → credit note. | |||
* '''Vendor prices''': "Vendor sells by" a pack. The price is entered per pack; Dolibarr keeps comparing vendors per base unit. A quantity typed in bottles for a vendor who sells by the carton is rounded up to whole cartons, with a message. | |||
* '''Sale step, minimum quantity and minimum price''' per product (e.g. sold by 0.5 m, minimum 2 m): a quantity off the step or below the minimum, or a price below the minimum, shows a warning with a "Round to" link. The line is never blocked. Packs of such products can be sold in parts (1.5 × Roll 100 m = 150 m). | |||
== Stock == | |||
* '''Stock in packs''': on the product's Stock tab (physical, virtual and per warehouse), as a column of the product list and on the warehouse card. E.g. 230 bottles = 2 × Pallet + 4 × Carton + 2 × Bottle. The setting can show every pack, the biggest pack and the rest, or nothing, and a product can choose differently. | |||
* '''Packs + loose helper''': when correcting or transferring stock, counting an inventory, receiving a purchase order, and on new receptions and shipments, type 2 × Carton + 1 and the quantity is filled in base units. | |||
* '''Unpacking''': for a carton kept as its own product next to its single item, one click opens n cartons into n × 12 items in the warehouse (and Repack puts them back), keeping the stock value. | |||
* '''Bills of materials''': the Unit drop-down on BOM lines. '''Manufacturing orders''': quantities to consume and produce shown in packs, with the packs + loose helper. | |||
== Point of sale (TakePOS) == | |||
* Tapping a product that has packs shows a button per unit with its price. The line is added in base units at the pack's price, so the total is exactly the pack price. | |||
* With the Barcodes module, a barcode per pack (e.g. the carton's DUN-14): scanning it adds one pack. | |||
* Receipts (browser and receipt printers) print the pack: "Cleaner 5Lt - CTN 3 x 5Lt | 1 | 40.70". | |||
== Reports, import and export == | |||
* '''Sales by unit''' (Products → Unit sets): quantity sold in each unit, quantity in base units, revenue, average price, cost, margin and margin rate per product, from customer invoices in a period, with CSV download. Cost and margin follow Dolibarr's margin permissions. | |||
* '''Import and export''' (Tools): base units, unit sets, products' units, prices per unit, customer and price level prices per pack. The export columns match the import, so prices can be changed in a spreadsheet and imported back. | |||
== Documents == | |||
* '''PDF''': lines show the quantity and price in the unit entered. Column templates (cyan, eratosthene, espadon...) get a Unit column; older templates show "Unit: ..." in the description. Shipment and reception PDFs show packs when the quantities are whole packs, with weights and volumes still right. | |||
* '''ODT''': <code>{line_qty}</code>, <code>{line_up}</code> and <code>{line_unit}</code> are in the unit entered. Extra keys: <code>{line_uom_unit}</code> (e.g. CTN 3 x 5Lt), <code>{line_uom_unit_full}</code> (CTN 3 x 5Lt (3 × Bottle 5Lt)), <code>{line_uom_base_qty}</code> (6), <code>{line_uom_base_unit}</code> (Bottle 5Lt). | |||
== Installation == | |||
Home → Setup → Modules/Applications → "Deploy/install external app/module", upload the zip, then enable "Units of Measure" (Products). Then add your base units (gear icon), your packs in Products → Unit sets, and choose them on each product's Units tab. Or click "Load example units" to start with examples. | |||
'''Updating from an earlier version''': upload the new zip, then turn the module off and on once. | |||
No Dolibarr files are changed (hooks and triggers only). Turning the module off leaves documents and stock as they are. | |||
== | == Dolibarr's supplier Packaging option == | ||
Setup → Modules → Products can turn on Packaging of vendor prices. The module fills it with each vendor price's pack size, so it can be switched on at any time; Dolibarr then rounds purchase quantities to whole packs everywhere, including Replenishment. It is optional: the module rounds purchase order lines itself. The module setup option "Round purchase quantities up to the vendor's pack size" switches it on. With Dolibarr 24.0.1, editing a purchase order line's quantity with Packaging on keeps the total of the quantity typed (a Dolibarr issue, fixed after 24.0.1). | |||
*Shipment and reception quantities are | == Limits == | ||
*A line keeps its unit while its quantity is a whole number of packs; otherwise it shows in base units. | * Shipment and reception quantities are stored in base units; the helper converts packs as you type. | ||
*Templates that print neither a unit column nor descriptions (e.g. the merou shipping label) show base units. | * A line keeps its unit while its quantity is a whole number of packs (or whole sale steps); otherwise it shows in base units. | ||
* Templates that print neither a unit column nor descriptions (e.g. the merou shipping label) show base units. | |||
* TakePOS: "group same product" does not merge a pack into a line of single items; products with lots or serial numbers are added in base units. | |||
==Compatibility== | == Compatibility == | ||
*Dolibarr 23 and 24: verified on clean installs of 23.0.4 and 24.0.1 (installed from the zip). Works with Multicurrency. | * Dolibarr 23 and 24: verified on clean installs of 23.0.4 and 24.0.1 (installed from the zip). Works with Multicurrency. | ||
*PHP as required by Dolibarr (tested on 8.3), MySQL / MariaDB. | * PHP as required by Dolibarr (tested on 8.3), MySQL / MariaDB. | ||
*English and | * English, French, Spanish, German and Italian. Corrections and other translations welcome. | ||
==Screenshots== | == Screenshots == | ||
<gallery mode="packed" heights="220px"> | <gallery mode="packed" heights="220px"> | ||
File:DolibarrUserAustralia-UnitsOfMeasure-sets.png|Unit sets | File:DolibarrUserAustralia-UnitsOfMeasure-sets.png|Unit sets grouped by base unit | ||
File:DolibarrUserAustralia-UnitsOfMeasure-product.png|A product's Units tab: | File:DolibarrUserAustralia-UnitsOfMeasure-product.png|A product's Units tab: prices per unit, customer prices per pack | ||
File:DolibarrUserAustralia-UnitsOfMeasure-quote.png|A quote: lines by the carton and | File:DolibarrUserAustralia-UnitsOfMeasure-quote.png|A quote: lines by the carton, the bottle and 1.5 rolls; the Unit drop-down | ||
File:DolibarrUserAustralia-UnitsOfMeasure- | File:DolibarrUserAustralia-UnitsOfMeasure-stock.png|Stock shown in packs | ||
File:DolibarrUserAustralia-UnitsOfMeasure- | File:DolibarrUserAustralia-UnitsOfMeasure-correct-stock.png|Correcting stock with the packs + loose helper | ||
File:DolibarrUserAustralia-UnitsOfMeasure-pdf.png|The quote PDF: | File:DolibarrUserAustralia-UnitsOfMeasure-pdf.png|The quote PDF with a Unit column | ||
File:DolibarrUserAustralia-UnitsOfMeasure-report.png|Sales by unit report: quantity, revenue, cost and margin per unit | |||
File:DolibarrUserAustralia-UnitsOfMeasure-takepos.png|TakePOS: a button per unit with its price | |||
</gallery> | </gallery> | ||
edits