# Store Documents

This feature manages documents coming from points of sale (stores): counter sales, adjustments, purchases, transfers, physical inventories and reservations. Documents are received from external POS systems, collected in the **Store Documents** page and posted in Business Central. Each store's daily sales are summarized in a **Store Closing**, where computed values are compared with declared ones (payments, VAT, deposits, expenses) before closing invoices or shipments are created.



The **Store Setup** page holds the general parameters.

| Field | Description |
|---|---|
| Sales / Purchase / Inventory / Transfer Document Nos. | Number series of store documents by type. |
| Closing Nos. | Number series of store closings. |
| Contact Nos. | Number series of store contacts. |
| Reservation Document Nos. | Number series of reservation documents. |
| Total Discount Posting Group | Posting group used for document total discounts. |
| VAT Adjustment Posting Group | Posting group used for VAT adjustment lines in closings. |
| Payment Adj. Account No. (credit) / (debit) | Accounts for payment adjustments. |
| Payment Account No. | Account for prepayments. |
| Prep. VAT Prod. Posting Group | VAT group for prepayments. |
| Income / Credit / Deposit Account No. | Accounts suggested for income, credits and deposits in closings. |
| Default Payment Method Code | Suggested payment method. |
| Direct Store Transfers | Handles transfers between stores directly. |
| Closing Tolerance Amount | Maximum allowed difference between declared and computed sales. |
| Payment Tolerance Amount | Maximum allowed difference between payments and sales. |
| Transfer / Sales Order Type, Create Extra Transfer Orders | Order types used for store replenishment. |
| Store Cluster Nos. / Item Cluster Nos. | Cluster number series. |
| Health Amount Account No., Health Product Posting Group, Health Difference Account No. | Accounts and groups for the health service share (pharmacies). |


The **Store Categories** page defines the behavior of groups of stores.

| Field | Description |
|---|---|
| Code / Description | Category identifier. |
| Create Closing | Sales of the category's stores are collected in closings. |
| Closing Document | Document created by the closing: Invoice or Shipment. |
| Prevent Posting | Prevents document posting. |
| Ignore Discount (total) | Total discounts are ignored. |
| Device Closing Mandatory | Device data (fiscal box, manual report) is required. |
| Invoicing Rule | Invoicing rule applied. |
| Order Type / Push Order Type | Order type (Transfer or Sale) for replenishment. |

The **Payments** and **No. Series** actions open the payment setup and the **Store Number Series Setup**.


**Store** list and **Store Card**.

| Field | Description |
|---|---|
| No. / Name | Store identifier. |
| Category | Store category. |
| Customer No. | Customer billed by closing invoices (required to create closings). |
| Address, Post Code, City, County, Country/Region | Contact data. |
| Discontinued | Store no longer active. |
| Health Tracking Code, Type | Pharmaceutical data (**Pharmaceutical** group). |
| VAT Shareout | The store applies VAT shareout. |

Actions: **Locations**, **Payments**, **No. Series**, **Dimensions**.

On the **Location Card**, the **Store** group contains the **Store No.** field linking the location to the store.


Defines, per store or per category and per VAT business posting group, the **Invoice Nos.**, **Closing Invoice Nos.**, **Credit Memo Nos.**, **Closing Shipment Nos.** series and the **Use Posting No.** field (none, External Document No., External Posting No.), which states whether the number coming from the POS is used. It can also be opened from the **VAT Business Posting Groups** page (**Store No. Series** action).

On the **Payment Methods** page, the **Setup** action opens the store posting setup of the method.


The **Store Documents** page lists all received documents (read-only).

| Field | Description |
|---|---|
| Document Type | Sales, Adjustment, Purchase, Transfer, Physical Inventory, Reservation. |
| No. | Document number. |
| Partner Type / Partner No. / Name | Customer, vendor or location counterpart. |
| Document Date / Posting Date / Time | Document dates. |
| External Document No. / ID | POS references. |
| Store, Location, Store Category | Originating point of sale. |
| Store Contact | Associated contact (end customer). |
| Do not Invoice / Do not Post | Exclusions from invoicing or posting. |
| Posting Type | Shipment, Receipt, Invoice, Credit Memo. |
| Posting No. / Posted | Created document and status. |
| Closing No. | Closing the document is assigned to. |
| Amount | Document total. |

The **Store Document** card also shows the **Lines** (Item, Prepayment, Discount, Item (adjustment), Discount (total), G/L Account, Comment; with quantity, price incl. VAT, VAT, amount, health amounts) and the **Payments** (Payment, Credit, Credit (closing), Rounding). For Payment lines, method and amount can be edited.

The **Store Document Lines** page lists all lines; the **Open Document** action opens the document.


| Action | Effect |
|---|---|
| Create Closing | Assigns the sales document to the open closing of the same store, date and category, creating it if needed. Applies only to categories with **Create Closing** and documents not marked **Do not Invoice**. |
| Create Closing Batch | Runs closing creation on several documents. |
| Post / Post Batch | Posts the document (or selected documents), creating the expected Business Central document: shipment, receipt, invoice, credit memo, transfer, adjustment or inventory. |
| Prepare | Creates the Business Central document without posting it, for review. |
| Allow New Posting | Allows the document to be posted again. |
| Mark as do not post | Sets **Do not Post** on the selected documents. |
| Delete Batch | Deletes the selected documents. |
| Find entries... | Shows related entries. |
| Document Exchange | Handles electronic document exchange. |

Adjustments and physical inventories can only be posted directly. When posting an inventory, incoming transfers not yet received are checked: in that case you can close forcibly.


**Store Closings** and **Store Closing** pages.

| Field | Description |
|---|---|
| No. | Closing number. |
| Posting Date | Closing day. |
| Store No. / Name / Category / Customer | Store and billed customer. |
| Calculated / Valid | Whether the closing has been calculated and validated. |
| Posting No. / Posted | Created document. |
| Amount | Total sales. |


| Field | Description |
|---|---|
| Type | Sales, Invoices, Payments, Sales per VAT Posting Group, Credits, Income, Payments (adjustment), Expense, Deposit. |
| No. | Payment method, VAT group or other code depending on type. |
| Description | Line description. |
| Computed Value | Value computed from store documents. |
| Declared Value | Value declared by the store. |
| Bal. Account Type / Bal. Account No. | Balancing account (G/L, bank, customer, vendor) for income, expenses, deposits and adjustments. |
| Notes | Free notes. |
| Discount Value | Assigned discount. |


1. Create closings from documents (**Create Closing**).
2. In the **Store Closing**, choose **Calculate**: lines are filled with values computed from the assigned documents.
3. Enter or correct **Declared Values** and add any income, expenses and deposits with their balancing account.
4. Choose **Validate**. Checks: lines exist; difference between declared and computed sales within **Closing Tolerance Amount** (with confirmation); payments balanced with sales within **Payment Tolerance Amount**; sales balanced with sales per VAT group; no unassigned documents for the store and date; correct signs (deposits and expenses negative, income positive) and balancing accounts filled in.
5. Choose **Post** (or **Post Batch** from the list) to create the closing invoice or shipment, or **Prepare** to create the document without posting.

Other actions: **Documents** (store documents of the closing), **Devices** (fiscal box or manual report data: amounts, VAT and payments per device), **Find entries...**, **Document Exchange**.


- Sales documents and posted headers (invoices, credit memos, shipments, return receipts, transfers) carry the originating store and closing; the **Posted Sales Invoices** list shows the **Store No.** field.
- Numbers of created documents follow the **Store Number Series Setup** and, when configured, reuse the number coming from the POS.
- Health service amounts automatically create expected refund and difference lines in closings.