fix(Journals): sync posting datetime with jorunal entries.

This commit is contained in:
a.bouhuolia
2021-03-29 10:50:44 +02:00
parent 40b2ba099e
commit 9a204282a2
38 changed files with 477 additions and 302 deletions

View File

@@ -106,7 +106,6 @@ export default class InventoryAdjustmentsController extends BaseController {
) {
const { tenantId, user } = req;
const quickInventoryAdjustment = this.matchedBodyData(req);
console.log(quickInventoryAdjustment);
try {
const inventoryAdjustment = await this.inventoryAdjustmentService.createQuickAdjustment(

View File

@@ -324,7 +324,7 @@ export default class PaymentReceivesController extends BaseController {
* @param {Request} req -
* @param {Response} res -
*/
async getPaymentReceiveEditPage(
async getPaymentReceiveEditPage(
req: Request,
res: Response,
next: NextFunction

View File

@@ -435,9 +435,7 @@ export default class SaleInvoicesController extends BaseController {
}
if (error.errorType === 'SALE_INVOICE_NO_IS_REQUIRED') {
return res.boom.badRequest(null, {
errors: [
{ type: 'SALE_INVOICE_NO_IS_REQUIRED', code: 1500 },
],
errors: [{ type: 'SALE_INVOICE_NO_IS_REQUIRED', code: 1500 }],
});
}
}