Purchase

Dostawcy i zamówienia zakupu

MarketplaceOperacjeWersja 0.3.0AGPL-3.0-or-latermanifest

Do czego służy ​

Keep vendors and the purchase orders you send them, with order lines and a draft to received flow. Totals are entered, not summed from the lines.

Co pakiet robi, a czego nie robi ​

Vendors, purchase orders and order lines with a draft, sent, confirmed, received and cancelled flow. An order has a number from a series, its total is the sum of its lines, and receiving the goods creates a draft stock move per line at the receiving location (the warehouse validates them).

Szczegóły modułu ​

  • Wersja: 0.3.0
  • Autor: SpaceCorps
  • Licencja: AGPL-3.0-or-later
  • Wymaga rdzenia: ^0.2 (aktualny rdzeń to 0.2.0)
  • Dojrzałość: Beta
  • Kategorie: Łańcuch dostaw

Modele ​

purchase_vendor ​

Purchasing terms for a contact you buy from

Grupa odczytu: purchase.user. Grupa zapisu: purchase.manager.

PoleRodzajKlasa danychDane osoboweGrupaAgenci widząOpis
party_idref → partynoneniepurchase.userjawnieThe contact record of the vendor
vendor_referencetextnoneniepurchase.userjawnieYour customer number at this vendor
payment_terms_daysnumbernoneniepurchase.userjawnieDays allowed to pay an invoice
lead_time_daysnumbernoneniepurchase.userjawnieUsual days between order and delivery
ibantextfinancialtakpurchase.managerwstrzymaneBank account the vendor is paid into
activeboolnoneniepurchase.userjawnieWhether you still buy from this vendor

purchase_order ​

A request to a vendor to supply goods or services

Grupa odczytu: purchase.user. Grupa zapisu: purchase.user.

PoleRodzajKlasa danychDane osoboweGrupaAgenci widząOpis
numbersequencenoneniepurchase.userjawniePurchase order number such as PO-00042, assigned when the order is created
referencetextnoneniepurchase.userjawnieOrder number printed on the document
vendor_idref → purchase_vendornoneniepurchase.userjawnieThe vendor ordered from
ordered_ondatenoneniepurchase.userjawnieDate the order was placed (YYYY-MM-DD)
expected_ondatenoneniepurchase.userjawnieDate the goods are expected (YYYY-MM-DD)
currencytextnoneniepurchase.userjawnieISO 4217 currency code, for example EUR
receive_location_idref → inventory_locationnoneniepurchase.userjawnieWhere the goods are to be received; receiving the order creates the stock moves to this location
totalmoneynoneniepurchase.userjawnieOrder total: the sum of the line amounts (minor currency units, e.g. cents)
noteslongtextnoneniepurchase.userjawnieDelivery instructions and remarks for the vendor
stateselect (draft, sent, confirmed, received, cancelled)noneniepurchase.userjawnieOrder status: draft, sent, confirmed, received, cancelled

purchase_order_line ​

One product or service on a purchase order

Grupa odczytu: purchase.user. Grupa zapisu: purchase.user.

PoleRodzajKlasa danychDane osoboweGrupaAgenci widząOpis
order_idref → purchase_ordernoneniepurchase.userjawnieThe order the line belongs to
product_idref → productnoneniepurchase.userjawnieThe product ordered
descriptiontextnoneniepurchase.userjawnieWording for the vendor if different from the product name
quantitynumbernoneniepurchase.userjawnieUnits ordered
unit_pricemoneynoneniepurchase.userjawnieAgreed price per unit (minor currency units, e.g. cents)
amountmoneynoneniepurchase.userjawnieLine amount: quantity times unit price (minor currency units)
received_quantitynumbernoneniepurchase.userjawnieUnits received so far

Przepływy pracy ​

purchase_order ​

AkcjaPrzenosiKto może uruchomićZatwierdzenie
purchase_order.sendstate: draft → sentpurchase.usernie
purchase_order.confirmstate: sent → confirmedpurchase.managertak
purchase_order.receivestate: confirmed → receivedpurchase.usernie
purchase_order.cancelstate: draft → cancelledpurchase.usernie

Grupy uprawnień ​

Grupy używane przez tę aplikację:

  • purchase.manager
  • purchase.user

Kroki zatwierdzania ​

Kroki, które agent może tylko zaproponować:

  • purchase_order.confirm

Co agenci mogą, a czego nie mogą ​

Agent może odczytywać, wyszukiwać, tworzyć i aktualizować rekordy tej aplikacji oraz uruchamiać akcje niewymagające zatwierdzenia, w ramach grup uprawnień swojego tokenu.

Te kroki może tylko zaproponować, a człowiek musi je zatwierdzić: purchase_order.confirm, purchase_vendor.delete, purchase_order.delete, purchase_order_line.delete.

Te pola są całkowicie wstrzymane i niedostępne dla agentów: purchase_vendor.iban.

Zależności ​

Każda zależność podaje akceptowane wersje. Aplikacje wbudowane są wersjonowane razem z rdzeniem, więc wymaganie wobec nich sprawdza się względem wersji rdzenia.

Instalacja tej aplikacji z marketplace instaluje też brakujące zależności, w jednym planie potwierdzanym raz.

Instalacja ​

Zainstaluj ją w aplikacji Customize (Marketplace) lub z wiersza poleceń:

bash
obop modules install-from purchase

Wymaga bazy danych i uprawnień administratora.

Zbuduj własną ​

Przewodnik po modułach pokazuje, jak pisze się takie aplikacje