Subversion Repositories SmartDukaan

Rev

Rev 24087 | Rev 24142 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 24087 Rev 24121
Line 1426... Line 1426...
1426
			throws ProfitMandiBusinessException {
1426
			throws ProfitMandiBusinessException {
1427
		FofoOrder fofoOrder = fofoOrderRepository.selectByInvoiceNumber(invoiceNumber);
1427
		FofoOrder fofoOrder = fofoOrderRepository.selectByInvoiceNumber(invoiceNumber);
1428
		Customer customer = customerRepository.selectById(fofoOrder.getCustomerId());
1428
		Customer customer = customerRepository.selectById(fofoOrder.getCustomerId());
1429
		customer.setFirstName(customCustomer.getFirstName());
1429
		customer.setFirstName(customCustomer.getFirstName());
1430
		customer.setLastName(customCustomer.getLastName());
1430
		customer.setLastName(customCustomer.getLastName());
-
 
1431
		customer.setMobileNumber(customCustomer.getMobileNumber());
-
 
1432
		customer.setEmailId(customCustomer.getEmailId());
1431
		customerRepository.persist(customer);
1433
		customerRepository.persist(customer);
1432
		CustomerAddress customerAddress = customerAddressRepository.selectById(fofoOrder.getCustomerAddressId());
1434
		CustomerAddress customerAddress = customerAddressRepository.selectById(fofoOrder.getCustomerAddressId());
1433
		this.setCustomerAddress(customerAddress, customCustomer.getAddress());
1435
		this.setCustomerAddress(customerAddress, customCustomer.getAddress());
1434
		customerAddressRepository.persist(customerAddress);
1436
		customerAddressRepository.persist(customerAddress);
-
 
1437
		fofoOrder.setCustomerGstNumber(customCustomer.getGstNumber());
1435
	}
1438
	}
1436
 
1439
 
1437
	@Override
1440
	@Override
1438
	public CustomerCreditNote badReturn(int fofoId, FoiBadReturnRequest foiBadReturnRequest) throws ProfitMandiBusinessException {
1441
	public CustomerCreditNote badReturn(int fofoId, FoiBadReturnRequest foiBadReturnRequest) throws ProfitMandiBusinessException {
1439
		FofoOrderItem foi = fofoOrderItemRepository.selectById(foiBadReturnRequest.getFofoOrderItemId());
1442
		FofoOrderItem foi = fofoOrderItemRepository.selectById(foiBadReturnRequest.getFofoOrderItemId());