baytek/sage50

Sage50导入CSV生成器

0.10.0 2021-08-31 19:16 UTC

This package is auto-updated.

Last update: 2024-09-29 05:09:01 UTC


README

License PHP

这个简单的库用于生成Sage 50账目文件。验证很少,但目的是在此处保留该库,以防我们想要扩展功能。

技术文档

替代方案

作为替代方案的考虑事项

基本用法

以下是如何创建账目文件样本。请注意,需要提供碳日期。

$journal = new Journal(new Carbon, 'BAT-2118-000001', 'Account Payable Entry number one');

$journal->addAllocation('2300', -1819.06, 'PST');
$journal->addAllocation('2302', -291.70,  'HST');
$journal->addAllocation('2304', -499.64,  'PREMIUM TAX');

$journal->allocateDiff('1210');

header('content-type: text/plain');
echo $journal;