/** * 数量 保留15位数字 * 单价 保留15位数字 * 金额 小数点后 2位 * 税额 小数点后 2位 */ import { WrappedFormUtils } from 'kts-components-antd-x3/lib/form/Form'; import InvoiceController, { IGood } from '../../../../../../InvoiceController'; export { format2, format15 } from '../../../../../../tools/calculate'; /** 清除计算中启动字段 */ export declare const clearCalculatingField: (controller: InvoiceController) => Promise; /** 数量改变了 */ export declare const onChangeQuantity: (...par: any[]) => void; /** 单价(含税) */ export declare const onChangePriceIncludeTax: (...par: any[]) => void; /** 单价(不含税) */ export declare const onChangePriceExcludeTax: (...par: any[]) => void; /** 金额(含税) */ export declare const onChangeLineAmountIncludeTax: (...par: any[]) => void; /** 金额(不含税) */ export declare const onChangeLineAmountExcludeTax: (...par: any[]) => void; /** 税率 */ export declare const onChangeTaxRate: (...par: any[]) => void; /** 小规模纳税人 1% 和 3% 自动赋码免税 */ export declare function dutyFree(controller: InvoiceController, taxRate: number, form: WrappedFormUtils, record: IGood): number | undefined; /** 含税 => 更新(不含税) */ export declare const updateUnitPriceExcludingTax: (controller: InvoiceController, form: WrappedFormUtils, record: IGood) => Promise; /** 不含税 => 更新(含税) */ export declare const updateUnitPriceTax: (controller: InvoiceController, form: WrappedFormUtils, record: IGood) => Promise; /** 保存到编辑货物 */ export declare const onSaveEditGood: (...par: any[]) => void; /** 单调赋码 */ export declare const endowCode: (controller: InvoiceController, goods: IGood) => Promise; /** 修改了 项目名称 */ export declare const onChangeItemName: (controller: InvoiceController, form: WrappedFormUtils, record: IGood) => Promise; /** 修改了 商品编码 */ export declare const onChangeItemCode: (controller: InvoiceController, form: WrappedFormUtils, record: IGood) => Promise; /** 修改了含税开关 重新计算 */ export declare const onChangeSwitchTax: (controller: InvoiceController, isTaxIncluded: boolean) => Promise;