mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
feat: payment receive/made number optional.
This commit is contained in:
@@ -82,7 +82,7 @@ export default class BillsPayments extends BaseController {
|
||||
return [
|
||||
check('vendor_id').exists().isNumeric().toInt(),
|
||||
check('payment_account_id').exists().isNumeric().toInt(),
|
||||
check('payment_number').exists().trim().escape(),
|
||||
check('payment_number').optional({ nullable: true }).trim().escape(),
|
||||
check('payment_date').exists(),
|
||||
check('description').optional().trim().escape(),
|
||||
check('reference').optional().trim().escape(),
|
||||
|
||||
@@ -27,7 +27,7 @@ export interface IBillPaymentEntryDTO {
|
||||
export interface IBillPaymentDTO {
|
||||
vendorId: number,
|
||||
paymentAccountId: number,
|
||||
paymentNumber: string,
|
||||
paymentNumber?: string,
|
||||
paymentDate: Date,
|
||||
description: string,
|
||||
reference: string,
|
||||
|
||||
@@ -19,7 +19,7 @@ export interface IPaymentReceiveDTO {
|
||||
amount: number,
|
||||
referenceNo: string,
|
||||
depositAccountId: number,
|
||||
paymentReceiveNo: string,
|
||||
paymentReceiveNo?: string,
|
||||
description: string,
|
||||
entries: IPaymentReceiveEntryDTO[],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user