mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
fix: add user id to sale invoice non-inventory journal entries.
This commit is contained in:
@@ -538,16 +538,24 @@ export default class JournalCommands {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {ISaleInvoice} saleInvoice
|
||||
* @param {number} receivableAccountsId
|
||||
* @param {number} authorizedUserId
|
||||
*/
|
||||
saleInvoiceNonInventory(
|
||||
saleInvoice: ISaleInvoice & {
|
||||
entries: IItemEntry & { item: IItem };
|
||||
},
|
||||
receivableAccountsId: number
|
||||
receivableAccountsId: number,
|
||||
authorizedUserId: number,
|
||||
) {
|
||||
const commonEntry = {
|
||||
referenceType: 'SaleInvoice',
|
||||
referenceId: saleInvoice.id,
|
||||
date: saleInvoice.invoiceDate,
|
||||
userId: authorizedUserId,
|
||||
};
|
||||
|
||||
// XXX Debit - Receivable account.
|
||||
|
||||
Reference in New Issue
Block a user