@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / 1425e08
Fork 0

سامانه صدور فاکتور و حسابداری

Mirrored from https://github.com/davoodmehraban89/Factor-easy.git

Synced Dec 4, 01:45 UTC

test: assert invoice finalizer only syncs ancillary product changes

davoodmehraban89 committed Nov 17, 2026 at 14:23 UTC 1425e0862b878ba129063628ee2014ec6f1df821
1 file changed +1 -1
scripts/journal-rpc-adapter.test.mjs
+1 -1
@@ -255,7 +255,7 @@ test('source finalizers no longer create or post journal rows through the legacy
255 const invoiceFinalizer=invoiceSource.slice(invoiceStart,invoiceEnd);
256 const purchaseFinalizer=purchaseSource.slice(purchaseStart,purchaseEnd);
257 assert.match(invoiceFinalizer,/jeRpcAutoPost\('sale',invoiceId\)/);
258 - assert.match(invoiceFinalizer,/jeRpcPersistSourceRecord\('invoices',invoiceId\)/);
258 + assert.match(invoiceFinalizer,/saveDatastore\(\)/);
259 assert.doesNotMatch(invoiceFinalizer,/jePostSourceRecord|jeCreateDraft|jePost\(/);
260 assert.match(purchaseFinalizer,/jeRpcAutoPost\('purchase',id\)/);
261 assert.doesNotMatch(purchaseFinalizer,/jePostSourceRecord|jeCreateDraft|jePost\(/);