<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: cuong nguyen</title>
    <description>The latest articles on DEV Community by cuong nguyen (@cuong_nguyen_33096ac1c435).</description>
    <link>https://dev.to/cuong_nguyen_33096ac1c435</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3750197%2F72305646-35ba-47a5-aa62-57b56be6b6b5.png</url>
      <title>DEV Community: cuong nguyen</title>
      <link>https://dev.to/cuong_nguyen_33096ac1c435</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cuong_nguyen_33096ac1c435"/>
    <language>en</language>
    <item>
      <title>One sales order, five departments, zero re-typing: the order-to-cash flow in an SME ERP</title>
      <dc:creator>cuong nguyen</dc:creator>
      <pubDate>Sat, 05 Dec 2026 13:36:06 +0000</pubDate>
      <link>https://dev.to/cuong_nguyen_33096ac1c435/one-sales-order-five-departments-zero-re-typing-the-order-to-cash-flow-in-an-sme-erp-27eb</link>
      <guid>https://dev.to/cuong_nguyen_33096ac1c435/one-sales-order-five-departments-zero-re-typing-the-order-to-cash-flow-in-an-sme-erp-27eb</guid>
      <description>&lt;p&gt;In many small companies a single customer order gets typed three or four times: once in the salesperson's spreadsheet, once in the warehouse notebook, once in the accounting software, and once more in the director's monthly report. Every copy is a chance for a typo, and nobody is sure which number is right.&lt;/p&gt;

&lt;p&gt;An ERP exists to remove those copies. Here is what the flow looks like when every department works on the same database. The example uses &lt;a href="https://erp.adayroi.online/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=doi_tac_ky_thuat_t12&amp;amp;utm_content=dot2_b1" rel="noopener noreferrer"&gt;Softway ERP&lt;/a&gt;, an MIT-licensed ERP for Vietnamese SMEs, but the pattern is the same in any integrated system.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Sales: quotation
&lt;/h2&gt;

&lt;p&gt;The salesperson builds a quotation from the price list and sends it to the customer. Nothing is reserved yet; the quotation is just a document with a status.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Sales: confirmed order
&lt;/h2&gt;

&lt;p&gt;The customer agrees. Confirming the quotation turns it into a sales order, and that single click does real work:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;if the goods are in stock, they are reserved for this order&lt;/li&gt;
&lt;li&gt;if they are not, a manufacturing order can be created for the missing quantity&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  3. Warehouse: delivery
&lt;/h2&gt;

&lt;p&gt;The warehouse picks and ships. Stock on hand is updated the moment the delivery is validated, so the next salesperson who checks availability sees the real number.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Accounting: invoice
&lt;/h2&gt;

&lt;p&gt;The invoice is generated from the &lt;strong&gt;delivered&lt;/strong&gt; quantity, not the ordered one. Partial delivery means partial invoice, automatically, and the entry is posted.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Director: payment and reports
&lt;/h2&gt;

&lt;p&gt;When the customer pays, the receivable is cleared. Profit and loss and cash flow update without anyone exporting a file.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this matters more than any single feature
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One number.&lt;/strong&gt; Stock, revenue and receivables come from the same records, so reports agree with each other.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fewer handoffs by chat message.&lt;/strong&gt; The warehouse does not need a Zalo message saying "order X is confirmed"; it shows up in their list.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You can start small.&lt;/strong&gt; Turn on sales and inventory first, add accounting and manufacturing later. Shared data means each new module connects to what is already there.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try the flow yourself
&lt;/h2&gt;

&lt;p&gt;The public demo has a sample company and separate logins for sales, warehouse, accounting and the director, so you can follow one order through every screen:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://erp.adayroi.online/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=doi_tac_ky_thuat_t12&amp;amp;utm_content=dot2_b1" rel="noopener noreferrer"&gt;https://erp.adayroi.online/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=doi_tac_ky_thuat_t12&amp;amp;utm_content=dot2_b1&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The demo is shared and resets every night, so please don't enter real data.&lt;/p&gt;

&lt;p&gt;Questions are welcome in the comments, or at &lt;a href="mailto:contact@vantinviet.com"&gt;contact@vantinviet.com&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>productivity</category>
      <category>software</category>
    </item>
    <item>
      <title>Putting an AI assistant inside an ERP without breaking permissions</title>
      <dc:creator>cuong nguyen</dc:creator>
      <pubDate>Sat, 05 Dec 2026 10:29:48 +0000</pubDate>
      <link>https://dev.to/cuong_nguyen_33096ac1c435/putting-an-ai-assistant-inside-an-erp-without-breaking-permissions-36k5</link>
      <guid>https://dev.to/cuong_nguyen_33096ac1c435/putting-an-ai-assistant-inside-an-erp-without-breaking-permissions-36k5</guid>
      <description>&lt;p&gt;"How much stock of item X is left?" "Which customers still owe us money this month?" These are the questions people in a small company ask all day, and they are exactly the questions an ERP can answer. So the obvious next step is a chat assistant on top of the ERP.&lt;/p&gt;

&lt;p&gt;The hard part is not the language model. It is &lt;strong&gt;permissions&lt;/strong&gt;. In an ERP the cashier must not see payroll, a salesperson usually sees only their own customers, and the accountant sees money but not HR records. An assistant that quietly runs with an admin key breaks all of that in one prompt.&lt;/p&gt;

&lt;p&gt;This post describes the design we use as a reference when thinking about assistants on top of &lt;a href="https://erp.adayroi.online/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=doi_tac_ky_thuat_t12&amp;amp;utm_content=bai2" rel="noopener noreferrer"&gt;Softway ERP&lt;/a&gt;, an MIT-licensed ERP for Vietnamese SMEs with a documented REST API and role-based access (the public demo has twelve roles). The pattern applies to any ERP with an API and real access control.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rule 1: the assistant has no permissions of its own
&lt;/h2&gt;

&lt;p&gt;The assistant never holds a service account. Every call it makes to the ERP is made &lt;strong&gt;as the logged-in user&lt;/strong&gt;, with that user's token or session. If the cashier asks about payroll, the ERP returns "forbidden", exactly as it would in the web UI.&lt;/p&gt;

&lt;p&gt;This one rule removes a whole class of bugs. You do not need to re-implement the ERP's access rules inside the prompt, and you cannot "prompt inject" your way past a 403.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rule 2: tools, not raw queries
&lt;/h2&gt;

&lt;p&gt;Do not let the model write SQL against the ERP database. Give it a small set of tools that map to existing API endpoints:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# illustrative pseudo-code, not a real Softway API
get_stock(product_query)          -&amp;gt; on-hand, reserved, by warehouse
list_overdue_invoices(period)     -&amp;gt; customer, amount, days overdue
get_sales_summary(period, scope)  -&amp;gt; totals the current user may see
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each tool calls the REST API with the user's credentials and returns only fields that endpoint already exposes. The model chooses which tool to call and how to phrase the answer, nothing more.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rule 3: read first, write with confirmation
&lt;/h2&gt;

&lt;p&gt;Start read-only. When you add write actions (create a quotation, log a payment), have the tool return a &lt;strong&gt;draft&lt;/strong&gt; that the user confirms in the normal UI. The ERP's own approval steps then apply as usual.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rule 4: log every tool call
&lt;/h2&gt;

&lt;p&gt;Store user, tool, parameters and result size for every call. When someone asks "why did the assistant tell me X?", you can replay it. It also shows which questions people actually ask, which is the best input for the next tool to build.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rule 5: keep data where the company wants it
&lt;/h2&gt;

&lt;p&gt;Many SMEs self-host their ERP precisely to keep data in-house. If you send ERP results to a hosted model, say so plainly and send only what is needed for the answer. For sensitive deployments, a model you can run on the same infrastructure keeps the whole loop inside the company.&lt;/p&gt;

&lt;h2&gt;
  
  
  A minimal flow
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;User asks in chat, already logged in to the ERP.&lt;/li&gt;
&lt;li&gt;The assistant picks a tool and parameters.&lt;/li&gt;
&lt;li&gt;The tool calls the ERP REST API &lt;strong&gt;with the user's token&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The ERP enforces its normal role rules and returns data or "forbidden".&lt;/li&gt;
&lt;li&gt;The assistant answers in plain language and links to the ERP screen where the user can check the numbers.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Step 5 matters: the assistant is a shortcut to the right screen, not a second source of truth.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try the ERP side
&lt;/h2&gt;

&lt;p&gt;The public demo lets you log in as each of the twelve roles and see how differently the same system looks to each person, which is the behaviour your assistant should inherit:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://erp.adayroi.online/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=doi_tac_ky_thuat_t12&amp;amp;utm_content=bai2" rel="noopener noreferrer"&gt;https://erp.adayroi.online/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=doi_tac_ky_thuat_t12&amp;amp;utm_content=bai2&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you are building assistants on top of business systems, I would like to hear how you handle permissions. Comments are open, or reach us via &lt;a href="https://softway.vn/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=doi_tac_ky_thuat_t12" rel="noopener noreferrer"&gt;softway.vn&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>architecture</category>
      <category>security</category>
    </item>
    <item>
      <title>An MIT-licensed ERP built for Vietnamese SMEs: what "localization" actually means</title>
      <dc:creator>cuong nguyen</dc:creator>
      <pubDate>Sat, 05 Dec 2026 10:29:10 +0000</pubDate>
      <link>https://dev.to/cuong_nguyen_33096ac1c435/an-mit-licensed-erp-built-for-vietnamese-smes-what-localization-actually-means-ac2</link>
      <guid>https://dev.to/cuong_nguyen_33096ac1c435/an-mit-licensed-erp-built-for-vietnamese-smes-what-localization-actually-means-ac2</guid>
      <description>&lt;p&gt;Most ERP projects for small businesses in Vietnam stall on two things before a single module goes live:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Per-user licensing.&lt;/strong&gt; A 40-person manufacturer wants the warehouse team, the sales team and the accountant all on the system. Per-seat pricing turns that into a negotiation about who "really" needs access.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Localization done as an afterthought.&lt;/strong&gt; VND with no decimals, Vietnam time, 10% VAT as the default, Vietnamese labels that read like Vietnamese and not like a machine translation, and documents that look like the ones accountants already file.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We build &lt;strong&gt;Softway ERP&lt;/strong&gt; at Vạn Tín Việt (Softway), a Vietnamese software company running since 2012. It is open source under the &lt;strong&gt;MIT license&lt;/strong&gt;, so there is no per-user fee: adding staff does not mean buying more accounts.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is in the box
&lt;/h2&gt;

&lt;p&gt;Ten modules on one database:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Sales &amp;amp; CRM: leads, pipeline, quotations, sales orders, price lists, sales targets&lt;/li&gt;
&lt;li&gt;Purchasing: RFQs, purchase orders, approvals, vendor bills&lt;/li&gt;
&lt;li&gt;Inventory: receipts, deliveries, transfers, lots and serial numbers, stock counts, replenishment&lt;/li&gt;
&lt;li&gt;Manufacturing: bills of materials, work centers, manufacturing orders, material consumption&lt;/li&gt;
&lt;li&gt;Accounting: invoices, payments, receivables and payables, P&amp;amp;L, balance sheet&lt;/li&gt;
&lt;li&gt;HR: employees, departments, skills, leave, attendance, recruitment&lt;/li&gt;
&lt;li&gt;Projects: tasks, milestones, timesheets&lt;/li&gt;
&lt;li&gt;Point of Sale: showroom sales, cashier sessions, multiple payment methods&lt;/li&gt;
&lt;li&gt;Maintenance: equipment register, repair requests, preventive maintenance&lt;/li&gt;
&lt;li&gt;Website &amp;amp; blog: company pages, news, and a customer portal for orders&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Turn on what you need now and add the rest later. Because the data is shared, a confirmed sales order reserves stock or creates a manufacturing order, the warehouse ships it, the invoice is generated from delivered quantities, and the payment clears the receivable. Nobody types the same order twice.&lt;/p&gt;

&lt;h2&gt;
  
  
  Localization, concretely
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Vietnamese UI from the start, English one click away&lt;/li&gt;
&lt;li&gt;VND, Vietnam time zone, 10% VAT as the default tax&lt;/li&gt;
&lt;li&gt;Approval steps, document templates and reports adjusted to how the company already works&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Deployment and integration
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Self-host on your own server to keep data in-house, or let Softway run it in the cloud&lt;/li&gt;
&lt;li&gt;A documented &lt;strong&gt;REST API&lt;/strong&gt; to connect a website, e-commerce stores or other software&lt;/li&gt;
&lt;li&gt;A native Android app (iOS coming) sharing the same accounts and permissions as the web version&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;There is a public demo with a sample company and twelve user roles (director, sales, accountant, warehouse, production, HR, projects, cashier…), so you can log in as each role and see exactly what each person gets:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://erp.adayroi.online/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=doi_tac_ky_thuat_t12&amp;amp;utm_content=bai1" rel="noopener noreferrer"&gt;https://erp.adayroi.online/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=doi_tac_ky_thuat_t12&amp;amp;utm_content=bai1&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The demo is shared and resets every night, so please don't enter real company data.&lt;/p&gt;

&lt;h2&gt;
  
  
  We are looking for partners
&lt;/h2&gt;

&lt;p&gt;If you are a developer or a small software house that has implemented Odoo, ERPNext or custom business software, the MIT license means you can implement, customize and write modules for your own clients and charge for that work. We help with Vietnamese accounting and tax processes when needed.&lt;/p&gt;

&lt;p&gt;Questions or feedback in the comments are very welcome. You can also reach us via &lt;a href="https://softway.vn/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=doi_tac_ky_thuat_t12" rel="noopener noreferrer"&gt;softway.vn&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>software</category>
      <category>startup</category>
    </item>
  </channel>
</rss>
